only call onReady once in sframe-listmap
This commit is contained in:
@@ -685,7 +685,9 @@ define([
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var ready = false;
|
||||||
realtimeOptions.onReady = function (info) {
|
realtimeOptions.onReady = function (info) {
|
||||||
|
if (ready) { return; }
|
||||||
// create your patcher
|
// create your patcher
|
||||||
if (realtime !== info.realtime) {
|
if (realtime !== info.realtime) {
|
||||||
realtime = rt.realtime = info.realtime;
|
realtime = rt.realtime = info.realtime;
|
||||||
@@ -709,6 +711,7 @@ define([
|
|||||||
DeepProxy.checkLocalChange(proxy, onLocal);
|
DeepProxy.checkLocalChange(proxy, onLocal);
|
||||||
|
|
||||||
initializing = false;
|
initializing = false;
|
||||||
|
ready = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
realtimeOptions.onAbort = function (info) {
|
realtimeOptions.onAbort = function (info) {
|
||||||
|
|||||||
Reference in New Issue
Block a user