Hi,
We updated to the latest javascriptmvc about a month back, and just have a question regarding the _destroyed flag.
In the 3.2 version, the controller used to set a flag "_destoyed" to indicate that the destroy function has already been called on this controller.
- destroy: function() {
- if ( this._destroyed ) {
- throw this[STR_CONSTRUCTOR].shortName + " controller already deleted";
- }
- var self = this,
- fname = this[STR_CONSTRUCTOR].pluginName || this[STR_CONSTRUCTOR]._fullName,
- controllers;
- // mark as destroyed
- this._destroyed = true;
I cant find it now in the new version.. has this been removed intentionally ? If so, then what is the alternative that we should use now to check if destroy has already been called ?
Thanks