How do I create a test window with set dimensions?
I am building an HTML5 app and I have been using FuncUnit for my unit tests. Now I would like to create tests specific to a smartphone layout - about 480px width. How can I create a new window and run...
View ArticleRe : CanJS - Default route called when route is not default
HiOk, thx for giving it a shot. But I still don't get why my default route listener is called (including the :project listener) when I change the route the first time. I have updated my pen with the...
View ArticleRe : Is there a way to mimic the hash change and browser refresh in Funcunit?
I faced with the same issue today. No answers for the year? Noone else faced this issue?
View ArticleRe : Error in the fresh generated project (string.js:85)
I'm getting the same problem, even though jquery is loaded previously. The problem seems to be that the $ parameter passed into the function is undefined. I cannot determine why this is so.
View ArticleRe : Error in the fresh generated project (string.js:85)
As a quick workaround I inserted: if (args.length == 0) { args.unshift(window.$); }into steal.js at row 1448, and it seems to work. Of course, this is on my local copy only. To be honest the code looks...
View ArticleRe : Error in the fresh generated project (string.js:85)
It sounds like this might be similar to an issue I ran into with StealJS, where shims from pre-loaded libraries don't get passed into the steal() callback.I'm not certain whether or not it's an issue...
View ArticleSteal production build
Hello,We have been using JavascriptMVC in a project for more than a year now, and have created and used the production builds successfully.Earlier this month, we updated to the latest versions of...
View ArticleSteal production build
Hello,We have been using JavascriptMVC in a project for more than a year now, and have created and used the production builds successfully.Earlier this month, we updated to the latest versions of...
View ArticleRe : Steal production build
Just wanted to also mention that the folder structure described above is just a simple test structure I created to check the issue
View ArticleReopen class in canJs
As a class gets bigger and bigger it becomes harder to maintain. So I would love to divide some of my classes in multiple files. Defining the class in a file, something like:var animal =...
View ArticleRe : Reopen class in canJs
Classes should not get so big that they are hard to maintain in the first place. Each Class or Control should do one thing.Take a paginated Grid for example. We could create a giant Control to run the...
View ArticleJMVC 3.3 ?
Bitovi folks - what is the ETA on JMVC 3.3 ?We've been waiting for the new version for a very long time now. Curtis mentioned it was coming "a couple weeks" in one of the forum posts about 6 weeks...
View ArticleRe : JMVC 3.3 ?
We are using it, it just hasn't been fully documented yet to be released. It's prod ready and stable.
View ArticleRe : JMVC 3.3 ?
Thanks Justin. That sounds great! How much longer do you think until the official release?Would be good to have an upgrade guide and a zip download or git tag so that we're on a known point and not...
View ArticleRe : Reopen class in canJs
Yes, you are right..actually this is what I am doing now, but is some situations it will be more "natural" if I could reopen the class. For example I am working on a color library, which has a lot of...
View ArticleRe : Reopen class in canJs
Hi,I dont think can.Construct supports class repoening but take a look at can.Construct.proxy plugin may be can help you.Mohamed Cherif BOUCHELAGHEM
View ArticleRe : CanJS for medium to large application with AMD
Daff I dont know if the appControl have to know what modules are presnent in the application for example:new AppControl('#app',{[ project:Project, task:Task, contact:Contact]});and have...
View ArticleRe : scope for element callbacks
Yes, currently the element callback scope it is the window. We already added that feature you mention in the branch for version 1.2 (see pull request #304) for the element callback scope being the...
View ArticleRe : Nested Models and canJS AMD
I know what you are talking about and unfortunately this is something that is missing. You can follow up on the feature request in issue #293. It will definitely be part of version 1.2 but for now you...
View ArticleRe : CanJS for medium to large application with AMD
I think that makes sense. You can even use can.route as the observe where you store the module, so you always know what's currently being used even if the page is refreshed. Like I said, I don't think...
View Article