Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Best practice for passing references to a can.Component instance

$
0
0
You could make it an "interface" by calling it like:


(".accepts-notifications").scope().addNotification( notification )

This way anything with the className accepts-notifications and an addNotification method would work.



Viewing all articles
Browse latest Browse all 3491

Trending Articles