Skip to content

Commit

Permalink
Use tools.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdustan committed Oct 18, 2012
1 parent 5ebc459 commit adcfab1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/runner/matrix.js
@@ -1,6 +1,7 @@
define([
'../point'
], function(Point) {
'../point',
'../tools'
], function(Point, tools) {
'use strict';

var cos = Math.cos, sin = Math.sin;
Expand All @@ -19,7 +20,7 @@ define([
* @param {number} ty Vertical/y translation
*/
function Matrix(a, b, c, d, tx, ty) {
if (a instanceof Array) {
if (tools.isArray(a)) {
return Matrix.apply(this, a);
}

Expand Down

0 comments on commit adcfab1

Please sign in to comment.