Workaround for IE's retardness (not yet tested).
This commit is contained in:
parent
6c1a69a517
commit
e216235774
2 changed files with 6 additions and 3 deletions
|
|
@ -114,3 +114,5 @@ KzedMapType.prototype = $.extend(new DynMapType(), {
|
||||||
return tile.get(0);
|
return tile.get(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
maptypes.KzedMapType = function(configuration) { return new KzedMapType(configuration); };
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
//if (!console) console = { log: function() {} };
|
//if (!console) console = { log: function() {} };
|
||||||
|
|
||||||
|
var maptypes = {};
|
||||||
|
|
||||||
function splitArgs(s) {
|
function splitArgs(s) {
|
||||||
var r = s.split(' ');
|
var r = s.split(' ');
|
||||||
delete arguments[0];
|
delete arguments[0];
|
||||||
|
|
@ -87,8 +89,7 @@ DynMap.prototype = {
|
||||||
$.extend(me.options, configuration);
|
$.extend(me.options, configuration);
|
||||||
if (!me.options.maps) me.options.maps = {};
|
if (!me.options.maps) me.options.maps = {};
|
||||||
$.each(me.options.shownmaps, function(index, mapentry) {
|
$.each(me.options.shownmaps, function(index, mapentry) {
|
||||||
var mapconstructor = eval(mapentry.type);
|
me.options.maps[mapentry.name] = maptypes[mapentry.type](mapentry);
|
||||||
me.options.maps[mapentry.name] = new mapconstructor(mapentry);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue