Commit 57332a36 authored by Stepheno's avatar Stepheno

(fix) dataCetner 0 value

parent 0a4af8af
......@@ -35,7 +35,7 @@ export default class DataCenter extends EventEmitter{
* @param value
*/
public set(type: string, key: string, value?) {
if (!value) {
if (arguments.length <= 2) {
//if (this.store[type]) console.warn(`This operation will override all ${this.store[type]}`);
this.store[type] = key;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment