window.backend = {
driver: null,
DriverSet: function (dr) {
this.driver = dr;
},
driverAuto: function (onSuccess) {
var OperaMini = Object.prototype.toString.call(window.operamini) === "[object OperaMini]";
if (OperaMini) {
http.load.script(Config.gojs_dir+"/package/backend/drivers/jsonp.js",onSuccess,false);
} else {
if ('WebSocket' in window) {
http.load.script(Config.gojs_dir+"/package/backend/drivers/ws.js",onSuccess,false);
} else {
http.load.script(Config.gojs_dir+"/package/backend/drivers/ajax.js",onSuccess,false);
}
}
},
Get: function (data, call) {
if (this.driver === null) {
this.driverAuto(function(){
backend.driver(data, call);
});
} else {
this.driver(data, call);
}
}
};
Ошибка
SyntaxError: An invalid or illegal string was specified
driver: null,