From 15f8a303bfc30ec592e2045fc994437132645456 Mon Sep 17 00:00:00 2001 From: Chip Black Date: Sun, 17 Nov 2013 15:27:55 -0800 Subject: [PATCH] Fix the rest of the enyo.Ajax instances to use new bind style --- www/jssrc/blerg/API.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/jssrc/blerg/API.js b/www/jssrc/blerg/API.js index 986ac09..cd85745 100644 --- a/www/jssrc/blerg/API.js +++ b/www/jssrc/blerg/API.js @@ -128,7 +128,7 @@ enyo.kind({ var req = new enyo.Ajax({ url: url }); - req.response(function(inSender, inResponse) { + req.response(this, function(inSender, inResponse) { this.bubble('onItemsLoaded', { type: 'user', username: username, @@ -136,13 +136,13 @@ enyo.kind({ to: to, entries: inResponse }); - }.bind(this)); - req.error(function(inSender, inResponse) { + }); + req.error(this, function(inSender, inResponse) { if (inResponse == 404) this.bubble('onUserNotFound'); else this.bubble('onAPIError', {response: inResponse}); - }.bind(this)); + }); req.go(); }, loadTagRecords: function(type, tag) { -- 2.25.1