component / reactive

Tiny reactive template engine
383 stars 48 forks source link

emit in defaults.html not working #164

Open rickdog opened 9 years ago

rickdog commented 9 years ago

https://github.com/component/reactive/blob/master/examples/defaults.html

following doesn't do anything:

  setTimeout(function(){
    article.title = null;
    article.emit('change title');
  }, 2000);
chemzqm commented 9 years ago

Some examples need adapter code for running correctly, you can change the adapter.js code like this one https://github.com/chemzqm/reactive/blob/master/lib/adapter.js or create your adapter and attach it to reactive like this example https://github.com/component/reactive/blob/master/examples/backbone.html