Nested observe batch operations
Could you please explain how the following code supposed to workcan.Observe.startBatch()person1.attr('firstName', 'John')person1.attr('lastName', 'Doe')person1.children.push({firstName:...
View ArticleRe : sucess and error callback functions are passed as undefined to findOne...
success and error callbacks are passed to the Deferreds fail and success handler. Since $.ajax returns a Deferred already you shouldn't have to handle the callbacks explicitly.
View ArticleMVC architecture: View / Controller SELECT
Is it possible to achieve the functionality of a HTML5 <select> elementas shown in this Fiddle with more optimized code?Thanks,Udo
View ArticleRe : MVC architecture: View / Controller SELECT
The simplest variant (least complex code) I believe would be this:http://jsfiddle.net/c2TW7/20/Don't be too concerned about "MVC rules", it is not always the best pattern to follow consistently in RIA,...
View ArticleRe : MVC architecture: View / Controller SELECT
alex,your suggestion helps understanding the CanJS structure, thanks.Why do you think binding with compute during initialization and <% value() %> is more efficient than <%= this.attr(' . . ....
View ArticleRe : MVC architecture: View / Controller SELECT
well, for me it looks more clean =) it also helps to abstract view's code from structure of state.So you mainly should always think more about simplicity and maintainability of your code than following...
View ArticleRe : Need feedback on two-way bindings
I have also made a two-way binding example (inspired by the weekly widget).Take a look here:http://jsfiddle.net/pederan/kEEWD/Would be great to get some feedback on how to do this more efficiently.
View Articlecan.jquery / can.zepto
I am about to develop an app for both desktop and mobile browsers.It might be necessary to start with the desktop version and jQuery, then switch to Zepto 1.0+ to go mobile.Do can.jquery and can.zepto...
View ArticleRe : Nested observe batch operations
It will only be updated after the second stopBatch is called.startBatch / stopBatch has a counter in it. startBatch adds 1, stopBatch subtracts one. When it reaches 0, it fires off all events with...
View ArticleRe : can.jquery / can.zepto
CanJS should still work exactly the same (we are running the same tests against all libraries) so you will only have the limitations posed by the library. If you run into different behaviour anyway,...
View ArticleGrunt 4.0 and steal (grunt-steal)
Could you explain how to make steal task work:I have the following structure of folders:/app /app.js /build.html /build.js/build/steal /js.batGruntfile.jsto build app without grunt-steal on...
View ArticleRe : Grunt 4.0 and steal (grunt-steal)
UPD: grunt.util.spawn result:{ stdout: '', stderr: 'Error: Could not find or load main class org.mozilla.javascript.tools.shell.Main', code: 0, toString: [Function] }
View ArticleRe : Grunt 4.0 and steal (grunt-steal)
It seem its a bugif root steal directory is in config, then task changes dir and all relative paths now resolved relative to steal/ directory but not steal parent.
View Articlesteal/buildjs not invoking Envjs
I'm trying to run steal.build but getting: 'window' is not defined error. This suggests to me that the code is not being run in a browser context, which is what Envjs is supposed to be. Anyone else...
View ArticleRe : Grunt 4.0 and steal (grunt-steal)
It also does not override build script options ("to" and "converter") for steal master branch.
View ArticleWhy does this ultra simple html generate an error ?
And how do I fix it ?Stripped down to the bare essentials :<!DOCTYPE html> <html> <head> <title>Mustache test</title> <script src="jquery.min.js"></script>...
View ArticleSteal and (uglify) compiler
Is there now only uglify compiler that is used by latest steal? I've noticed that regardless build script param node process is running while build.
View ArticleRe : Why does this ultra simple html generate an error ?
Check Bitovi's blog for examples. Sent from my iPhoneOn May 16, 2013, at 7:38 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View Article