Re : canJS model finds return "Constructor" to success callback instead of...
This is indeed broken. Looks like one of the plugins messes it up because it works with the original builds.
View ArticleRe : canJS model finds return "Constructor" to success callback instead of...
Ok. Good to know. I will download all the js files separately and confirm this.
View ArticleRe : Converting response on create
Did you try overwriting .model? As long as all responses have the same structure it should work. create should use .model as well. Otherwise you will just have to implement your own create method on...
View ArticleRe : Tracker - CanJS Plugin For Two-way Binding
This seems promising. Anyone else using it?
View ArticleRe : canJS model finds return "Constructor" to success callback instead of...
Just tested it. You are correct.There is a problem somewhere form the dynamic js builder.I updated the fiddle to use the js you provided and it works.It won't work with this one:...
View ArticleRe : Tracker - CanJS Plugin For Two-way Binding
Awesome work! You might make it even easier to setup if you're in an EJS flie like:can.EJS.Helpers.prototype.input = function(obs, attr, props){ return "<input "+can.view.hook(function(el){...
View ArticleRe : Converting response on create
overriding .model does nothing for create, only for findone and findall (I tried just to make sure).I agree that it makes sense that it should. Thanks for the replies.
View ArticleRe : Converting response on create
Thanks for checking. This sounds like a bug to me then. I think it should do the conversion by default for create and update as well.
View ArticleRe : Converting response on create
So I checked. The Can.JS team is fast. I was on 1.0.7 and 1.1.3 is the latest. Sadly, I can't report weather this has already been fixed as 1.1.3 renders my entire app inoperable with no exceptions...
View ArticleQuestions about model associations
I have had little luck in finding a good overview on how associations work.I have been using can.associate (https://github.com/WearyMonkey/can_associate) but this doesn't seem to be the way to go (and...
View ArticleRe : Questions about model associations
You need to use the attributes plugin.I believe hasMany and belongsTo are a thing of the past...Take a look here:http://donejs.com/docs.html#!can.Observe.attributes
View ArticleRe : Tracker - CanJS Plugin For Two-way Binding
Thanks man. Ok, I will play around with your suggestion.
View ArticleRe : Questions about model associations
The only thing I can get to work is a hasMany. Let's say I have a object model like soBook hasMany ChaptersBook = can.Model "Book", { ... attributes: chapters: "Chapter.models"...
View ArticleTesting CanJS Web Apps
I want to know how you guys test CanJS apps. Controllers, models and views using Jasmine and not on nodejs.What testing frameworks are you guys using?It would be very nice if you can give an example of...
View ArticleRe : Testing CanJS Web Apps
We use Qunit for unit testingBitovi has built a functional testing framework called FuncUnit, which is built on top of Qunit.We have a tutorial on testing in the Building Cookbook example, which is a...
View ArticlePurge Events @ can.Observe.stopBatch ?
Is there a way to set force and / or callStart incan.Observe.stopBatch( force, callStart )so that all events are purged when stopBatch is called and the Observe returnes to "normal mode"?
View ArticleRe : canjs + multiple template fragments (newbie Q)
Thanks - I was using the docs at http://canjs.us/ - looks like donejs has more up-to-date docs.
View ArticleRe : Questions about model associations
So I guess associations are a well and truly a second class citizen in CanJS? The only way to make it somewhat work out of the box is to 'fatten' my json data with all associated data, but this is...
View ArticleRe : Purge Events @ can.Observe.stopBatch ?
I don't know what you mean. You can callstopBatch(true)On Dec 18, 2012, at 2:57 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View Article