Skip to content

Commit

Permalink
renamed FileDropZone into UploadDropZone for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Valums committed Sep 2, 2010
1 parent c3fdfc3 commit ddb814f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/fileuploader.js
Expand Up @@ -175,7 +175,7 @@ qq.FileUploader.prototype = {
var self = this,
dropArea = this._getElement('drop');

var dz = new qq.FileDropZone({
var dz = new qq.UploadDropZone({
element: dropArea,
onEnter: function(e){
qq.addClass(dropArea, self._classes.dropActive);
Expand Down Expand Up @@ -391,7 +391,7 @@ qq.FileUploader.prototype = {
}
};

qq.FileDropZone = function(o){
qq.UploadDropZone = function(o){
this._options = {
element: null,
onEnter: function(e){},
Expand All @@ -408,17 +408,17 @@ qq.FileDropZone = function(o){
this._attachEvents();
};

qq.FileDropZone.prototype = {
qq.UploadDropZone.prototype = {
_disableDropOutside: function(e){
// run only once for all instances
if (!qq.FileDropZone.dropOutsideDisabled ){
if (!qq.UploadDropZone.dropOutsideDisabled ){

qq.attach(document, 'dragover', function(e){
e.dataTransfer.dropEffect = 'none';
e.preventDefault();
});

qq.FileDropZone.dropOutsideDisabled = true;
qq.UploadDropZone.dropOutsideDisabled = true;
}
},
_attachEvents: function(){
Expand Down

0 comments on commit ddb814f

Please sign in to comment.