Skip to content

Instantly share code, notes, and snippets.

@marpstar
Last active August 29, 2015 14:10
Show Gist options
  • Save marpstar/1560482da56a6a6be47d to your computer and use it in GitHub Desktop.
Save marpstar/1560482da56a6a6be47d to your computer and use it in GitHub Desktop.
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