if(!this._dicts.length){ throw new Error("pop() called on empty Context"); } var dict = this._dicts.shift(); dojo.mixin(this, dict);