Created
September 11, 2018 15:38
-
-
Save BigRaj/dec0fb01868e14083f0df192896e043b to your computer and use it in GitHub Desktop.
This file contains 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
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