Unnecessary.

This commit is contained in:
Zixaphir 2014-05-11 17:54:49 -07:00
parent 1d13bffa7c
commit 741081fc27
3 changed files with 5 additions and 5 deletions

View File

@ -7495,8 +7495,8 @@
return this.setThumbnail(); return this.setThumbnail();
}; };
_Class.prototype.setThumbnail = function(el) { _Class.prototype.setThumbnail = function() {
var fileURL, isVideo; var el, fileURL, isVideo;
isVideo = /^video\//.test(this.file.type); isVideo = /^video\//.test(this.file.type);
el = $.el((isVideo ? 'video' : 'img')); el = $.el((isVideo ? 'video' : 'img'));
$.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) { $.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) {

View File

@ -7536,8 +7536,8 @@
return this.setThumbnail(); return this.setThumbnail();
}; };
_Class.prototype.setThumbnail = function(el) { _Class.prototype.setThumbnail = function() {
var fileURL, isVideo; var el, fileURL, isVideo;
isVideo = /^video\//.test(this.file.type); isVideo = /^video\//.test(this.file.type);
el = $.el((isVideo ? 'video' : 'img')); el = $.el((isVideo ? 'video' : 'img'));
$.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) { $.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) {

View File

@ -171,7 +171,7 @@ QR.post = class
return return
@setThumbnail() @setThumbnail()
setThumbnail: (el) -> setThumbnail: ->
# Create a redimensioned thumbnail. # Create a redimensioned thumbnail.
isVideo = /^video\//.test @file.type isVideo = /^video\//.test @file.type
el = $.el (if isVideo then 'video' else 'img') el = $.el (if isVideo then 'video' else 'img')