Permalink
Browse files

[fix] global namespace pollution

  • Loading branch information...
1 parent f3f4d29 commit 686f5c9dbc0d4155e5200b995e61fc201d0c0206 @Stanislav-Wolski Stanislav-Wolski committed Sep 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 codebase/message.js
View
@@ -118,7 +118,7 @@ if(!window.dhtmlx)
var source = e.target || e.srcElement;
if (!source.className) source = source.parentNode;
if (source.className == "dhtmlx_popup_button"){
- result = source.getAttribute("result");
+ var result = source.getAttribute("result");
result = (result == "true")||(result == "false"?false:result);
callback(config, result);
}
@@ -179,17 +179,17 @@ if(!window.dhtmlx)
return text;
}
dhtmlx.alert = function(){
- text = box_params.apply(this, arguments);
+ var text = box_params.apply(this, arguments);
text.type = text.type || "confirm";
return alertPopup(text);
};
dhtmlx.confirm = function(){
- text = box_params.apply(this, arguments);
+ var text = box_params.apply(this, arguments);
text.type = text.type || "alert";
return confirmPopup(text);
};
dhtmlx.modalbox = function(){
- text = box_params.apply(this, arguments);
+ var text = box_params.apply(this, arguments);
text.type = text.type || "alert";
return boxPopup(text);
};

0 comments on commit 686f5c9

Please sign in to comment.