Browse files

Update src/javascript/plupload.flash.js

getFile to getMyFile
  • Loading branch information...
1 parent 9891834 commit 1fcdea315c21591ef039f684c6b11f708727df50 @vingrad committed Aug 6, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/javascript/plupload.flash.js
View
16 src/javascript/plupload.flash.js
@@ -232,7 +232,7 @@
uploader.bind("Flash:UploadProcess", function(up, flash_file) {
- var file = up.getFile(lookup[flash_file.id]);
+ var file = up.getMyFile(lookup[flash_file.id]);
if (file.status != plupload.FAILED) {
file.loaded = flash_file.loaded;
@@ -243,7 +243,7 @@
});
uploader.bind("Flash:UploadChunkComplete", function(up, info) {
- var chunkArgs, file = up.getFile(lookup[info.id]);
+ var chunkArgs, file = up.getMyFile(lookup[info.id]);
chunkArgs = {
chunk : info.chunk,
@@ -294,7 +294,7 @@
code : plupload.SECURITY_ERROR,
message : plupload.translate('Security error.'),
details : err.message,
- file : uploader.getFile(lookup[err.id])
+ file : uploader.getMyFile(lookup[err.id])
});
});
@@ -303,7 +303,7 @@
code : plupload.GENERIC_ERROR,
message : plupload.translate('Generic error.'),
details : err.message,
- file : uploader.getFile(lookup[err.id])
+ file : uploader.getMyFile(lookup[err.id])
});
});
@@ -312,15 +312,15 @@
code : plupload.IO_ERROR,
message : plupload.translate('IO error.'),
details : err.message,
- file : uploader.getFile(lookup[err.id])
+ file : uploader.getMyFile(lookup[err.id])
});
});
uploader.bind("Flash:ImageError", function(up, err) {
uploader.trigger('Error', {
code : parseInt(err.code, 10),
message : plupload.translate('Image error.'),
- file : uploader.getFile(lookup[err.id])
+ file : uploader.getMyFile(lookup[err.id])
});
});
@@ -375,12 +375,12 @@
uploader.bind('Flash:ExifData', function(up, obj) {
- uploader.trigger('ExifData', uploader.getFile(lookup[obj.id]), obj.data);
+ uploader.trigger('ExifData', uploader.getMyFile(lookup[obj.id]), obj.data);
});
uploader.bind('Flash:GpsData', function(up, obj) {
- uploader.trigger('GpsData', uploader.getFile(lookup[obj.id]), obj.data);
+ uploader.trigger('GpsData', uploader.getMyFile(lookup[obj.id]), obj.data);
});

0 comments on commit 1fcdea3

Please sign in to comment.