Skip to content

Instantly share code, notes, and snippets.

@seagoj
Created January 28, 2015 21:22
Show Gist options
  • Save seagoj/5bb17af5d758e2ceb31d to your computer and use it in GitHub Desktop.
Save seagoj/5bb17af5d758e2ceb31d to your computer and use it in GitHub Desktop.
set property via ajax
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