mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
Fix minor issues found by JSHint.
This commit is contained in:
parent
a83b97a4e4
commit
e3700484ea
5 changed files with 10 additions and 12 deletions
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
var fabric = fabric || { version: "0.9.21" };
|
||||
|
||||
if (typeof exports != 'undefined') {
|
||||
if (typeof exports !== 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
}
|
||||
|
||||
if (typeof document != 'undefined' && typeof window != 'undefined') {
|
||||
if (typeof document !== 'undefined' && typeof window !== 'undefined') {
|
||||
fabric.document = document;
|
||||
fabric.window = window;
|
||||
}
|
||||
|
|
|
|||
5
dist/all.js
vendored
5
dist/all.js
vendored
|
|
@ -13296,7 +13296,7 @@ fabric.Image.filters.Convolute = fabric.util.createClass({
|
|||
return {
|
||||
type: this.type,
|
||||
matrix: this.matrix
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -13335,8 +13335,7 @@ fabric.Image.filters.Pixelate = fabric.util.createClass({
|
|||
data = imageData.data,
|
||||
iLen = imageData.width,
|
||||
jLen = imageData.height,
|
||||
index, average, i, j,
|
||||
offsetBlocksize = this.blocksize - 1, r, g, b, a;
|
||||
index, i, j, r, g, b, a;
|
||||
|
||||
for (i = 0; i < iLen; i += this.blocksize) {
|
||||
for (j = 0; j < jLen; j += this.blocksize) {
|
||||
|
|
|
|||
8
dist/all.min.js
vendored
8
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -599,7 +599,7 @@ fabric.Image.filters.Convolute = fabric.util.createClass({
|
|||
return {
|
||||
type: this.type,
|
||||
matrix: this.matrix
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -638,8 +638,7 @@ fabric.Image.filters.Pixelate = fabric.util.createClass({
|
|||
data = imageData.data,
|
||||
iLen = imageData.width,
|
||||
jLen = imageData.height,
|
||||
index, average, i, j,
|
||||
offsetBlocksize = this.blocksize - 1, r, g, b, a;
|
||||
index, i, j, r, g, b, a;
|
||||
|
||||
for (i = 0; i < iLen; i += this.blocksize) {
|
||||
for (j = 0; j < jLen; j += this.blocksize) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue