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

(part of UI)

Returns: border

Parameters: aBorder

Returns a copy of aBorder, ready for further manipulation.

Note: Always copy a border before modifying its values, otherwise you risk modifying the original.

Usage

var aSimpleBorder = UI.makeBorder ( { color: UI.COLOR.redColor(), style: "solid", width: 5 } );
var bSimpleBorder = UI.copyBorder ( aSimpleBorder );
bSimpleBorder.color = UI.COLOR.blueColor();
// aSimpleBorder will be a red, 5px wide, solid border, with 0 border radius.
// bSimpleBorder will be a blue, 5px wide, solid border, with 0 border radius.

Version

0.3 Introduced; Docs Valid

Clone this wiki locally