Changeset 5506
- Timestamp:
- 05/08/08 17:17:52 (3 days ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.slider.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.slider.js
r5484 r5506 331 331 } 332 332 333 if(x && x.constructor != Number) {333 if(x !== undefined && x.constructor != Number) { 334 334 var me = /^\-\=/.test(x), pe = /^\+\=/.test(x); 335 335 if (me) { … … 340 340 } 341 341 342 if(y && y.constructor != Number) {342 if(y !== undefined && y.constructor != Number) { 343 343 var me = /^\-\=/.test(y), pe = /^\+\=/.test(y); 344 344 if (me) { … … 349 349 } 350 350 351 if(o.axis != "vertical" && x ) {351 if(o.axis != "vertical" && x !== undefined) { 352 352 if(o.stepping.x) x = Math.round(x / o.stepping.x) * o.stepping.x; 353 353 x = this.translateValue(x, 1); … … 357 357 } 358 358 359 if(o.axis != "horizontal" && y ) {359 if(o.axis != "horizontal" && y !== undefined) { 360 360 if(o.stepping.y) y = Math.round(y / o.stepping.y) * o.stepping.y; 361 361 y = this.translateValue(y, 2);