From 8f4b70a7d3746ff83e0ca81063efdd62d3edb460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 14 Nov 2013 14:42:28 +0100 Subject: [PATCH] Minor clean up. --- src/core/PaperScript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 178397dc..37757b01 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -56,9 +56,9 @@ paper.PaperScope.prototype.PaperScript = (function(root) { '+': null }; - // Add hidden math functions to Point, Size and Color. + // Inject underscored math functions as aliases to Point, Size and Color. var fields = Base.each( - 'add,subtract,multiply,divide,modulo,negate'.split(','), + ['add', 'subtract', 'multiply', 'divide', 'modulo', 'negate'], function(name) { this['_' + name] = '#' + name; },