[FIX] stupid dhtmlxGraph blowing up everything in MSIE8 when not in debug mode

bzr revid: xmo@openerp.com-20120213111746-uojye5kfp1zpsb4a
This commit is contained in:
Xavier Morel 2012-02-13 12:17:46 +01:00
parent 899a8e2ece
commit b1f1ca0ea1
5 changed files with 3 additions and 8 deletions

View File

@ -5,8 +5,9 @@
"version": "2.0",
"depends": ['web'],
"js": [
"static/lib/dhtmlxGraph/codebase/dhtmlxchart.js",
"static/src/js/graph.js"],
"static/lib/dhtmlxGraph/codebase/thirdparty/excanvas/excanvas.js",
"static/lib/dhtmlxGraph/codebase/dhtmlxchart.js",
"static/src/js/graph.js"],
"css": ["static/lib/dhtmlxGraph/codebase/dhtmlxchart.css"],
'qweb' : [
"static/src/xml/*.xml",

View File

@ -2189,7 +2189,6 @@ dhtmlx.Canvas = {
});
a.appendChild(this.l);
if (!this.l.getContext) if (dhtmlx.r) {
dhtmlx.require("thirdparty/excanvas/excanvas.js");
G_vmlCanvasManager.init_(document);
G_vmlCanvasManager.initElement(this.l)
}

View File

@ -4021,7 +4021,6 @@ dhtmlx.Canvas = {
//use excanvas in IE
if (!this._canvas.getContext){
if (dhtmlx._isIE){
dhtmlx.require("thirdparty/excanvas/excanvas.js"); //sync loading
G_vmlCanvasManager.init_(document);
G_vmlCanvasManager.initElement(this._canvas);
} else //some other not supported browser

View File

@ -922,6 +922,3 @@ if (!document.createElement('canvas').getContext) {
})();
} // if
if (dhtmlx && dhtmlx._modules)
dhtmlx._modules["thirdparty/excanvas/excanvas.js"] = true;

View File

@ -3093,7 +3093,6 @@ dhtmlx.Canvas = {
//use excanvas in IE
if (!this._canvas.getContext){
if (dhtmlx._isIE){
dhtmlx.require("thirdparty/excanvas/excanvas.js"); //sync loading
G_vmlCanvasManager.init_(document);
G_vmlCanvasManager.initElement(this._canvas);
} else //some other not supported browser