Re : config of new steal
where is the error happening? steal.type is checked:https://github.com/bitovi/canjs/blob/minor/view/view.js#L735https://github.com/bitovi/canjs/blob/minor/view/view.js#L385Justin Meyer847-924-6039
View ArticleRe : config of new steal
I checked out the projects from scratch and it worked (after some code tweaking). Don't know what was wrong with the previous setup.It also now builds. However, the site doesn't run from the built...
View ArticleRe : config of new steal
turn off minification. Start removing pretty much all code until you get something to work. Add dependencies back in until it breaks. Then report back. For instance, if your "main" looked like:...
View ArticleGlobal Helper is called only one time
Hello, I am a little be lost with my problem so I hope you can help me to solve it ... :) I want to create my own validation plugin by combining it with the define plugin. Also it should be possible to...
View ArticleRe : SPA starter/development tools comparison
@maklomite what frameworks/libs you where comparing? can you highlight the main points here?
View ArticleInstantiate contsructor with it's classname as string!!
Do you know a good way to do this ? I mean how to instantiate a class just with it's name as string, I use window global object, but I dont know if it's a good practice!! is can.Construct has a trick...
View ArticleRe : Instantiate contsructor with it's classname as string!!
can.Control.extend('MyControl',{ is a standard way to have referencies of can's entities in global scope, so your way is ok. Other way you'll have to have your own map.
View ArticleRe : Instantiate contsructor with it's classname as string!!
Thank you alex for the answer, the question is around this line var controlKlass=window[control];I want to know if there's another way to create the control constructor with the help of can.Construct?!...
View ArticleRe : Instantiate contsructor with it's classname as string!!
> I want to know if there's another way to create the control constructor with the help of can.Construct?! For example, what do you mean "another way"?
View ArticleRe : Instantiate contsructor with it's classname as string!!
You could put them in a namespace: can.Control.extend('Controls.MyControl', {}); will automatically create a reference: window.Controls.MyControl so you can use dynamic access on the Controls...
View ArticleSet a list of models as an attribute on a model of the same type
So I have a user model, and a user can have friends, the friends are also user models. What I want to do is use the define plugin to set the 'friends' attribute to be a model.List of user models,...
View ArticleEXAMPLES ON SITE DO NOT WORK!!!!
Paginate = can.Map.extend({ define: { offset: { serialize: function(offset){ return (offset / 20)+1 } } } }); p = new Paginate({offset: 40}); p.serialize()...
View ArticleRe : EXAMPLES ON SITE DO NOT WORK!!!!
Did you include the define plugin?Sent from my iPhoneOn Dec 30, 2014, at 11:50 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:JavaScriptMVC ForumHi Justin Meyer, richard.udo...
View ArticleRe : EXAMPLES ON SITE DO NOT WORK!!!!
http://jsfiddle.net/qYdwR/2323/ works for me. The define plugin is not part of core CanJS. It's a plugin you have to include.
View ArticleRe : Instantiate contsructor with it's classname as string!!
Thank you guys :) Mohamed Cherif BOUCHELAGHEM
View ArticleSome values not sent when pdating values with a can.Model
When saving a model instance some values are not getting submitted to the server. If the comments array is empty no comments param is sent. How can I change this? Todo = can.Model.extend({...
View ArticleRe : ca.route automatic remove event deletes complete route. BUG?
This BUG is effecting me as well without a known fix/solution out there... I have no idea on how to remove pushstate plugin and what other implications this may have. This "under-documentation" seems...
View Article