Changeset 1551


Ignore:
Timestamp:
2010-06-10 08:52:02 (3 years ago)
Author:
freya
Message:

no need for setting wire value if it has not changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/control.js

    r1550 r1551  
    13711371     */ 
    13721372    Control.prototype.reset = function() { 
    1373         if(this.initial.value != undefined) 
     1373        // no need for setting wire value if it has not changed 
     1374        if( ! (this.value === this.initial.value && this.valueState == Control.STATE_INIT)) 
    13741375            this.setWireValue(this.initial.value, true); 
    13751376        this.valueState = Control.STATE_INIT; 
     
    14461447            this.originalValueSuppressedByNormalization = false; 
    14471448            value = this.normaliseValue(value); 
     1449 
    14481450            if (this.valueState == Control.STATE_INIT || !this.valueEquals(value) || ( this.valueState == Control.STATE_INVALID && this.value == undefined && value == undefined)) { // in case of change 
    14491451                this.value = value; 
Note: See TracChangeset for help on using the changeset viewer.