Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

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 Article


Re : Multiple Steal plugins in one?

Any idea?

View Article


Re : Multiple Steal plugins in one?

It even occurs with https://github.com/bitovi/steal/pull/234. I must be doing something wrong?

View Article

map binding across components

Why is this fiddle not working?: http://jsfiddle.net/prometh/La806u2d/

View Article

Re : 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 Article


steal 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 Article

Re : 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 Article

Re : 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 Article


Re : steal config deps not working

Does this work if you are not using steal?  If you are using CJS or AMD?

View Article


Re : 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 Article

Re : 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

Re : map binding across components

https://github.com/bitovi/canjs/issues/1231

View Article

{{#each}} within attribute value prints a function

<tag attribute="{{#each}...{{/each}}"/> prints <tag attribute="function (el) { ... }"/> http://jsfiddle.net/prometh/vvx3scnc/

View Article


Re : {{#each}} within attribute value prints a function

https://github.com/bitovi/canjs/issues/1235

View Article

Re : 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 Article


Re : static objects in a can.Map?

Identity. Putting an object inside a can.Map converts them to maps.

View Article

can.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 Article


Re : 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 Article

Re : 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 Article

Re : 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
Browsing all 3491 articles
Browse latest View live