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 system. It is developed to power our online editing platform [Substance](http://substance.io).

46 lines (37 loc) 489 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'