简体   繁体   中英

Ember-Data extend a state of DS.StateManager

What is the proper way, or is it possible to extend an Ember-Data state?

For instance I would like to add an new event handler to the "saved" state, but I have not been able to find anything that does this in the tests or the "documentation" ™.

I have been having the same problem and I ended up copying everything in the closure that contains the definition of DS.StateManager. Unfortunately, since it's in the closure there isn't much else you can do... I'm going to work on figuring out a better way to do it, but for now that's the best I've found.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM