aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
authorEric Guzman2012-04-11 16:45:23 -0700
committerEric Guzman2012-04-11 16:45:23 -0700
commit7246efab402664c75bd0de226c0b9a91b384839b (patch)
tree0e800cb2f65ece1c3526c114e561584dfcb1f127 /js/components
parentd203070579c8106b846657592a794ca8b4b1a9b6 (diff)
downloadninja-7246efab402664c75bd0de226c0b9a91b384839b.tar.gz
CSS Style - Add disabled UI state. Added Hintable and editable UI state.
Diffstat (limited to 'js/components')
-rw-r--r--js/components/editable.reel/editable.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/components/editable.reel/editable.js b/js/components/editable.reel/editable.js
index 9c8946c4..ef4096fd 100644
--- a/js/components/editable.reel/editable.js
+++ b/js/components/editable.reel/editable.js
@@ -122,7 +122,7 @@ exports.Editable = Montage.create(Component, {
122 if(this.stopOnBlur) { 122 if(this.stopOnBlur) {
123 console.log('adding mousedown event listener'); 123 console.log('adding mousedown event listener');
124 ///// Simulate blur on editable node by listening to the doc 124 ///// Simulate blur on editable node by listening to the doc
125 document.addEventListener('mouseup', this, false); 125 document.addEventListener('mousedown', this, false);
126 } 126 }
127 127
128 this._sendEvent('start'); 128 this._sendEvent('start');
@@ -179,7 +179,7 @@ exports.Editable = Montage.create(Component, {
179 this.accept(); 179 this.accept();
180 } 180 }
181 this.stop(); 181 this.stop();
182 document.removeEventListener('mouseup', this, false); 182 document.removeEventListener('mousedown', this, false);
183 this._sendEvent('blur'); 183 this._sendEvent('blur');
184 } 184 }
185 }, 185 },
@@ -202,7 +202,7 @@ exports.Editable = Montage.create(Component, {
202 this._sendEvent('input'); 202 this._sendEvent('input');
203 } 203 }
204 }, 204 },
205 handleMouseup : { 205 handleMousedown : {
206 value : function(e) { 206 value : function(e) {
207 console.log('handle mouse down'); 207 console.log('handle mouse down');
208 ///// Listen for simulated blur event 208 ///// Listen for simulated blur event