Author: konstantin.mishin
Date: 2010-12-17 15:54:32 -0500 (Fri, 17 Dec 2010)
New Revision: 20672
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSlider.js
Log:
fix NPE bug
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSlider.js
===================================================================
---
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSlider.js 2010-12-17
19:59:51 UTC (rev 20671)
+++
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inputNumberSlider.js 2010-12-17
20:54:32 UTC (rev 20672)
@@ -37,7 +37,8 @@
increaseSelectedClass: "rf-insl-inc-sel",
init: function (id, options, selectedClasses) {
- jQuery.extend(this, options);
+ $superInputNumberSlider.constructor.call(this, id);
+ jQuery.extend(this, options);
this.range = this.maxValue - this.minValue;
this.id = id;
this.element = jQuery(this.attachToDom());
@@ -182,7 +183,8 @@
destroy: function (event) {
jQuery(document).unbind("mousemove", this.__mousemoveHandler);
- $super.destroy.call(this);
+ $superInputNumberSlider.destroy.call(this);
}
});
+ $superInputNumberSlider = richfaces.ui.InputNumberSlider.$super;
}(window.RichFaces, jQuery));
\ No newline at end of file
Show replies by date