guy 3 years ago
parent
commit
446ceb6405
  1. 6
      src/core/controller/controller.bubbles.js

6
src/core/controller/controller.bubbles.js

@ -20,7 +20,7 @@ BI.BubblesController = BI.inherit(BI.Controller, {
*/ */
show: function (name, text, context, opt) { show: function (name, text, context, opt) {
opt || (opt = {}); opt || (opt = {});
var container = opt.container || "body"; var container = opt.container || context;
var offsetStyle = opt.offsetStyle || "left"; var offsetStyle = opt.offsetStyle || "left";
var level = opt.level || "error"; var level = opt.level || "error";
var adjustYOffset = opt.adjustYOffset || 0; var adjustYOffset = opt.adjustYOffset || 0;
@ -76,9 +76,7 @@ BI.BubblesController = BI.inherit(BI.Controller, {
if (!this.has(name)) { if (!this.has(name)) {
return this; return this;
} }
BI.each(this.storeBubbles, function (dir, bubble) { this.storeBubbles[name].destroy();
bubble.destroy();
});
delete this.storeBubbles[name]; delete this.storeBubbles[name];
return this; return this;
} }

Loading…
Cancel
Save