Fixing broken static function in Home.js, SVG2Canvas.js

This commit is contained in:
Tim Mickel 2016-01-13 18:55:03 -05:00
parent 45b5b5c343
commit 0650f47071
2 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ export default class Home {
timeoutEvent = undefined;
}
static getMouseTarget = function (e) {
static getMouseTarget (e) {
var t = e.target;
if (t == frame) {
return null;
@ -98,7 +98,7 @@ export default class Home {
return (!t.parentNode || (t.parentNode == frame)) ? null : t;
}
static handleTouchEnd = function (e) {
static handleTouchEnd (e) {
e.preventDefault();
e.stopPropagation();
if (e.touches && (e.touches.length > 1)) {
@ -307,7 +307,7 @@ export default class Home {
}
class Events {
static getTargetPoint = function (e) {
static getTargetPoint (e) {
if (isTablet) {
if (e.touches && (e.touches.length > 0)) {
return {

View file

@ -394,7 +394,7 @@ export default class SVG2Canvas {
ctx.fillText(kid.textContent, 0, 0);
}
static renderPath = function (spr, ctx) {
static renderPath (spr, ctx) {
var d = spr.getAttribute('d');
var commands = SVG2Canvas.getCommandList(d);
if (!commands) {
@ -856,7 +856,7 @@ export default class SVG2Canvas {
return cmd;
}
static setRelativeLine = function (cmd) {
static setRelativeLine (cmd) {
endp = Vector.sum(endp, {
x: cmd[1],
y: cmd[2]