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

Re : scope for element callbacks

$
0
0
Yes, currently the element callback scope it is the window. We already added that feature you mention in the branch for version 1.2 (see pull request #304) for the element callback scope being the current scope of the view.

For now you will have to do something like:
  1. <div class='item' {{ (el) ->  new MyControl(e, thisl) }}>{{thing}}</div>

Viewing all articles
Browse latest Browse all 3491

Trending Articles