These are chat archives for canjs/canjs

25th
Apr 2016
vijayravi
@vijayravi
Apr 25 2016 07:13
Hi. I am getting a 40% delay when I do map.attr( {key: value} ); than when I use map.attr('key', value);
Here's the JS Bin: http://jsbin.com/luxawubuku/edit?html,js,console,output
Any idea what causes this anomaly?
Julian
@pYr0x
Apr 25 2016 07:20
i think this is caused
because when do apply a object, can will do more stuff https://github.com/canjs/canjs/blob/master/map/map.js#L205
Justin Meyer
@justinbmeyer
Apr 25 2016 15:54
Gregg Roemhildt
@roemhildtg
Apr 25 2016 20:21
Hi all, is it possible to tell stache not to search up the parent(s) scope for a certain component?
And only look in the current scope?
Hm, just found leakScope. Going to give that a try.
Julian
@pYr0x
Apr 25 2016 20:33
or use ./
./foo
Paul Tichonczuk
@tracer99
Apr 25 2016 21:41

If I want to have shared code in a DoneJS project that is not a component. ie. a can.Map which I want to define in one place and import it, how do I do this?

import Map from "can/map/";

export let myMap = new Map({});

failes with an error from steal about nodes being null

Julian
@pYr0x
Apr 25 2016 21:43
sorry
dont understand
can you give a exmaple
Julian
@pYr0x
Apr 25 2016 21:49
is this valid es6 code?
what about:
import Map from "can/map/";
        let myMap = new Map({});
        export myMap;
how do you import this?
Kevin Phillips
@phillipskevin
Apr 25 2016 21:52
export let… should be valid
what is the error message? @tracer99