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

No this.element in can.Component.scope like can.Control?

$
0
0
can.Control has this variable and it's very handy when you need to do DOM stuff.

Is there any other way to access the element without having to define scope with a custom function?:
  1. scope: function(attrs, parentScope, element)
  2. {
  3.    return new can.Map({element:element});
  4. }

Viewing all articles
Browse latest Browse all 3491

Trending Articles