uploadcare-widget-tab-effects
Version:
Effects Tab for Uploadcare Widget. Edit images in desktop and mobile browsers.
20 lines (15 loc) • 379 B
JavaScript
function customExtends(child, parent) {
for (const key in parent) {
if (Object.prototype.hasOwnProperty.call(parent, key)) {
child[key] = parent[key]
}
}
function Ctor() {
this.constructor = child
}
Ctor.prototype = parent.prototype
child.prototype = new Ctor()
child.__super__ = parent.prototype
return child
}
export default customExtends