Minor clean up.

This commit is contained in:
Jürg Lehni 2013-11-14 14:42:28 +01:00
parent 1f98d72c5b
commit 8f4b70a7d3

View file

@ -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;
},