function naming

This commit is contained in:
Devin Howard 2015-10-23 21:04:16 +08:00
parent ddfb3aa98f
commit 63db41698e

View file

@ -2541,7 +2541,7 @@ Metamaps.Realtime = {
if (!self.status) return;
function test() {
function waitThenRenderTopic() {
if (topic && mapping && mapper) {
Metamaps.Topic.renderTopic(mapping, topic, false, false);
}
@ -2579,7 +2579,7 @@ Metamaps.Realtime = {
}
});
test();
waitThenRenderTopic();
},
// removeTopic
sendDeleteTopic: function (data) {
@ -2634,7 +2634,7 @@ Metamaps.Realtime = {
if (!self.status) return;
function test() {
function waitThenRenderSynapse() {
if (synapse && mapping && mapper) {
topic1 = synapse.getTopic1();
node1 = topic1.get('node');
@ -2676,7 +2676,7 @@ Metamaps.Realtime = {
cancel = true;
}
});
test();
waitThenRenderSynapse();
},
// deleteSynapse
sendDeleteSynapse: function (data) {