Created
January 28, 2015 21:22
-
-
Save seagoj/5bb17af5d758e2ceb31d to your computer and use it in GitHub Desktop.
set property via ajax
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
var object = (function() { | |
var property; | |
var init = function() { | |
$.ajax({ | |
url: '/get/property', | |
data: {'get': 'property'}, | |
success: function(data) { | |
property = data.property; | |
} | |
}); | |
}; | |
return { | |
init: init, | |
property: property | |
}; | |
})().init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment