Bug message: this._container is null, line:4594, :http://app.wisemapping.com/js/mindplot-min2.js

This commit is contained in:
Paulo Gustavo Veiga 2012-08-29 00:48:27 -03:00
parent 7e8745f875
commit d54a689ace
3 changed files with 20 additions and 18 deletions

View File

@ -18,45 +18,47 @@
mindplot.widget.ToolbarNotifier = new Class({
initialize : function() {
this._container = $('headerNotifier');
this._effect = new Fx.Elements(this._container, {
onComplete: function() {
this._container.setStyle('display', 'none');
initialize:function () {
var container = $('headerNotifier');
this._effect = new Fx.Elements(container, {
onComplete:function () {
container.setStyle('display', 'none');
}.bind(this),
link:'cancel',
duration:8000,
transition: Fx.Transitions.Expo.easeInOut
transition:Fx.Transitions.Expo.easeInOut
});
},
logError : function(userMsg) {
logError:function (userMsg) {
this.logMessage(userMsg, mindplot.widget.ToolbarNotifier.MsgKind.ERROR);
},
hide:function() {
hide:function () {
},
logMessage : function(msg, fade) {
logMessage:function (msg, fade) {
$assert(msg, 'msg can not be null');
this._container.set('text', msg);
this._container.setStyle('display', 'block');
this._container.position({
relativeTo: $('header'),
position: 'upperCenter',
edge: 'centerTop'
var container = $('headerNotifier');
container.set('text', msg);
container.setStyle('display', 'block');
container.position({
relativeTo:$('header'),
position:'upperCenter',
edge:'centerTop'
});
if (!$defined(fade) || fade) {
this._effect.start({
0: {
opacity: [1,0]
0:{
opacity:[1, 0]
}
});
} else {
this._container.setStyle('opacity', '1');
container.setStyle('opacity', '1');
this._effect.pause();
}
}