Skip to content

Commit

Permalink
Don't store value of checkbox initially if it's not checked
Browse files Browse the repository at this point in the history
  • Loading branch information
Inviz committed Feb 6, 2012
1 parent 26e621a commit f8523c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Mixin/Value.js
Expand Up @@ -43,7 +43,8 @@ LSD.Mixin.Value = new Class({
if (this.isValueDifferent(value) ^ unset) {
result = this.writeValue(value, unset);
var previous = this.getPreviousValue();
this.fireEvent('change', [result, previous]);
if (LSD.Mixin.Command.getCommandType.call(this) == 'command')
this.fireEvent('change', [result, previous]);
this.fireEvent(unset ? 'unsetValue' : 'setValue', value);
if (!this.pseudos.clickable && previous != null) this.callChain(value, previous);
}
Expand Down

0 comments on commit f8523c9

Please sign in to comment.