Loading parent controllers when accessing a bookmarked url
Hi there,I'm analyzing javascript mvc frameworks for a medium size web application, so far I really like all features presented by jmvc, but I have one question about the routing functionalityAssume...
View Articlecan.batch.start callback called too early in can.Map.extend() init?
I'm creating a plugin that will handle CSS transitions automatically. In certain situations where you would've created a can.List, you would do so with can.TransitionList and any objects listed within...
View ArticleRe : Well i am new to canjs and any js wanted your help badly.
var url = "/images/js/mn/json";var emall_specialoffers = can.Model.extend({ findAll: "GET url/featuredStores.json" }, {})var emalls = can.fixture.extend({ 'GET url/featuredStores.json':...
View ArticleRe : Empty "{can.route}" can.Control event?
Justin suggested that I do something like this:can.route("", {section:""});can.route(":section/");can.route.ready();"{can.route} section": function(route, event, newVal){ console.log(newVal);}This...
View ArticleRe : can.Model "update" sends all instance attributes to server.
It would indeed be a PATCH and support for PATCH would be great.I use it, but have to roll-my-own when sending data.
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
original post updated with jsFiddle link
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Because element is inserted only after new item is inserted in the list and it will happens only after item instance will be initiated (init method is done).I don't know what you are trying to...
View ArticleRe : Generating source maps
Have you managed to get it work. If yes, kindly help me out as well.
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
I'm trying to create default attributes and computes in my extended can.Map
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Why you need batch.start and stop? And reference element in init?BTW do you really understand what batch.start and batch.stop for?
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Because I have DOM stuff in can.batch.start that I'd like to run in a single browser paint. I can't have DOM stuff running before an external can.batch.stop is called now can I?
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Considering that browser has one event queue, you do:can.batch.start()// here you make some synchronous attribute changescan.batch.stop()//DOM stuff is performed once based on made attribute changes...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
It's not synchronous if you have an external can.batch.start wrapper, which is why we have the callback to begin with. My issue is occurring in both situations, however. DOM stuff after the synchronous...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Everything in your example is synchronous. The fact that you have callbacks or wrappers doesn't make event flow asynchronous (I recommend you to read how browsers javascrpt event queue works for...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
I humoured you and read your link. All I learned was that I should rename my repaint function to reflow. And I know about using timeouts; they're precisely what I've been avoiding. Before moving my...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
I've just uploaded v0.1.0beta of the plugin if you wanna take a look at everything. The issue at hand is on line 47 of map.js
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Ok. I'm didn't mean that you should or shouldn't use setTimeout.I just want to point out that your code is synchronous and deals with one attribute change there is no diff between your code and:var...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
Is there anything I can do to gain access to the DOM objects the instant they're added? can.view.hook sounds about right, but applied differently and currently EJS-only. Timeouts create visual...
View ArticleRe : can.batch.start callback called too early in can.Map.extend() init?
can.batch is used when you have many different state (Map's attribute) changes but don't what each change to fire the event that will cause DOM change, so you combine them in batch, and DOM is changed...
View Article