Re : production.js won't load. Debugging?
A terrible solution, but a way to do this is, change:https://github.com/bitovi/steal/blob/master/build/js/jsminify.js#L92to return ""+source;//compressor( source, true, options.currentLineMap )
View ArticleLoop inside EJS switch cases throws - Uncaught SyntaxError: Illegal break...
Hi all,We are in the middle of upgrading our code base to 3.3 from current 3.2. The last hurdle appears to be this EJS that contains a for loop inside switch cases as shown below, stripped down version...
View ArticleRe : Loop inside EJS switch cases throws - Uncaught SyntaxError: Illegal...
Replying to my own Q. Everything is working now when switch blocks were replaced by if-else blocks. Everything else remained as it is. Â @Justin & Co. - plausible bug? Our other suites of apps might...
View ArticleRe : production.js won't load. Debugging?
Thanks Justin, I have found a bug that caused the production not to load. Luckily I don't need unminified production version anymore :)But it's good to know for the future!
View ArticleRe : Loop inside EJS switch cases throws - Uncaught SyntaxError: Illegal...
I don't think I've ever seen a loop inside a switch statement. That said, EJS starts acting up when you put multiple block statements inside the same <% %> tags. If you want to go back to the...
View ArticleRe : javascriptmvc 3.3.0 and steal.config
Indeed the maps option should do it. I'll play with that when I have time. Thanks for replying!
View Article3.2 to 3.3 migration issue w/ StealJS build
Hi all,This is one of the two areas where we stumbled during migration. .then() in app.js doesn't seem to be working during build, it works fine when running the app in development mode. Noticed...
View ArticleBuilding with steal and jquery 2
Hello,trying to build with jquery 2.0.3, got an error:Running: js.bat bstore/build.js -to build/store -compressor uglify...
View ArticleRe : Building with steal and jquery 2
If I remember correctly this is the result of envJS not implementing more modern APIs which jQuery is taking advantage of (last release of envjs was 2 or 3 years ago).There is a node port of Steal and...
View ArticleProblem with can.route, requirejs and attributes.
Hi, can.route.ready is called already when can is loaded, I'm using the AMD version 1.1.7: define([ 'can'] , function(can) { Â Â Â Â Â Â Â Â // here can.route already started. }); Now I got problems...
View ArticleRe : Building with steal and jquery 2
Is it possible to to solve this by building app without jquery and include jquery as separate script?
View Articlecan.Control as the C in the MVC Controller?
In the canjs.com doc can.Control: "It can serve as both a traditional view and a traditional controller."Any detailed explication for this?How can can.Control be a traditional controller?Mohamed Cherif...
View ArticleRe : Problem with can.route, requirejs and attributes.
This is what can.route.ready is for. So when first requiring can call `can.route.ready(false)` and when all routes are initialized and your router instantiated (if you are using the can/control/route...
View ArticleRe : Problem with can.route, requirejs and attributes.
Hi daff,I know the documentation and I know what can.route.ready should do. But my problem is, that I can't stopp the automated first call of can.route.ready, when I use requirejs and can AMD (see...
View ArticleBind to length changes of an array
I have an Observe with an attribute that is an array. Is there a way to use templated event binding in a control to bind to changes in the length of that array?I have tried the following without any...
View ArticleRe : Bind to length changes of an array
I am trying to avoid the following:state.tasks.bind('length', function() { .... })I guess I could bind to "add" and "remove" like below, but I thought it would have been easier to just bind to...
View ArticleSimple question about home page demo (canjs.com)
I feel like a bit of an idiot for asking this, but I can't figure this out.The todo example on canjs.com is pretty straightforward, except I don't get how the initial list is loaded. The template is...
View ArticleRe : Simple question about home page demo (canjs.com)
OK, figured it out, it's in the {} that gets passed to the constructor. I couldn't find anything about this in the docs, which is a problem, especially since this automagic is featured so prominently...
View Article