Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: size object

Parameters: aSize (size)

Creates a copy of the aSize parameter and returns it.

Note: You must always copy sizes before modifying them; else you risk modifying the original size.

Usage

var aSize = UI.makeSize ( 100, 150 );
var bSize = UI.copySize ( aSize );
bSize.w = 125;
// aSize is now { w: 100, h: 150 }
// bSize is now { w: 125, h: 150 }

Version

0.3 Introduced; Docs Valid

Clone this wiki locally