We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e7f266 commit e162fc4Copy full SHA for e162fc4
google-client-api.html
@@ -39,10 +39,9 @@
39
* Loads the client library when the api js has loaded.
40
*/
41
loadClient: function() {
42
- var self = this;
43
gapi.load("client", function() {
44
- self.fire(self.notifyEvent, arguments);
45
- });
+ this.fire(this.notifyEvent, arguments);
+ }.bind(this));
46
},
47
48
/**
@@ -234,11 +233,10 @@
234
233
235
236
createSelfRemovingListener: function(eventName) {
237
238
var handler = function () {
239
- loaders_[self.name].removeEventListener(eventName, handler);
240
- self.loadApi();
241
- };
+ loaders_[this.name].removeEventListener(eventName, handler);
+ this.loadApi();
+ }.bind(this);
242
243
return handler;
244
0 commit comments