Re : Scope function (method) vs component helper
I meant "helpers" (component view helpers).
View ArticleRe : Scope function (method) vs component helper
I'm too lazy to make a fiddle. Does having an attribute on the scope and a function in helpers with the same name cause a collision?
View ArticleRe : Scope function (method) vs component helper
Nope, the example you provide does not cause a collision, but it is clear you don't quite understand scope or conventions for using "getters" and "setters", which is what you are trying to do in your...
View ArticleRe : Scope function (method) vs component helper
I know that it does not cause a collision. ah, nervermind. I just wanted the confirmation that view helpers has bigger priority in view template than scope function.
View ArticleRe : Scope function (method) vs component helper
Ah, I see what you are talking about now.I went to the helpers documentation page and copied/pasted their example code into a new fiddle. I then renamed the "isSelected" helper method to "selected"...
View ArticleRe : Scope function (method) vs component helper
Well, hold up. If you are iterating over a collection, the "helper" prevails. However, the "scope" prevails outside of a loop. This even further exacerbates the confusion. See the...
View ArticleRe : Scope function (method) vs component helper
The rules are confusing, and this seems to be due to how helpers are supposed to work in Mustache (which is my 2nd hand understanding from can.Mustache which passes mustache's tests).The rules are...
View Articlecan.view doesn't render deferred data
Hi All, I'm facing with the following problem: Let's have a controller which creates and displays a modal edit form. var EditForm = can.Control.extend({ defaults: { view: config.templateurl + DASH +...
View ArticleRe : can.view doesn't render deferred data
I just found that it also doesn't render the embedded {{>engineerTemplate}} (I get an '@@!!@@' instead), which is an existing (not deferred) Map object.This is strange, because the same object is...
View ArticleCan.js app architecture
Hello dudes,I'm a noob to Can.js but definitly want to try it (we were using backbone until now).I would like the community to judge my understanding of can.js so, here is my current understanding of...
View ArticleRe : Can.js app architecture
In short, you should build your app's architecture around can.Component(s).<my-app> <some-widget></some-widget> <another-widget></another-widget></my-app>You may...
View ArticleRe : Scope function (method) vs component helper
Along this same line...I have been looking at the best way to refer to an external mustache helper inside a component for better reuse.Currently, I load everything with AMD but I think this could be...
View ArticleRe : can.view doesn't render deferred data
This should all now be using Components.I also used embedded reference templates heavily prior to Component and had lots of rendering issues. This completely disappears with Components.Your basically...
View Articlecan.view(template, data) only return a Deferred? Docs say fragment is returned?
http://canjs.com/docs/can.view.htmlIs that just outdated or am I not seeing something?
View ArticleRe : Scope function (method) vs component helper
Actually, I have no idea why I added computeData.scope != scopeAndOptions.scopeBy removing it all tests pass. I actually had to add .scope in to Scope::computeData to get this to work ... making...
View ArticleRe : Anyone using something other than jQuery and Zepto?
I would go as far as saying make a standalone version with a Zepto-lite, then add an IE8 shim of some kind (like this and maybe others, like an Array.prototype.indexOf). When IE8 dies, just remove the...
View ArticleRe : Conventions, strategy, syntax, file extension for external mustache...
Well I'm having issues with findAll() returning a response when my data structure is:{ "data": [ { "key": "val" }, ... ]}vs this which works[...
View ArticleRe : can.view doesn't render deferred data
Thank you for your suggestion, I just started to get familiar with Components. (to be honest, the whole canJS is new to me).
View ArticleNew Meetups!
Hey everyone,If you're in Silicon Valley or Las Vegas, there are new CanJS meetups there.http://www.meetup.com/CanJS-Silicon-Valley/events/161029502/ - first meeting Feb...
View Articlesteal.js not loading resources in order on ie 9
HI, my web application is made using javacriptmvc newest version(3,3). It works well on newest browsers (chrome, firefox, ie10 and ie11),butnot working on ie9.It seams , that the resources are lauded...
View Article