Mercurial > pub > ImplabJs
view src/implab/components/ConsoleLogChannel.js @ 6:9663631cbdb9
fix implab/declare/override
author | cin |
---|---|
date | Tue, 20 Jun 2017 00:33:15 +0300 |
parents | 00779cb63b12 |
children |
line wrap: on
line source
define(["dojo/_base/declare", "../text/format"], function (declare, format) { return declare(null, { name: null, constructor: function (name) { this.name = name; }, log: function () { console.log(this._makeMsg(arguments)); }, warn: function () { console.warn(this._makeMsg(arguments)); }, error: function () { console.error(this._makeMsg(arguments)); }, _makeMsg: function (args) { return this.name ? this.name + " " + format.apply(null, args) : format.apply(null, args); } }); });