Re : Upgrade less from 1.0.34 ( 2010 huge jsjmvc app ) to actual version
For those with the same problem : I´m loading less.js as an outside plugin and after that loading less_helper.js wich is a script to load the main .less file :less_helper.js :var link =...
View ArticleSteal.build cannot handle properties defined by Object.defineProperty(-ies)
Including a library that extended various objects with Object.defineProperty. steal/buildjs complained that said properties were undefined (when encountering them in the client code).Managed to replace...
View ArticleRe : Observe with deeply nested data
Hi Justin,The issue is not really an error, but it is desired functionality that I have not been able to figure out. Basically, there 3 views/controllers for cars, trucks, transports. Cars and trucks...
View ArticleRe : Observe with deeply nested data
Updating a "deepObserve" and showing those updates in multiple places should work. If it's not, it's an error, one we would like to fix. But to make it easier, so that we don't have to dive through...
View ArticleRe : Observe with deeply nested data
OK, thx -- seems it might be challenging to "remember" where each deep observable was referenced across multiple views. Ideally just the items that changed would re-render. Seems a partial that...
View ArticleRe : Observe with deeply nested data
Sorry to keep asking for this. I'm going to look at it soon, I just don't want to spend a lot of time getting into it.By more simple, I mean, does it have to have 4 makes, 6 trucks, 2 transports...
View ArticleRe : Observe with deeply nested data
Simplified to have fewer items, removed the showData. However, left the addTruck/Vehicle because these operations must still work in any solution. Similarly, not sure if generating the view in html()...
View ArticleRe : Observe with deeply nested data
The code runs the same if it's in a controller or not. Does addTruck work? If so, please remove it. I want something minimal to be useful for adding a test for canjs's test suite. Sent from my iPhoneOn...
View ArticleRe : Grunt 4.0 and steal (grunt-steal)
Could it be to do with the fact that steal/buildjs has to be run from the parent folder, otherwise the above error is encountered? This is according to the latest JMVC documentation [link].Edit: tested...
View ArticleRe : Grunt 4.0 and steal (grunt-steal)
Furthermore, at least in Windows (8), the spawned child processes seem to "linger", even though they do nothing (useful). As I was comparing test results between plugin and command-line (from the same...
View ArticleRe : Observe with deeply nested data
Hmm, at this point think it would be best to just look at the example. It's not too big and I leave it to your team to figure out how to extract a test case. The "add" use case is important, because...
View ArticleBug? Trying to .trigger() an event within a test
I have a test where I need to manually trigger an event, to ensure a controller updates the page appropriately in response. My test effectively boiled down to something like this, which does not work:...
View ArticleRe : Bug? Trying to .trigger() an event within a test
Funcunit only sends browser events, not jQuery synthetic events. So things like click / keypress work, but not a "test" event. There's a way to access FuncUnit's internal jQuery so you can do this....
View ArticleRe : Bug? Trying to .trigger() an event within a test
I didn't read your whole post (still haven't). But, this is likely due to using two different versions of jQuery. I think there's some way of allowing one version of jQuery to trigger events on another.
View ArticleRe : steal\getjs throws loads of errors
Can you give more precise directions? Which repo? Where should it be pulled?
View ArticleOrganising form submission with html5 'required' elements
Its not clear to me how best to organise form submission whilst retaining the built in browser support for the html5 'required' attribute on the elements.I have a form that submits via jQuery.post,...
View ArticleRe : Organising form submission with html5 'required' elements
OK, sortedThe Submit: can.Control() should be set on the form and should listen for the submit event.Obvious. I must have been having a senior moment.
View ArticleRe : Bug? Trying to .trigger() an event within a test
That makes sense -- my seems-to-work solution appears to be using FuncUnit's internal jQuery. I initial tried using Syn directly, but (as you suggest) I couldn't get it to send synthetic events.It...
View ArticleRe : Organising form submission with html5 'required' elements
PS anyone noticed that the latest main Firefox 21 runs like an absolute DOG on canjs stuff compared to earlier versions ? Takes ages to load your site (and my app) but Chrome snaps it together in a...
View ArticleAnyone know of a canjs modal dialog example ?
I don't want to load the whole Bootstrap or jQueryUi just for this unless I *really* have to ...???Failing that I suppose I'll have to write one. Sigh.Ron
View Article