There was an error while loading. Please reload this page.
1 parent 4c09514 commit 2fd623dCopy full SHA for 2fd623d
1 file changed
src/basic/Size.js
@@ -145,6 +145,13 @@ var Size = this.Size = Base.extend(/** @lends Size# */{
145
return this;
146
},
147
148
+ /**
149
+ * Returns a copy of the size.
150
+ */
151
+ clone: function() {
152
+ return Size.create(this.width, this.height);
153
+ },
154
+
155
/**
156
* Returns the addition of the supplied value to the width and height of the
157
* size as a new size. The object itself is not modified!
0 commit comments