Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

Re : Property name event not firing on computed value

try this http://canjs.com/docs/can.computed.bind.html

View Article


Re : 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 Article


Re : 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 Article

Re : 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 Article

Re : Property name event not firing on computed value

This is documented here:http://canjs.com/docs/can.Map.prototype.COMPUTE-ATTR.html

View Article


Re : 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 Article

Re : 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 Article

Re : 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 Article


Re : 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 Article


Is 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 Article

can.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 Article

Passing 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 Article

Re : can.List does not initialize computes

bump

View Article


Re : can.List does not initialize computes

Can you create an issue in github?

View Article

Pass 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 Article


Re : Pass Document Fragment To Mustache

Nope, but stache will handle this.

View Article

Re : 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 Article


Re : 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 Article

The 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 Article

How 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
Browsing all 3491 articles
Browse latest View live