MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / createClass

Function createClass

01.GettingStarted/js/vue.js:9976–9980  ·  view source on GitHub ↗

* A function that returns a sub-class constructor with the * given name. This gives us much nicer output when * logging instances in the console. * * @param {String} name * @return {Function}

(name)

Source from the content-addressed store, hash-verified

9974 */
9975
9976 function createClass(name) {
9977 /* eslint-disable no-new-func */
9978 return new Function('return function ' + classify(name) + ' (options) { this._init(options) }')();
9979 /* eslint-enable no-new-func */
9980 }
9981
9982 /**
9983 * Plugin system

Callers 1

installGlobalAPIFunction · 0.70

Calls 1

classifyFunction · 0.70

Tested by

no test coverage detected