New to Kendo UI for jQueryStart a free 30-day trial

Clone

methods

Creates a new instance with the same width and height.

Returns:kendo.geometry.Size

A new Size instance with the same dimensions.

<script>
var geom = kendo.geometry;
var originalSize = new geom.Size(100, 50);
var clonedSize = originalSize.clone();

console.log(clonedSize.width); // logs 100
console.log(clonedSize.height); // logs 50
console.log(clonedSize === originalSize); // logs false (different instances)
console.log(clonedSize.equals(originalSize)); // logs true (same dimensions)
</script>
Not finding the help you need?
Contact Support