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

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

$
0
0
can.Component has access to an init function, since it's extending can.Control. Awesome stuff!
  1. init: function(element, options)
  2. {
  3.       this.scope.attr("element", element);
  4. },

  5. scope:
  6. {
  7.       something: function()
  8.       {
  9.             console.log(this.element);
  10.       }
  11. }

Viewing all articles
Browse latest Browse all 3491

Trending Articles