mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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
|
||||
};
|
||||
|
||||
// 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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue