mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix Size#dot.
This commit is contained in:
parent
6b5ce7c18c
commit
781fd4adda
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@ var Size = this.Size = Base.extend({
|
|||
return Size.create(Math.abs(this.width), Math.abs(this.height));
|
||||
},
|
||||
|
||||
dot: function(Size) {
|
||||
dot: function() {
|
||||
var size = Size.read(arguments);
|
||||
return this.width * size.width + this.height * size.height;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue