mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Minor clean up.
This commit is contained in:
parent
1f98d72c5b
commit
8f4b70a7d3
1 changed files with 2 additions and 2 deletions
|
@ -56,9 +56,9 @@ paper.PaperScope.prototype.PaperScript = (function(root) {
|
||||||
'+': null
|
'+': 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(
|
var fields = Base.each(
|
||||||
'add,subtract,multiply,divide,modulo,negate'.split(','),
|
['add', 'subtract', 'multiply', 'divide', 'modulo', 'negate'],
|
||||||
function(name) {
|
function(name) {
|
||||||
this['_' + name] = '#' + name;
|
this['_' + name] = '#' + name;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue