Skip to content

Commit

Permalink
- small fixing and tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Kirschner committed May 4, 2009
1 parent 623f0d6 commit 9c9446c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/FancyUpload2.js
Expand Up @@ -145,8 +145,6 @@ FancyUpload2.File = new Class({
'remove': this.onRemove
});

var self = this;

this.info = new Element('span', {'class': 'file-info'});
this.element = new Element('li', {'class': 'file'}).adopt(
new Element('span', {'class': 'file-size', 'html': Swiff.Uploader.formatUnit(this.size, 'b')}),
Expand Down Expand Up @@ -195,7 +193,10 @@ FancyUpload2.File = new Class({

if (this.response.error) {
var msg = MooTools.lang.get('FancyUpload', 'errors')[this.response.error] || '{error} #{code}';
this.errorMessage = msg.substitute($extend({name: this.name}, this.response));
this.errorMessage = msg.substitute($extend({
name: this.name
size: Swiff.Uploader.formatUnit(this.size, 'b')
}, this.response));
var args = [this, this.errorMessage, this.response];

this.fireEvent('error', args).base.fireEvent('fileError', args);
Expand Down

0 comments on commit 9c9446c

Please sign in to comment.