Re : Multiple Steal plugins in one?
I'm not sure how I'd get it to work without require(), though, since we need: exports.instantiate = require("$less").instantiate; A System.import("$less").then() wouldn't get the value to exports...
View ArticleRe : Multiple Steal plugins in one?
It even occurs with https://github.com/bitovi/steal/pull/234. I must be doing something wrong?
View Articlemap binding across components
Why is this fiddle not working?: http://jsfiddle.net/prometh/La806u2d/
View ArticleRe : map binding across components
David (Luecke) looked at it and wasn't sure why it isn't working. Maybe Justin or another person very familiar with CanJS' source code can take a look as well?
View Articlesteal config deps not working
I am using the steal which is part of JMVC 3.3. I have the following steal config steal.config({ map: { "*": { "jquery/jquery.js" : "jquery",...
View ArticleRe : steal config deps not working
With legacy versions of StealJS, I had to settle for wrapping each library manually with steal(), because otherwise this error would occur - caused by the contents of jquery-ui.js being evaluated...
View ArticleRe : steal config deps not working
Thanks for your reply @asavoy. I know that all non steal modules can be wrapped withing a steal() block and also since this version supports 'then() - although deprecated', this error can be easily...
View ArticleRe : steal config deps not working
Does this work if you are not using steal? If you are using CJS or AMD?
View ArticleRe : steal config deps not working
You aren't supposed to use "shim", you are supposed to use meta: https://github.com/bitovi/steal-can-example/blob/master/stealconfig.js#L41 You are using the new steal right?
View ArticleRe : steal config deps not working
No, the steal packaged by default in jmvc 3.3. It is the legacy steal I suppose. But the documentation for jmvc 3.3 says that shim can be used. It can't?
View Article{{#each}} within attribute value prints a function
<tag attribute="{{#each}...{{/each}}"/> prints <tag attribute="function (el) { ... }"/> http://jsfiddle.net/prometh/vvx3scnc/
View ArticleRe : {{#each}} within attribute value prints a function
https://github.com/bitovi/canjs/issues/1235
View ArticleRe : map binding across components
I can't easily track down the issue, but I do notice that there's a workaround possible by using .attr("files.0") instead of .attr("files.length"). http://jsfiddle.net/air_hadoken/La806u2d/15/ This...
View ArticleRe : static objects in a can.Map?
Identity. Putting an object inside a can.Map converts them to maps.
View Articlecan.List has no prototype.sort() ?
I have access to slice, but not sort. can.Component.extend({ scope: { list: [2,1], test: function() { this.attr("list").sort(); } } });...
View ArticleRe : can.List has no prototype.sort() ?
For that to work, you need to steal the sort plugin `can/list/sort`. Though IMHO it's a little broken . I've found it easier using `Array.prototype.sort()` and returning a new list if you need sorting...
View ArticleRe : static objects in a can.Map?
If you don't want the behavior to convert to can.Map you could try the define plugin with type: "*" . From http://canjs.com/docs/can.Map.prototype.define.type.html
View ArticleRe : can.List has no prototype.sort() ?
Thanks! Basically all I wanted was Array.prototype.sort() , but without the need to use the semi-cryptic apply() . No escaping it without a plugin for the time being, I guess. I have another issue,...
View Article