Unnecessary.
This commit is contained in:
parent
1d13bffa7c
commit
741081fc27
@ -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) {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user