Re : jmvc 3.3 Generate/control is broken
Is it released yet or did you download 3.3 from github?
View ArticleRe : Testing CanJS Web Apps
When adding a click event on an element in the controller, the click event works but not the route. Am I doing something wrong? or is the framework having problems with AMD and...
View ArticleRe : jmvc 3.3 Generate/control is broken
Its not officially released. But its in master on github....
View ArticleOverriding controller destroy to wrap 'nulled' element - bad idea?
I've got a common problem with my controllers in a complex, long-running communication application. Often a controller will have an asynchronous event waiting and, before getting resolved, the user...
View ArticleRe : Overriding controller destroy to wrap 'nulled' element - bad idea?
I've run into similar issues and one of the things I've done is to check that this.element exists before operating on it. Another thing I've done is to create a deferred property on the control. I...
View ArticleRe : Overriding controller destroy to wrap 'nulled' element - bad idea?
Yeah, I thought of deferreds too. It's just too much manual glue to bother with. If I find a good pattern I'll abstract it and share it here but for now I'm just using$.Controller( "My.Controller",...
View ArticleRe : Overriding controller destroy to wrap 'nulled' element - bad idea?
Well it's the super's destroy function that sets this.element to null, so in your example above, you will always be doing:this.element = $(null);But is that a memory leak or does "this" get cleaned up...
View ArticleIs StealJs still encouraged to use in production?
I came from Javascript v3.2 and loved to use steal + jmvc to create front end. I can see it is going to be replaced by canJS in the future. However I couldn't find any word that mentions stealJS on...
View ArticleRe : Interaction between Controllers
The problem is, that the FB-SDK functionality is used in very different contexts, but shares some common variables and some of them could only be intialized once. Inheriting from it or initialzing a...
View ArticleRe : Overriding controller destroy to wrap 'nulled' element - bad idea?
Yeah, I thought of deferreds too. It's just too much manual glue to bother with. If I find a good pattern I'll abstract it and share it here but for now I'm just usingWell, you could just make your...
View ArticleRe : Interaction between Controllers
Thank you. I will look into this approach after christmas finished me.
View ArticleRe : How do you implement mediator pattern
Good question, really CanJS is the framework from both sides (backbone-ember) but it lacks clear application structure (ember does this) so all we need is how organise the application structure and...
View ArticleSteal question - why steal needs html?
Why steal need to be supplied with html file if it just takes first steal script block <script src="steal/steal.js?app"></script> and builds the app, why not just point to js file?
View ArticleRe : How do you implement mediator pattern
@CherifYou may also want to read this topic: https://forum.javascriptmvc.com/topic/interaction-between-widgets-observe-events-or-dom-events
View ArticleRe : How do you implement mediator pattern
Thank you I will look at that in depth and you'll have my feedback.Thank youMohamed Cherif BOUCHELAGHEM
View ArticleCompression and FuncUnit questions
Hi,I'm evaluating JavaScriptMVC for a new project (I have downloaded v3.2.4). After following the Cookbook tutorial I have 2 questions:1) On the compression step, I get the "production.js". Doing a...
View ArticleRe : Testing CanJS Web Apps
I just looked threw your canjs+require.js example and tried the following without success. I dont know why the route does not work at all when using...
View ArticleRe : Testing CanJS Web Apps
my guess is because requirejs removed its ability to delay jQuery's ready event from being fired until after all scripts have been loaded.There might be a plugin that does this. If you add it, it...
View ArticleRe : Testing CanJS Web Apps
I tried the following with requirejs domReady and jQuery domReady together and its not working...
View Article