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

Re : Base class for Model(Observe).List inheritor

Cool. Just updated can.js and its working, when it was added? Prior I was using __1.1.1__ ( November 19, 2012 ).

View Article


Re : Base class for Model(Observe).List inheritor

I think it was added with 1.1.0

View Article


Re : Base class for Model(Observe).List inheritor

I think it was added with 1.1.0

View Article

Re : EJS BUG looses observableness using canJS

The only thing I can recommend from what I can see is using can.each instead of $.each and if you want live-binding using things like <%= mo.attr("Merchant.name") %>. A Fiddle would be really...

View Article

Re : Base class for Model(Observe).List inheritor

Thanks a lot.

View Article


best way to implement common Model.List

I have two can.Controls that need to share a common can.Model.List. I want to fetch the models once from the backend and then interact with them from either Control (loaded intermittently). I currently...

View Article

Re : best way to implement common Model.List

My gut answer is to create the list and pass that list to each of the controls. 

View Article

Re : Observe.backup and List atrr changes?

yeah, it only works on objects.  Adding it to arrays would be useful.

View Article


Re : Testing CanJS Web Apps

Example with QUnit.http://dl.dropbox.com/u/55863157/QUint-testing-ground.zipSquire is using RequreJS´s require method, I do not know if its CanJS or Squire but I'm getting the same problem using...

View Article


Re : EJS BUG looses observableness using canJS

Here is the issue in a jsfiddle:I forked an existing fiddle from your canjs and replicated the issue.http://jsfiddle.net/friskd/2PNyJ/look at the console output  "m" looses its definition.Remove the...

View Article

Re : EJS BUG looses observableness using canJS

Woops. Look like that fiddle was missing a 1http://jsfiddle.net/friskd/2PNyJ/1/

View Article

Re : best way to implement common Model.List

thecountofzero is right, the best way (without seeing your app) is to create the list outside of the two Controls and pass it in as an option.The other options you suggested are all very bad things to...

View Article

Re : Ignore attribute (of Observe type) while serialization

This solution (return undefined) doesn't work if attribute is Observe (or Observe.List) as it seems that this serialize function is not called for Observes at all (as they have its own).What can be...

View Article


Re : EJS render subtemplates preloaded with steal

As I know can.view.render does not take view functions loaded with steal but only path to EJS. Is there a way to render view function inside of view in the way can.view.render does?

View Article

Re : best way to implement common Model.List

Allow me to clarify: either Control must be able to initialize the models and have the other one pick it up. I am not really sure how to do that with the option suggested, but I'll try.I currently have...

View Article


Re : best way to implement common Model.List

You should have one main app module (file), you may implement it as can.Control. There you should create a model that you plan to share between controls, and then pass it as an option to both of you...

View Article

Re : EJS render subtemplates preloaded with steal

Huh?Sent from my iPhoneOn Jan 19, 2013, at 3:16 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


[Solved]Using can.view to load mustache template

I have seen your canjs example using can.mustache but when I try it, it does not work. Can can.view load mustache templates?http://jsfiddle.net/xnvbQ/3/Am I doing something wrong here? Mustache view...

View Article

Re : [Solved]Using can.view to load mustache template

Problem got fixed by adding 'can/view/mustache' as dependency in my controller like the example

View Article

Re : EJS render subtemplates preloaded with steal

What is wrong?

View Article
Browsing all 3491 articles
Browse latest View live