jQuery: The Write Less, Do More JavaScript Library

Changeset 5580

Show
Ignore:
Timestamp:
05/13/08 16:43:36 (3 months ago)
Author:
scott.gonzalez
Message:

UI Mouse: Changed clearInterval calls to clearTimeout.

Files:
1 modified

Legend:

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

    r5496 r5580  
    163163            this.element 
    164164                .bind('mousedown.mouse', function() { return self.click.apply(self, arguments); }) 
    165                 .bind('mouseup.mouse', function() { (self.timer && clearInterval(self.timer)); }) 
     165                .bind('mouseup.mouse', function() { (self.timer && clearTimeout(self.timer)); }) 
    166166                .bind('click.mouse', function() { if(self.initialized) { self.initialized = false; return false; } }); 
    167167            //Prevent text selection in IE 
     
    198198 
    199199            if(this.options.delay) { 
    200                 if(this.timer) { clearInterval(this.timer); } 
     200                if(this.timer) { clearTimeout(this.timer); } 
    201201                this.timer = setTimeout(initialize, this.options.delay); 
    202202            } else {