Created
November 20, 2009 04:11
-
-
Save sminnee/239280 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(isRecon) getReconData(updateGraph); | |
| else getGuardianData(updateGraph); | |
| function updateGraph(graphData) { | |
| // only needs to be implemented once | |
| } | |
| function getReconData(callback) { | |
| $.get( | |
| success: function(data) { | |
| theActualData = data.somethingSimpler; | |
| callback(theActualData) | |
| } | |
| ) | |
| } | |
| function getGuardianData(callback) { | |
| $.get( | |
| success: function(data) { | |
| theActualData = data.innerBit.something; | |
| callback(theActualData) | |
| } | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment