Re : Property name event not firing on computed value
try this http://canjs.com/docs/can.computed.bind.html
View ArticleRe : Property name event not firing on computed value
Thanks for the reply Maxisme. I know about compute.bind however and that's not what I'm looking for. When you set a function as the value on Map with attr it automatically turns it into a compute.As I...
View ArticleRe : Property name event not firing on computed value
When you set a function as the value on Map with attr it automatically turns it into a compute. No, it does not.
View ArticleRe : Property name event not firing on computed value
What you probably want to be doing is defining a custom Map constructor function like:BazMap = can.Map.extend({ baz: can.compute(function () { return this.attr('foo') + ", " + this.attr('bar');...
View ArticleRe : Property name event not firing on computed value
This is documented here:http://canjs.com/docs/can.Map.prototype.COMPUTE-ATTR.html
View ArticleRe : Stealing Can with MooTools
So I found some things out.A. exports can't be an array. This is problematic. How do I define multiple objects then? Do I have to break out MooTools more into individual files? Seems a waste.B. Export...
View ArticleRe : Property name event not firing on computed value
Thanks Justin. I appreciate the info. I still am not able to accomplish what I'd like, but I believe it's probably a design problem at this point. Also, I apologize for posting misleading information...
View ArticleRe : Property name event not firing on computed value
No worries about any of that. I'm here to help. Sent from my iPhoneOn Feb 27, 2014, at 5:46 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : Stealing Can with MooTools
I'll look into fixing this next week. Sent from my iPhoneOn Feb 27, 2014, at 5:14 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleIs there a way a way to use can.view's with deferred objects in can.Components?
Is there a way a way to use can.view's with deferred objects in can.Components? I realize you can simply define the deferred's in your scope, and manually do this sort of tie in, however is there any...
View Articlecan.Map nested attributes don't always emit events
If for example, I were to use a can.compute to return foo.attr('bar.a.b.c'), and either of bar.a.b where to change, this would not consistently trigger a change event unless I use...
View ArticlePassing parent scope to components is undocumented
As it stands right now, there's no documented way to look up the scope tree when defining a component.
View ArticlePass Document Fragment To Mustache
Is there a way to pass a fragment to a mustache template and then insert it into the template so that it is rendered with the rest of the template?
View ArticleRe : Pass Document Fragment To Mustache
Well, you could create a helper that does it.{{frag fragName}}can.Mustache.registerHelper("frag", function(frag){ return function(el){ $(el).replace(frag); }})That might work.
View ArticleRe : Pass Document Fragment To Mustache
This worked with a slight change to the helper:can.Mustache.registerHelper("frag", function(frag) { return function(el) { el.parentNode.replaceChild(frag, el); }})
View ArticleThe Documenting Cookbook example does not generate anything for me in the...
As per the picture on this tutorial page - http://javascriptmvc.com/docs/cookbook.documenting.html - there is a greenish nav sidebar with a list of documentation links. When I follow the example and...
View ArticleHow to use functions from another controler
Hi, I am trying to figure out how to use a function from another controller, I steal my controller in the controler where I want to use its functions and then what I have to do...
View Article