Documentation

proto

merges the contents of several objects together into the first object

object proto(object target, [object mixin1,object mixinN] );

Parameters

targetobjectthe object to extend. It receives the new properties
mixin1objectan object that contains properties to merge in
mixinNobjectanother objects that contains properties to merge in

Returns

objectthe target object with the new properties

See also

Example

var code = webix.proto(myobject, webix.MouseEvents);

Details

The method is similar to extend.
The only difference between methods lies in the number of objects to merge: in case of the extend method you deal with one source object, in case of the proto method you have the unlimited number of the source objects.

Back to top