Skip to content

Commit 2fd623d

Browse files
committed
Define Size#clone(), fixing a failing test.
1 parent 4c09514 commit 2fd623d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/basic/Size.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ var Size = this.Size = Base.extend(/** @lends Size# */{
145145
return this;
146146
},
147147

148+
/**
149+
* Returns a copy of the size.
150+
*/
151+
clone: function() {
152+
return Size.create(this.width, this.height);
153+
},
154+
148155
/**
149156
* Returns the addition of the supplied value to the width and height of the
150157
* size as a new size. The object itself is not modified!

0 commit comments

Comments
 (0)