:: Home >>

clone

Creates an object clone.

Clone is a fast copy of the original object. It is created by making an empty Object and setting its prototype to the original object.

Syntax

var newObj = obj.clone();

Returns

new object

Example

var obj = new AW.HTML.DIV;
obj.setStyle("border", "1px solid red");

var obj1 = obj.clone();
var obj2 = obj.clone();

Comments

17 Feb 07
clone jhon (1)

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5