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();
};
_Class.prototype.setThumbnail = function(el) {
var fileURL, isVideo;
_Class.prototype.setThumbnail = function() {
var el, fileURL, isVideo;
isVideo = /^video\//.test(this.file.type);
el = $.el((isVideo ? 'video' : 'img'));
$.on(el, (isVideo ? 'loadeddata' : 'load'), (function(_this) {

View File

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

View File

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