Re : Unable to set desired context using mustache #with
This is a known bug in 2.0.7 (filed by yours truly, in fact)https://github.com/bitovi/canjs/issues/871If there's a reason you can't work around, say with {{#map.a}}, you can apply this diff on the...
View ArticleRe : Nested resource views
Thanks for sharing these fiddles! Much tidier than with can.Control.
View ArticleRe : Steal build cannot handle utf-8 properly?
hi, it's not an issue about how I output the string.The problem is the steal build system totally discriminate against Chinese character. see the tiny sample code below.I have removed the canjs and...
View ArticleRe : Nested resource views
Thanks a lot for the replies, I will have a good look at them.
View ArticleModels and Attributes
In my 'new Post.List({})' call I want my JSON response to have extra attributes including the 'posts' array of collections. So I would like to have:{title: 'This is the title for topic',created_at: '30...
View ArticleRe : Models and Attributes
Here's the docs you were looking for: http://canjs.com/docs/can.Map.attributes.htmlAttributes is an optional plugin for can.Map. I don't recommend the approach you are trying to accomplish here....
View Articleca.route automatic remove event deletes complete route. BUG?
Hi, can someone explain why can.route is removing every element from the active route, and the window.hash automatically after having added them?// initialize...
View ArticleRe : ca.route automatic remove event deletes complete route. BUG?
having removed the "pushstate" plugin from canjs, the issue seems to be fixed.I believe there's a bug with pushstate, or it's under-documented.
View ArticleNested IFrames
I understand how to use FuncUnit with an IFrame on the page that is under test (i.e. F("element-selector", 0) or F("element-selector", "frame-name"). Is there an easy way to use FuncUnit on elements of...
View ArticleSearch engine with all input words
Hello,Sorry for my bad english, I'm french...:)I try to search on this javascript with all the words oh the input...I don't know how to do it....<SCRIPT language=javascript>// Script développé...
View ArticleWhat are some techniques to improve performance?
I've been having a lot of troubles rendering large data structures. In my case, I have nested arrays designating columns and rows, with the rows nested in each columns can.Map. There seems to be a huge...
View ArticleWhen is it appropriate to use a method vs a compute within a can.Component...
I noticed in the canjs doc's linked to below that the can.Component examples frequently use functions in place of where can.Computes would suffice. Is there any advantage either way here? Within the...
View ArticleConditional tags don't work properly when omitting
It's a common technique to skip li escape tags in order to remove whitespace between li's. This is particularly relevant when using inline-block styling. can.Mustache seems to not construct document...
View ArticleRe : When is it appropriate to use a method vs a compute within a...
I dont understand the question! can.compute also is a function and as I know functions in the component's scope are converted automaticaly to computed use can.computed.isComputed to check it.Mohamed...
View ArticleRe : When is it appropriate to use a method vs a compute within a...
Well, so in the example posted on can doc's, they're using next as a plain function and not a compute when the result is very much so both a state, and computable. I don't see any reason why it...
View Articlecan.Construct and private fucntions and variable
Is there a way to define a private method or variable in a can.Construct?Thanks.
View ArticleRe : Conditional tags don't work properly when omitting
Here are several alternatives to using the unterminated <li> tag:http://css-tricks.com/fighting-the-space-between-inline-block-elements/
View ArticleRe : can.Construct and private fucntions and variable
You can set up "private" items (context variables available to some public interface) in the construct's init() method.> can.Construct.extend("Bar", { init : function() { var b = 0; this.binc =...
View Article