Re : Component, Control or Both
Components don't work well outside of Mustache. However, you could bootstrap "mustache-scope-less" components relatively easily, especially with 2.1. This will be made easier in future releases.By...
View ArticleCanJS Community Hangouts
CanJSers,We will be having a weekly meeting to discuss the latest CanJS news and bugs we are fixing and features we are going to add. Each hangout will end with an open Q & A for anyone to ask...
View ArticleRe : Download/export documentation?
Clone:https://github.com/bitovi/canjs.com/tree/gh-pagesInstall all submodules.Follow the readme.markdown.
View ArticleStealing Can with MooTools
Hi,We deployed our product using CanJS 1.1.8 and Steal.We never properly set things up with steal and launched it in production mode (building never worked).Now that the bug torrent has settled down,...
View ArticleRe : Download/export documentation?
Hm...I'm not having much luck. All I need is the doc for JQueryMX, so I cloned it, but don't see any doc.
View ArticleRe : Stealing Can with MooTools
I found the issue with routing, it had nothing to do with CanJS version.The other issues though are irrespective of Can no?Upgrading to the latest version of Can is going to take a while. I wanted to...
View ArticleCanJS: DOM ready callback
Hello guys.I can't find core library agnostic method to listen for DOM ready event. If I use jquery as a core library, of course I can use $(func) or $.ready(func). But I'd like to handle all my stuff...
View ArticleCustom productionId with steal/build
Currently it's possible to override default productionId (which is production.js) with something else using steal.config (http://javascriptmvc.com/docs/steal.config.productionId.html).However I do not...
View ArticleRe : Stealing Can with MooTools
Looks like updating to can 2.x wasn't that hard. Done and working. Still have the issues with MooTools and MooTools More though.
View ArticleRe : Re: Data-Driven Javascript Controls -- What about checking checkboxes?
Yea, your approach is awfully overcomplicated. Here:can.Component.extend({ tag: 'checkbox-list', scope: { list: [], checkAll: function() { this.attr('list').forEach(function( item, index,...
View ArticleJavascriptMVC Examples
With references to http://javascriptmvc.com/docs/srchr.html, I have downloaded the source files from Github. However I have encoutered the following problem: TypeError: $ is undefined Fyi,...
View ArticleRe : Re: Data-Driven Javascript Controls -- What about checking checkboxes?
Thanks for the suggestion, but modifying the models passed in (via list) is the exact approach we have to avoid, due to our models' persistence (the same model instances are used for the lifetime of...
View ArticleRe : CanJS: DOM ready callback
When using jQuery can.ready is the same as $.readyJust use the DOM ready event that from the core library you are using. I believe can.ready will do that for you.
View ArticleRe : Re: Data-Driven Javascript Controls -- What about checking checkboxes?
One thought, something I hadn't tried before -- we could modify the user models directly in if we could guarantee (a) no attribute collisions with any other components that use that model, and (b) that...
View ArticleRe : Re: Data-Driven Javascript Controls -- What about checking checkboxes?
Well, you can use serialize to strip out fields, or otherwise redefine the scope. Generally, I find it a lot more straight forward to just utilize can.Model instances like I would any other can.Map....
View ArticleRe : CanJS: DOM ready callback
I would highly recommend using an AMD loader, such as requirejs or stealjs. The benefits cannot be understated, it's exceedingly simple to use, and you wouldn't need to care about the ready event either.
View ArticleRe : CanJS: DOM ready callback
I'm using StealJS instead of RequireJS. It does not have domReady plugin.
View ArticleRe : CanJS: DOM ready callback
If my core library is not JQuery, then I can't use $.ready()...What I'm trying to say is can.ready should be available via can.util.library and should proxy the call to the native core library's DOM...
View ArticleProperty name event not firing on computed value
It seems I'm not able to bind to the property name event for a computed value. Is that correct?Say we have the following:var state = new can.Map();// primitive valuesstate.attr('foo', 'one fish, two...
View Article