Fix minor issues found by JSHint.

This commit is contained in:
kangax 2012-11-13 18:06:53 +01:00
parent a83b97a4e4
commit e3700484ea
5 changed files with 10 additions and 12 deletions

View file

@ -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
View file

@ -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

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -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) {