petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
764 stars 51 forks source link

modelActions gotcha ... #40

Closed jamesladd closed 11 years ago

jamesladd commented 11 years ago

When I add the below to my view:

modelActions: {
    'edit'  : 'onEdit'
},

The view stops working because I didn't include the { 'change': 'update' } entry. The modelActions work when I change to:

modelActions: {
    'change': 'update',
    'edit'  : 'onEdit'
},

Could this GOTCHA be added to the doco (I looked but didn't see it).

petermichaux commented 11 years ago

Please see that patch. If that does not answer your question then please reopen.

(Documentation is not building correctly locally. I will publish to the site asap.)

petermichaux commented 11 years ago

Documentation on the site has been updated...

http://peter.michaux.ca/maria/api/maria.View.html