Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cache isArray property lookup.

  • Loading branch information...
commit 93e99f3fb5e0fc0f914831ffc4c989c5fb70ce50 1 parent b8ab66d
@basecode basecode authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/runner/text.js
View
5 src/runner/text.js
@@ -10,7 +10,8 @@ define([
var accessor = tools.descriptorAccessor,
data = tools.descriptorData,
getter = tools.getter,
- parseColor = color.parse;
+ parseColor = color.parse,
+ isArray = tools.isArray;
// Getters and setters stolen from shape.js
@@ -174,7 +175,7 @@ define([
*/
proto.addChild = function(child, index) {
var isTextSpan =
- tools.isArray(child) ?
+ isArray(child) ?
child.every(function(child) {
return child instanceof TextSpan;
}) :
Please sign in to comment.
Something went wrong with that request. Please try again.