These are chat archives for canjs/canjs

8th
Apr 2015
Justin Meyer
@justinbmeyer
Apr 08 2015 03:29
so canjs's inserted fires when an object is inserted into the dom
however, removed is fired whenever the element is removed from its parent ... or a parent is removed from its parent
those two things should probably be made the same
or we need to introduce other events
that can tell the difference
dylanrtt
@dylanrtt
Apr 08 2015 16:39
when using can.view.preload('my-partial', template) I guess I can't use slashes or dots in the name for 'my-partial'?
I was hoping to use it to fill in the names of my partials that look like {{>path/to/partial.mustache}} so I wouldn't have to change their names in the template since eventually I want use the ~ syntax with the correct path
largoelks
@largoelks
Apr 08 2015 17:26
What browsers/versions does canjs support? Is there a page on the canjs website?
Matthew Phillips
@matthewp
Apr 08 2015 17:27
IE8 and up
currently
largoelks
@largoelks
Apr 08 2015 17:33
Can is support IE7 using the steal syntax?
Matthew Phillips
@matthewp
Apr 08 2015 17:36
It will probably work in IE7
please submit fixes if you find problems
Curtis Cummings
@ccummings
Apr 08 2015 17:37
I ran the tests in IE7 a few weeks ago and we got 3199/3225 test passed
largoelks
@largoelks
Apr 08 2015 17:38
Wow... that's truly awesome
Matthew Phillips
@matthewp
Apr 08 2015 17:41
ie7 support is very low, less than 1% i believe
ie7 usage i mean
Curtis Cummings
@ccummings
Apr 08 2015 17:42
Most of those failures are from HTML parsing and generating so it’s very possible you would be able to run a CanJS app in IE7 and not notice those things
Matthew Phillips
@matthewp
Apr 08 2015 17:43
@largoelks what industry do you work in?
just out of curiosity
largoelks
@largoelks
Apr 08 2015 17:45
@matthewp financial industry
we just killed IE6
I don
I don't think it's hugely important but I'd like to try and service our internally supported browsers. We have 29% worldwide using IE7
Matthew Phillips
@matthewp
Apr 08 2015 18:11
wow
we're working on server-side rendering currently, i think this will help reach older browsers
if you have a simple app
Matthew Phillips
@matthewp
Apr 08 2015 20:36
@/all Don't forget that we are having a special hangout this Friday about the new features in CanJS and StealJS: https://plus.google.com/events/cfrtqkdrgabil1tojif1dnlq770
dylanrtt
@dylanrtt
Apr 08 2015 20:37
I'm having a strange issue with steal/can where the steal-provided renderer function is not processing my custom attribute, but when I load the view through can.view, then it works. Could the renderer function be cached or something?
Matthew Phillips
@matthewp
Apr 08 2015 20:39
@dylanrtt it's become your template is dependent on your can.view.attr
If you're using 2.2 you should use <can-import from="my/attr" />
dylanrtt
@dylanrtt
Apr 08 2015 20:40
am I supposed to do that for every template that uses a custom attribute or component?
Matthew Phillips
@matthewp
Apr 08 2015 20:41
yep
dylanrtt
@dylanrtt
Apr 08 2015 20:41
dang
Matthew Phillips
@matthewp
Apr 08 2015 20:41
but that means you don't need to do it in your javascript
dylanrtt
@dylanrtt
Apr 08 2015 20:43
is there no way to cheat the system and ensure some components get loaded always? something tells me I don't have to import can-value on every template
I know the file has already been included at some point in steal, but it doesn't seem to make it into the render function
Matthew Phillips
@matthewp
Apr 08 2015 20:47
actually there was a time that can-value had this same issue but iirc we made mustache depend on it so the problem went away
there's always a way to cheat but there are consequences for cheating :)
think about it the same way you think about adding dependencies to js files
you're just moving one that you probably had in a js file somewhere and putting it in its proper place, the template
dylanrtt
@dylanrtt
Apr 08 2015 20:51
well I was hoping to move in a direction of having like a lib.js file that I could use in many parts of my app without having to load every single dependency in every script or template... this just seems more verbose than it has to be
the fact that you did that to can-value proves the point that global components are useful and there should be a way to include them easily
Chris Gomez
@akagomez
Apr 08 2015 21:10
@daffl I think the can.Deferred docs are broken.
Even the previous versions.
David Luecke
@daffl
Apr 08 2015 21:11
They look a little empty
Chris Gomez
@akagomez
Apr 08 2015 21:24
@daffl Maybe the docs aren't resolved yet?
David Luecke
@daffl
Apr 08 2015 21:26
?
Chris Gomez
@akagomez
Apr 08 2015 21:50
@daffl Bad joke... $.ajax('http://canjs.com/can.Deferred.html').done(function () { / show docs / });
Matthew Phillips
@matthewp
Apr 08 2015 21:52
i love it
Marshall Thompson
@marshallswain
Apr 08 2015 21:52
Pretty good joke, really.