move that where it belongs
Conflicts: builds/4chan-X.user.js builds/crx/script.js
This commit is contained in:
parent
0d34429ee0
commit
9c11798308
@ -6354,7 +6354,11 @@
|
||||
QR.cleanNotifications();
|
||||
for (_i = 0, _len = files.length; _i < _len; _i++) {
|
||||
file = files[_i];
|
||||
QR.checkDimensions(file, isSingle, max);
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
QR.handleFile(file, isSingle, max);
|
||||
} else {
|
||||
QR.checkDimensions(file, isSingle, max);
|
||||
}
|
||||
}
|
||||
if (!isSingle) {
|
||||
return $.addClass(QR.nodes.el, 'dump');
|
||||
@ -6362,9 +6366,6 @@
|
||||
},
|
||||
checkDimensions: function(file, isSingle, max) {
|
||||
var img;
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
return QR.handleFile(file, isSingle, max);
|
||||
}
|
||||
img = new Image();
|
||||
img.onload = (function(_this) {
|
||||
return function() {
|
||||
|
||||
@ -6410,7 +6410,11 @@
|
||||
QR.cleanNotifications();
|
||||
for (_i = 0, _len = files.length; _i < _len; _i++) {
|
||||
file = files[_i];
|
||||
QR.checkDimensions(file, isSingle, max);
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
QR.handleFile(file, isSingle, max);
|
||||
} else {
|
||||
QR.checkDimensions(file, isSingle, max);
|
||||
}
|
||||
}
|
||||
if (!isSingle) {
|
||||
return $.addClass(QR.nodes.el, 'dump');
|
||||
@ -6418,9 +6422,6 @@
|
||||
},
|
||||
checkDimensions: function(file, isSingle, max) {
|
||||
var img;
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
return QR.handleFile(file, isSingle, max);
|
||||
}
|
||||
img = new Image();
|
||||
img.onload = (function(_this) {
|
||||
return function() {
|
||||
|
||||
@ -368,11 +368,13 @@ QR =
|
||||
isSingle = files.length is 1
|
||||
QR.cleanNotifications()
|
||||
for file in files
|
||||
QR.checkDimensions file, isSingle, max
|
||||
if file.type is 'application/x-shockwave-flash'
|
||||
QR.handleFile(file, isSingle, max)
|
||||
else
|
||||
QR.checkDimensions file, isSingle, max
|
||||
$.addClass QR.nodes.el, 'dump' unless isSingle
|
||||
|
||||
checkDimensions: (file, isSingle, max) ->
|
||||
return QR.handleFile(file, isSingle, max) if file.type is 'application/x-shockwave-flash'
|
||||
img = new Image()
|
||||
img.onload = =>
|
||||
{height, width} = img
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user