context: 	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);		}	},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Manager.js/clean/www/resources/dojo-ajax/src/undo/Manager.js