Changeset 1029

Show
Ignore:
Timestamp:
08/02/08 16:23:09 (1 month ago)
Author:
MaierMan
Message:

#831: rebuildDestination needs improvement
some less calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r1028 r1029  
    935935        }, 
    936936        set description(nv) { 
     937                if (nv = this._description) { 
     938                        return nv; 
     939                } 
    937940                this._description = nv; 
    938941                this.rebuildDestination(); 
     
    946949        }, 
    947950        set pathName(nv) { 
    948                 this._pathName = nv.toString(); 
     951                nv = nv.toString(); 
     952                if (this._pathName == nv) { 
     953                        return nv; 
     954                } 
     955                this._pathName = nv; 
    949956                this.rebuildDestination(); 
    950957                this.invalidate(); 
     
    957964        }, 
    958965        set mask(nv) { 
     966                if (this._mask == nv) { 
     967                        return nv; 
     968                } 
    959969                this._mask = nv; 
    960970                this.rebuildDestination(); 
     
    970980        }, 
    971981        set destinationName(nv) { 
     982                if (this.destinationNameOverride == nv) { 
     983                        return this._destinationNameFull; 
     984                } 
    972985                this.destinationNameOverride = nv; 
    973986                this.rebuildDestination();