Skip to content

Instantly share code, notes, and snippets.

@aheadley
Created January 19, 2012 15:24
Show Gist options
  • Save aheadley/1640580 to your computer and use it in GitHub Desktop.
Save aheadley/1640580 to your computer and use it in GitHub Desktop.
'sync': function() {
$.getJSON(worldData.config.syncFilePath,
function(data) {
worldData.data.world = data.world;
worldData.data.players = data.players;
worldData.data.counts = data.counts;
worldData.data.map = data.map;
worldData.util.syncStatus();
worldData.util.syncMarkers();
worldData.update();
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment