nl_tokens: call destroy or remove depending on which is found on the view ( if showing a raw Backbone view or a Marionette View )
pl_tokens: function ( ) { var view = this . currentView ; if ( <mask> . isDestroyed ) { return ; } if ( ! view . supportsDestroyLifecycle ) { Marionette . triggerMethodOn ( view , 'before:destroy' , view ) ; } if ( view . destroy ) { view . destroy ( ) ; } else { view . remove ( ) ; // appending isDestroyed to raw Backbone View allows regions // to throw a ViewDestroyedError for this view view . isDestroyed = true ; } if ( ! view . supportsDestroyLifecycle ) { Marionette . triggerMethodOn ( view , 'destroy' , view ) ; } }