These are chat archives for canjs/canjs

13th
Apr 2015
Matthew Phillips
@matthewp
Apr 13 2015 17:15
I'm really excited about this feature.
Chris Gomez
@akagomez
Apr 13 2015 18:07
@justinbmeyer Can you use the Define plugin to set your comparator on a can.List?
Justin Meyer
@justinbmeyer
Apr 13 2015 18:07
probably not
Chris Gomez
@akagomez
Apr 13 2015 18:08
That's cool. Just wanted to make sure I wasn't going crazy. What's your take on something like that?
Morgan Heimbeck
@Xitstrategies
Apr 13 2015 18:11
@akagomez you have a map with a define that loads a list and you want to sort it on load or something? not a bad idea. I have wondered if there was something like this as well. because then I wouldn’t need to have additional code in my component or controller before passing it to the view.
Chris Gomez
@akagomez
Apr 13 2015 18:13
@Xitstrategies I don’t have a specific use-case yet. Just thinking ahead.
Justin Meyer
@justinbmeyer
Apr 13 2015 18:13
The define plugin should be made to work on can.List
it's something we've talked about for a long time
@Xitstrategies you don't need define to do that
you could set this up in your List's init