proto

merges the contents of several objects together into the first object

object proto(object target,mixins ...mixins);
targetobjectthe object to extend. It receives the new properties
...mixinsmixinsone or many mixin objects
objectthe target object with the new properties

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.

See also
Back to top