Skip to content

Commit 810870a

Browse files
committed
Merge pull request processing-js#56 from Pomax/master
linting hotfix
2 parents c60d2c7 + 906c886 commit 810870a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

processing.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
// document.head polyfill for the benefit of Firefox 3.6
3131
if (!document.head) {
32-
document.getElementsByTagName('head')[0];
32+
document.head = document.getElementsByTagName('head')[0];
3333
}
3434

3535
// Typed Arrays: fallback to WebGL arrays or Native JS arrays if unavailable
@@ -1143,11 +1143,11 @@
11431143
v.x = Math.cos(angle);
11441144
v.y = Math.sin(angle);
11451145
return v;
1146-
}
1146+
};
11471147

11481148
PVector.random2D = function(v) {
11491149
return PVector.fromAngle(Math.random() * PConstants.TWO_PI, v);
1150-
}
1150+
};
11511151

11521152
PVector.random3D = function(v) {
11531153
var angle = Math.random() * PConstants.TWO_PI;
@@ -1161,7 +1161,7 @@
11611161
v.set(vx, vy, vz);
11621162
}
11631163
return v;
1164-
}
1164+
};
11651165

11661166
PVector.dist = function(v1, v2) {
11671167
return v1.dist(v2);
@@ -1188,7 +1188,7 @@
11881188
var retval = new PVector(v1.x, v1.y, v1.z);
11891189
retval.lerp(v2, amt);
11901190
return retval;
1191-
}
1191+
};
11921192

11931193
// Common vector operations for PVector
11941194
PVector.prototype = {
@@ -1302,7 +1302,7 @@
13021302
x * v.y - v.x * y);
13031303
},
13041304
lerp: function(v_or_x, amt_or_y, z, amt) {
1305-
function lerp_val(start, stop, amt) {
1305+
var lerp_val = function(start, stop, amt) {
13061306
return start + (stop - start) * amt;
13071307
};
13081308
var x, y;

0 commit comments

Comments
 (0)