Last active
August 29, 2015 14:10
-
-
Save marpstar/1560482da56a6a6be47d 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
query: send.call(this, 'ngForceController.query', { | |
escape: false, | |
timeout: 30000 | |
}, false); | |
}, | |
/* | |
send.call(...) will execute the send function and | |
"returns a function that, when called, invokes the js remoting method specified in the call." | |
*/ | |
//so now I can do: | |
vfr.query("SELECT ...") //now query contains the function that's ready to be invoked to call the js remoting method | |
.then(function(){ }) //returns a promise after execution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment