jQuery: The Write Less, Do More JavaScript Library

Changeset 5524

Show
Ignore:
Timestamp:
05/08/08 21:49:43 (3 days ago)
Author:
joern.zaefferer
Message:

ui.slider: code formatting

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.slider.js

    r5513 r5524  
    249249            if (this.firstValue != this.value()) 
    250250                this.propagate('change', e); 
    251             this.focus(this.currentHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events 
     251            // This is a especially ugly fix for strange blur events happening on mousemove events 
     252            this.focus(this.currentHandle, true); 
    252253            return false; 
    253254        }, 
    254255         
    255256        oneStep: function(axis) { 
    256             if(!axis) axis = this.options.axis == "vertical" ? 2 : 1; 
    257             return this.options.stepping[axis == 1 ? "x" : "y"] ? this.options.stepping[axis == 1 ? "x" : "y"] : (this.options.realMax[axis == 1 ? "x" : "y"] / this.actualSize[axis == 1 ? "width" : "height"]) * 5; 
     257            if (!axis) 
     258                axis = this.options.axis == "vertical" ? 2 : 1; 
     259            return this.options.stepping[axis == 1 ? "x" : "y"] 
     260                ? this.options.stepping[axis == 1 ? "x" : "y"] 
     261                : (this.options.realMax[axis == 1 ? "x" : "y"] / this.actualSize[axis == 1 ? "width" : "height"]) * 5; 
    258262        }, 
    259263