vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function() {
      var self = this;
      this.trigger('clean');
      this.clearSubViews();
      // remove from parent
      if(this._parent) {
        this._parent.removeView(this);
        this._parent = null;
      }
      this.remove();
      this.unbind();
      // remove this model binding
      if (this.model && this.model.unbind) this.model.unbind(null, null, this); 
      // remove model binding
      _(this._models).each(function(m) {
        m.unbind(null, null, self);
      });
      this._models = [];
      View.viewCount--;
      delete View.views[this.cid];
      return this;
    }
function() {
      var self = this;
      this.trigger('clean');
      this.clearSubViews();
      // remove from parent
      if(this._parent) {
        this._parent.removeView(this);
        this._parent = null;
      }
      this.remove();
      this.unbind();
      // remove this model binding
      if (this.model && this.model.unbind) this.model.unbind(null, null, this); 
      // remove model binding
      _(this._models).each(function(m) {
        m.unbind(null, null, self);
      });
      this._models = [];
      View.viewCount--;
      delete View.views[this.cid];
      return this;
    }
function ( ) { var self = this ; this . trigger ( 'clean' ) ; this . clearSubViews ( ) ; // remove from parent if ( this . _parent ) { this . _parent . removeView ( this ) ; this . _parent = null ; } this . remove ( ) ; this . unbind ( ) ; // remove this model binding if ( this . model && this . model . unbind ) this . model . unbind ( null , null , this ) ; // remove model binding _ ( this . _models ) . each ( function ( m ) { m . unbind ( null , null , self ) ; } ) ; this . _models = [ ] ; View . viewCount -- ; delete View . views [ this . cid ] ; return this ; }
this methid clean removes the view
and clean and events associated. call it when
the view is not going to be used anymore
this methid clean removes the view and clean and events associated . call it when the view is not going to be used anymore