endTransaction: function(flatten /* optional */) { if(this._currentManager == this) { if(this._parent) { this._parent._currentManager = this._parent;  if(this._undoStack.length == 0 || flatten) { var idx = dojo.lang.find(this._parent._undoStack, this); if (idx >= 0) { this._parent._undoStack.splice(idx, 1);  if (flatten) { for(var x=0; x < this._undoStack.length; x++){ this._parent._undoStack.splice(idx++, 0, this._undoStack[x]); } this._updateStatus(); } } } return this._parent; } } else {  this._currentManager = this._currentManager.endTransaction.apply(this._currentManager, arguments); } }, 
},endTransaction:function(_720){ if(this._currentManager==this){ if(this._parent){ this._parent._currentManager=this._parent; if(this._undoStack.length==0||_720){ var idx=dojo.lang.find(this._parent._undoStack,this); if(idx>=0){ this._parent._undoStack.splice(idx,1); if(_720){ for(var x=0;x<this._undoStack.length;x++){ this._parent._undoStack.splice(idx++,0,this._undoStack[x]); } this._updateStatus(); } } } return this._parent; } }else{ this._currentManager=this._currentManager.endTransaction.apply(this._currentManager,arguments); } },endAllTransactions:function(){ 
  endTransaction: function(flatten /* optional */) {    if(this._currentManager == this) {      if(this._parent) {        this._parent._currentManager = this._parent;        // don't leave empty transactions hangin' around        if(this._undoStack.length == 0 || flatten) {          var idx = dojo.lang.find(this._parent._undoStack, this);          if (idx >= 0) {            this._parent._undoStack.splice(idx, 1);            //add the current transaction to parents undo stack            if (flatten) {              for(var x=0; x < this._undoStack.length; x++){                this._parent._undoStack.splice(idx++, 0, this._undoStack[x]);              }              this._updateStatus();            }          }        }        return this._parent;      }    } else {      //for nested transactions need to make sure the top level _currentManager is set      this._currentManager = this._currentManager.endTransaction.apply(this._currentManager, arguments);    }  },
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js