UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.

47 lines (37 loc) 485 B
/** @class @export */ function MyClass() {} // our ctor approach for prototype using 'this' MyClass.Prototype = function() { /** FOO */ this.foo = function() {} /** BAR @type String */ this.bar = 'bar' } // classical prototype approach /** BLA */ MyClass.prototype.bla = function() {} /** BLUPP @type String */ MyClass.prototype.blupp = 'blupp' // static /** ZIP */ MyClass.zip = function() {} /** ZAP @type String */ MyClass.zap = 'zap'