-
Notifications
You must be signed in to change notification settings - Fork 29
UI.copyBorder
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.
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.
0.3 Introduced; Docs Valid