Skip to content

Commit

Permalink
Fixes #13634. Change javascript assignments of InlineEditBox:editing …
Browse files Browse the repository at this point in the history
…to use _set to enable watch functionality.
  • Loading branch information
Douglas Hays committed Aug 9, 2011
1 parent 07d89ca commit e1a2c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions InlineEditBox.js
Expand Up @@ -433,7 +433,7 @@ var InlineEditBox = declare("dijit.InlineEditBox", _Widget, {
// private

if(this.disabled || this.editing){ return; }
this.editing = true;
this._set('editing', true);

// save some display node values that can be restored later
this._savedPosition = domStyle.get(this.displayNode, "position") || "static";
Expand Down Expand Up @@ -540,7 +540,7 @@ var InlineEditBox = declare("dijit.InlineEditBox", _Widget, {
// private

if(this.disabled || !this.editing){ return; }
this.editing = false;
this._set('editing', false);

var ww = this.wrapperWidget;
var value = ww.getValue();
Expand Down Expand Up @@ -590,7 +590,7 @@ var InlineEditBox = declare("dijit.InlineEditBox", _Widget, {
// private

if(this.disabled || !this.editing){ return; }
this.editing = false;
this._set('editing', false);

// tell the world that we have no changes
setTimeout(lang.hitch(this, "onCancel"), 0); // setTimeout prevents browser freeze for long-running event handlers
Expand Down

0 comments on commit e1a2c3f

Please sign in to comment.