examples/example.js in bowline-0.5.3 vs examples/example.js in bowline-0.5.4
- old
+ new
@@ -1,24 +1,11 @@
-$('#users').bowline('users_binder');
+$('#users').bindto('UsersBinder');
-var user = $('#users').items(10);
-user.update({name: 'Alex'}); // will automatiinvokey
-user.item().errors //=> []
-
-// Deletes item from DOM too
-item.destroy()
-
// invoke collection method
// This will invoke UserBinder.admins and fill #users with admins
$('#users').invoke('admins');
// invoke singleton method
$('#users').items(10).invoke('charge!');
// invoke charge! on every user
-$('#users').items().invoke('charge!')
-
-// // For binding over a http connection - an async invoke
-// // last argument is a function
-// $('#users').items(10).invoke('charge!', function(){
-//
-// })
+$('#users').items().invoke('charge!')
\ No newline at end of file