Re : canjs adding wildcards to a route definition
Thanks,I updated the wiki on bitbucket with a more detailed description. you can read it here: https://bitbucket.org/gmartel/rutas-comodin/wiki/Homeplease read it when you have time.:)
View ArticleAssociations with nested data
How would I define an attribute within nested data? I tried this but the consignmentBuyer.location object is not converted into a Location model. attributes: { location:...
View ArticleRe : Associations with nested data
I found out this is currently not supported. I'd need to define a consignmentBuyer model which would have a location attribute.Patrick
View ArticleModel Store conflict
I'm gonna make an example of a problem that I'm having.We're building an e-shop. In this e-shop you got a shopping-cart (cartModel), categories (categoryModel) and item-list (itemModel).It looks like...
View ArticleRe : Help structuring JMVC folders
Hi,Passing the model to control in a more abstract level seems to be a good idea. Didn´t thought about that :|This will obligate models to have same public methods (interface), (findAll(), findOne()......
View ArticleRe : JavaScriptMVC 3.3 is out!
Great work Bitovi crew!I see that the next scheduled release of CanJS is 1.2 in October. Does this mean that there will be no patch releases between now and then. There are quite a few open issues.But...
View ArticleOverride findAll fails
I encountered strange behavior when overriding can.model's findAll. I need to assign findAll to a variable because it gets called generically. Anyway, here's the problem:// App.Models.UserfindAll:...
View ArticleHow to implement routing?
Hi,Can you please tell me how to implement routing.. I want to implement routing concept in my project.. I just know what is routing and the purpose..Please tell me how to implement with a small...
View ArticleModel date field problem
Does canJS perform automatic conversion of dates on models? I have JSON coming from server that contains the "created" property:"created": "2013-08-13T09:04:18Z"can.Model seems to convert this into...
View ArticleRe : Model date field problem
Found the problem: this seems to be a problem when model attribute is named the same as one of Model's built-in properties. Since can.Model already defines its own properties created, updated, ... a...
View ArticleRe : Model Store conflict
Any model instance with a certain id value will be put in store for this model type, no two instances of the same type with the same id can be separated. That is a premise that you should consider...
View ArticleRe : Model Store conflict
An instance is only added to the Model store if something is bound to it, which usually happens if you are using these instances in an actual app
View ArticleRe : CanJS Control inheritance?
Is there any way to inheritance already created controllers?For example I have 3 widgets based on can.Control() and now I want to create object which inheritance from all of them?Your way works but...
View ArticleRe : CanJS Control inheritance?
Not sure what you mean.A Control is just a Class and every WidgetA widget you create is an instance of that Class. You can only setup inheritance between classes.If have a Control named WidgetA that...
View ArticleRe : CanJS Control inheritance?
Hi,I need something like this:WidgetA = can.Control({ ...});WidgetB = can.Control({ ...});WidgetC = can.Control({ ...});And now I want to create module Controller which extends from 3 of...
View ArticleRe : CanJS Control inheritance?
This is not a pattern that is possible in OOP. Also, can.extend just merges Objects together and is not intended to be used with Classes (Construct, Control, Observe, etc).What your saying when you ask...
View ArticleRe : How to implement routing?
https://forum.javascriptmvc.com/#Topic/32525000000837567This explain using $.Controller but concept is same and you can easily migrate to canjs.
View ArticleRe : Override findAll fails
finder({}, function(){}, function(){}); - you are calling using function invocation pattern and "this" will not point to Model class anymore.I am not sure why App.Models.User.findAllFunky; is...
View ArticleRe : Override findAll fails
The reason for this is that we have a datasource component which uses generic finders to fetch data (for any model). So you pass in a Model.finder method. There's not need for 'this', finder is just a...
View ArticleRe : Model Store conflict
Anybody else got a solution?Or is it wrong to put an instance of a model into another model?I feel like I'm constantly clearing the store because I want to load different instances of data with the...
View Article