ripplejs / ripple

A tiny foundation for building reactive views
http://ripplejs.github.io
1.28k stars 66 forks source link

Uncaught TypeError on data array event attachment #24

Closed lmartins closed 10 years ago

lmartins commented 10 years ago

When trying to attach the change event to a data array, I get the following error: Uncaught TypeError: undefined is not a function

You can see the problem in jsfiddle: http://jsfiddle.net/lmartins/VPB93/

anthonyshort commented 10 years ago

In this case, use ready instead of created. When ready is called, everything is bound and the array should have been transformed

anthonyshort commented 10 years ago
CustomSMS.ready(function(){
  // etc
});
lmartins commented 10 years ago

Thanks Anthony.