fix: var mm声明也移到赋值前
This commit is contained in:
@@ -279,7 +279,8 @@
|
|||||||
mc.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); };
|
mc.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); };
|
||||||
mc.resize();
|
mc.resize();
|
||||||
_chartInstances[id].mem = mm;
|
_chartInstances[id].mem = mm;
|
||||||
_chartInstances[id].mem = var mm = new MiniChart(id+'-mem', '#9ece6a');
|
var mm = new MiniChart(id+'-mem', '#9ece6a');
|
||||||
|
_chartInstances[id].mem = mm;
|
||||||
mm._origResize = mm.resize;
|
mm._origResize = mm.resize;
|
||||||
mm.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); };
|
mm.resize = function(){ this._origResize(); this.canvas.width = this.canvas.width * 2; this.canvas.height = 120; this.ctx.scale(2,2); this.draw(); };
|
||||||
mm.resize();
|
mm.resize();
|
||||||
|
|||||||
Reference in New Issue
Block a user