Re : Weird generation problem while building 4MB app.
For anyone running in to this issue: Add this: var inLengthComp = compressCollection([text], [mapObj]).length(); if( inLengthComp ==0 ) { steal.print(" ! compression failed " + stl.rootSrc + '...
View ArticleRe : Anyone!??? Controller events listeners/triggers are broken in CanJS
Hey Justin If you get a chance please follow up on this question Thanks
View ArticleError when run build
hello, i'm trying to run the build for my web project but i had this error : i don't know what's the error. MacBook-Pro-di-Cesar:visitor candavisa$ ./js visits/scripts/build.js Building to visits/...
View Articlehow to add functions on can.Map
How do I add a function to a can.Map? This is what I tried, but it's undefined. I expected a function. var M = can.Map.extend({ first: "largo", last: "elks", speak:...
View ArticleRe : how to add functions on can.Map
What do you mean exactly? You add a function exactly like you wrote it if you want a function on the prototype that you can call like: m.speak(); Are you wanting to add a function as an attribute...
View ArticleRe : Route Question
So this might clear up a lot: http://stackoverflow.com/questions/25776037/routing-conventions-in-can-js/25776652#25776652 I'd suggest not using "XYZ route" style routing. It's not what CanJS is...
View ArticleRe : how to add functions on can.Map
Hi Justin I can access the other properties on the map like m.attr("first") and m.attr("last"). What I didn't understand is why the property speak can't be accessed with .attr().
View ArticleRe : how to add functions on can.Map
When defined like that, speak isn't a property, it's a function. Properties are things that you change. Typically, you call functions and they are permanent behaviors of some object. If you want a...
View ArticleNew to CanJS - Page Routing Question
I am attempting to use the pushstate and have the following test code working great. I can click links and history generates nicely with pretty urls. However if i refresh any of the pages or copy and...
View ArticleRe : New to CanJS - Page Routing Question
you need to fix this on the server. it should serve back your html page for any incoming requests.
View ArticleRe : New to CanJS - Page Routing Question
You probably need to configure your server to serve the root index.html for those route URLs. If you can configure it as the 404 page, that would work & not block any actual files from being served.
View ArticleparseModel and arrays
My REST service is returning an array for some attributes and it seems that Model's parseModel (under the hood using attributes converterI believe) is converting any array into a Can.List. Is there a...
View Articlecan.List.sort method not available in can v2.2.1?
Hi, trying to sort a can.Model.List returned by my Model.FindAll method, I was glad to discover in the api the can.List.sort method. But in my context, this method is not available. Ex : var list = new...
View ArticleRe : can.List.sort method not available in can v2.2.1?
If someone has the same problem, a temporary workaround that may help : list = new can.List(list.attr().sort(mySortFunction));
View ArticleRe : parseModel and arrays
Using the define plugin from Map allows you to specify a type of any attribute of the model. By specifying a type of "*" for the array attribute, it will prevent the default type conversion of arrays...
View Articlerouting and url params
Im looking to implement ui side routing in my app, switching to a more single page design, its a large app, with a lot of legacy code, it would be nice if i could implement the hasbang routing and also...
View ArticleUsing Steal and Karma
I'm looking at using Karma + Mocha to test my StealJS + CanJS application. Does anyone have experience using Steal with Karma? Are there any pitfalls?
View ArticleIs there any possibility that steal is causing - IE8 “A script on this page...
In our application we are stealing around 471 files (includes canjs, some jquery ui libraries, some 3rd party libraries and application code). Is there any intense recursive code in steal which get...
View ArticleRe : Is there any possibility that steal is causing - IE8 “A script on this...
It's unlikely. It's possible to create infinitely recursive cycles in steal. However, this would be a problem in all browsers, not just IE. If you are stealing lots of LESS files, it might take a...
View Article