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

Re : Declaring default attributes from upper level scopes

$
0
0
BTW the problem with using scope function like:
  1. scope: function(attrs, parentScope, element){
  2.   return new can.Map({
  3.     dict: parentScope.attr('dict')
  4.   })
  5. }
for cases where it is it will not setup two way binding automatically if attribute doesn't present on the element.

Viewing all articles
Browse latest Browse all 3491

Trending Articles