Bug Fix: minLevel of Portal Render Limit handler now persistent in same batch of request.

This commit is contained in:
Xelio
2013-02-26 21:56:30 +08:00
parent 17a81c09d9
commit 82792cf4be
2 changed files with 20 additions and 10 deletions

View File

@ -43,6 +43,8 @@ window.requestData = function() {
}
}
// Reset previous result of Portal Render Limit handler
PRL.init();
// finally send ajax requests
$.each(tiles, function(ind, tls) {
data = { minLevelOfDetail: -1 };
@ -70,7 +72,8 @@ window.handleDataResponse = function(data, textStatus, jqXHR) {
// https://github.com/Leaflet/Leaflet/issues/185
var ppp = [];
var p2f = {};
PRL.resetOrInit();
// Reset new portals count of Portal Render Limit handler
PRL.resetCounting();
$.each(m, function(qk, val) {
$.each(val.deletedGameEntityGuids, function(ind, guid) {
if(getTypeByGuid(guid) === TYPE_FIELD && window.fields[guid] !== undefined) {