Skip to content
Browse files

note about this context in api call returns

  • Loading branch information...
1 parent c142957 commit cc7083e6ef226062a27a2b42d2df61563ecf526f @jairajs89 committed Oct 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
2 README.md
@@ -161,8 +161,10 @@ Zerver scripts can be globalised on the client under whatever name you please. I
<script src="zerver/MyAPI.js"></script>
<script>
MyAPI.logStuff('hi from client', function (str) {
+ // this === MyAPI
console.log(str); // "hi from server"
}).error(function (err) {
+ // this === MyAPI
console.log(err); // error string explaining failure
});
</script>

0 comments on commit cc7083e

Please sign in to comment.
Something went wrong with that request. Please try again.