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

Model/Map that could get attrs from parent as Scope does

$
0
0
Have you ever thought of Models/Maps that could get properties from parent?

can.Model({
      document: ..
      someProp: {
            someMethod: function(){
                  this.attr('document') // this would get document value from upper "scope" if current scope does not have them
            }
      }

})

Viewing all articles
Browse latest Browse all 3491

Trending Articles