roojs-debug.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:43:59 +0000 (17:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:43:59 +0000 (17:43 +0800)
roojs-debug.js

index b2080c1..60b4ad8 100644 (file)
@@ -35945,7 +35945,7 @@ side          Add an error icon to the right of the field with a popup on hover
      */
     setRawValue : function(v){
         var r =  this.el.dom.value = (v === null || v === undefined ? '' : v);
-        this.shadowNameEl ? (this.shadowNameEl.value = this.el.dom.value) : false;
+        this.shadowNameEl ? (this.shadowNameEl.value =   (v === this.emptyText) ? '' : this.el.dom.value) : false;
         
     },
 
@@ -35957,7 +35957,7 @@ side          Add an error icon to the right of the field with a popup on hover
         this.value = v;
         if(this.rendered){
             this.el.dom.value = (v === null || v === undefined ? '' : v);
-            this.shadowNameEl ? (this.shadowNameEl.value = this.el.dom.value) : false;
+            this.shadowNameEl ? (this.shadowNameEl.value = (v === this.emptyText) ? '' : this.el.dom.value) : false;
             this.validate();
         }
     },