* 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)
| 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 |
no test coverage detected