Changeset 1434
- Timestamp:
- 2010-02-09 16:08:49 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/field.js
r1297 r1434 165 165 Options.prototype.$ = undefined; 166 166 167 /** 168 * Lazy creation of the events handling element 169 * @return An html element (jQuery) 170 * @type jQuery 171 */ 172 Options.prototype.enableEvents = function() { 173 174 if (!this.$) { 175 this.$ = $("<div></div>").hide(); 176 } 177 return this.$; 178 } 167 179 168 /** 180 169 * Implemented "update" event … … 186 175 if (!this.updateable()) return; 187 176 188 var $ee = this.enableEvents(); 189 return (fn) ? $ee.bind("update", {options :this.values}, fn) : $ee.trigger("update"); 177 return (fn) ? $(this).bind("update", {options :this.values}, fn) : $(this).trigger("update"); 190 178 } 191 179
Note: See TracChangeset
for help on using the changeset viewer.