Skip to content

Instantly share code, notes, and snippets.

@BigRaj
Created September 11, 2018 15:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BigRaj/dec0fb01868e14083f0df192896e043b to your computer and use it in GitHub Desktop.
Save BigRaj/dec0fb01868e14083f0df192896e043b to your computer and use it in GitHub Desktop.
SP.ClientContext.prototype.executeQuery = function(){
if(window.jQuery){
var d = $.Deferred();
this.executeQueryAsync(
function() { d.resolve(arguments); },
function() { d.reject(arguments); }
);
return d.promise();
}
else{
console.error('jQuery is not loaded');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment