These are chat archives for canjs/canjs

4th
Apr 2015
Justin Meyer
@justinbmeyer
Apr 04 2015 04:25
@dylanrtt you can only overwrite
but you can probably get the original function
and run it yourself
can.view.attr("can-click") -> callback
dylanrtt
@dylanrtt
Apr 04 2015 04:26
yeah I just tried it and it works. thanks
Justin Meyer
@justinbmeyer
Apr 04 2015 04:27
well, I was just about to say it might be a bit more complex if you really want to overload
you probably have to remove the old one from can.view.callbacks._regExpAttributes
b/c it looks like can.view.attr will give you back the first match
@/all here's a cool jsbin for 2.2: http://jsbin.com/ledosi/1/edit