Fix Size#dot.

This commit is contained in:
Jonathan Puckey 2011-03-07 18:49:43 +01:00
parent 6b5ce7c18c
commit 781fd4adda

View file

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