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

Re : Need feedback on two-way bindings

$
0
0
This is a real neat example and it helped me debug some issues I was having in my code.

Is there a specific reason for reassigning these properties, or it just shorthand to avoid typing 'this.options.attr':
  1. this.model = options.model;
  2. this.attr = options.attr;

Anyway it's a great little recipe, and if you could add some commenting to explain the various steps it would be even better.

Viewing all articles
Browse latest Browse all 3491

Trending Articles