These are chat archives for canjs/canjs

29th
Jul 2016
isadovskiy
@isadovskiy
Jul 29 2016 09:01
Guys, di you know if it's possible to use ES6 class syntax to extend from canjs base classes?
Matthew Phillips
@matthewp
Jul 29 2016 12:13
It's not possible in 2.3
In 3.0 you can use class with can-define
isadovskiy
@isadovskiy
Jul 29 2016 14:08
thanks, @matthewp
Justin Meyer
@justinbmeyer
Jul 29 2016 14:49
@isadovskiy it's possible but most of the derived classes wont work in the right way
even in 3.0.
The problem is there's no "extended" hook
with ES6 class syntax
maybe we make it possible to call that hook programmatically in 3.0
class Person extends DefineMap {
  ...
}
DefineMap.setup.call(Person)
isadovskiy
@isadovskiy
Jul 29 2016 16:05
thanks for the headups, @justinbmeyer