Permalink
Browse files

Fixed small typo with justClicked var

  • Loading branch information...
1 parent 0041726 commit 5ab1e13588caa8bd8b680bff698237d4854b4033 Andrew Valums committed Nov 10, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 ajaxupload.js
View
@@ -349,10 +349,10 @@ AjaxUpload.prototype = {
// there is some time while you can leave the button.
// So we should not change display to none immediately
addEvent(input, 'click', function(){
- self.justClicked = true;
+ self._justClicked = true;
setTimeout(function(){
// we will wait 3 seconds for dialog to open
- self.justClicked = false;
+ self._justClicked = false;
}, 2500);
});
@@ -411,7 +411,7 @@ AjaxUpload.prototype = {
// if input was just clicked do not hide it
// to prevent safari bug
- if (self.justClicked){
+ if (self._justClicked){
return;
}

0 comments on commit 5ab1e13

Please sign in to comment.