multi application packaging
We are developing a application using Javascript MVC.While designing the application, we designed the each module of the application as a separate application using packaging.For Example, 'Mainapp' is...
View ArticleRe : Best practice for passing references to a can.Component instance
thecountofzeroI think, this approach fits well for components that are designed to be tightly coupled.
View Articlemodel best practice?
I've just started working at a new job. While reviewing the code I've found that their models make service calls using other models. This seems like a strange way to construct a model. But I'm not an...
View ArticleRe : Best practice for passing references to a can.Component instance
So as long as components are intended to be tightly coupled, doing so is ok?I am not arguing one way or another. I am just trying to understand the larger picture of best practices for CanJS...
View ArticleRe : Best practice for passing references to a can.Component instance
Tom, that could create a problem when creating animated interfaces with transition events. Wrapping the data with another API allows for "removal" on the outside, but with a delay on the inside. Also,...
View ArticleRe : Best practice for passing references to a can.Component instance
You could make it an "interface" by calling it like:(".accepts-notifications").scope().addNotification( notification )This way anything with the className accepts-notifications and an addNotification...
View ArticleAnimation: DOM events on observable elements without memory leaks
If we were building an animated app, where things transition out as they are removed from observable data, how can we avoid memory leaks and maintain...
View ArticleRe : Animation: DOM events on observable elements without memory leaks
This should be pretty easily solved by using the `each` helper instead of {{#items}}. One additional (and important) feature of the each helper is that it only adds and removes specific items from the...
View ArticleRe : Animation: DOM events on observable elements without memory leaks
Wow! That was easy! I'm curious, though; why is it that {{#each}} is handled differently?
View ArticleRe : Animation: DOM events on observable elements without memory leaks
Because each does not rerender the whole list every time See docs:http://canjs.com/docs/can.Mustache.helpers.each.htmlIf the value of the key is a can.List, the resulting HTML is updated when the list...
View ArticleRe : Animation: DOM events on observable elements without memory leaks
Yes, I know, but why is it treated differently than {{#key}} ?
View ArticleRe : Animation: DOM events on observable elements without memory leaks
Well, I suppose because #key (even if key is can.List) works as usual: when key is changed (any change inside list) the whole block is rerendred.And #each is special helper that is supposed to handle...
View ArticleRe : What happened to the map and filter functions in the old can.Observe.List?
I think documentation for this plugin is missing. attribute, backup, delegate, setter, validation are present in guides. But there is no documentation of can.Map.List. Also I could not find a list.md...
View Articlecan.route.pushstate link outside app?
If we have an app at /app/, and we'd like to have a link in our templates go outside the app's scope to /static/, how would we do that? Using an absolute URL just got caught by the router's listener
View ArticleRe : What happened to the map and filter functions in the old can.Observe.List?
We'd be more than happy about a pull request that adds said documentation.
View ArticleRe : FuncUnit - Port Numbers issue - page not loaded in time.
Hi Brian,I am running up into the cross domain issue, is funcunit.remote supported at all? I found a recent page related to this http://funcunit.com/guides/funcunit.remote.html but I couldnt find...
View ArticleWell i am new to canjs and any js wanted your help badly.
var emall = can.Model.extend({ findAll: "GET/api.php/specialoffers", findOne: "GET/api/specialoffers/{sid}"}, {})can i hear create a model which will have all the api.php like Var q =...
View ArticleEmpty "{can.route}" can.Control event?
"{can.route} something" works fine when "something" has a value. "{can.route}" does nothing, and "route" causes an additional back button history index. I'm using can.route.pushstate
View ArticleRe : Empty "{can.route}" can.Control event?
We ran into this as well, when trying out the can.route.pushstate plugin. Our eventual solution was to basically remove all the intelligence from can route via a plugin (which I call "nullrouter"),...
View ArticleProblems to display a view .ejs
Hi, I am developping an app in JQueryMx and also new with the MVC framework. I instanced my controler in my html page and have its path instead of the view content -> <div id="category_list"...
View Article