proto

merges the contents of several objects together into the first object

object proto(object target,mixins ...mixins);
target
objectthe object to extend. It receives the new properties ...mixins
mixinsone 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
  • API
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.