Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

_destroyed flag

$
0
0
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.

  1. destroy: function() {
  2. if ( this._destroyed ) {
  3. throw this[STR_CONSTRUCTOR].shortName + " controller already deleted";
  4. }
  5. var self = this,
  6. fname = this[STR_CONSTRUCTOR].pluginName || this[STR_CONSTRUCTOR]._fullName,
  7. controllers;
  8. // mark as destroyed
  9. 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

Viewing all articles
Browse latest Browse all 3491

Trending Articles