merges the contents of several objects together into the first object
target | object | the object to extend. It receives the new properties |
mixin1 | object | an object that contains properties to merge in |
mixinN | object | another objects that contains properties to merge in |
object | the target object with the new properties |
var code = webix.proto(myobject, webix.MouseEvents);
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.