Kouhei Sutou
null+****@clear*****
Sun Nov 23 12:03:12 JST 2014
Kouhei Sutou 2014-11-23 12:03:12 +0900 (Sun, 23 Nov 2014) New Revision: 9591886644baa94466c70b5de4d146dbc858645d https://github.com/groonga/groonga-admin/commit/9591886644baa94466c70b5de4d146dbc858645d Message: groonga-client: return promise Modified files: app/scripts/groonga-client.js Modified: app/scripts/groonga-client.js (+2 -4) =================================================================== --- app/scripts/groonga-client.js 2014-11-22 23:51:45 +0900 (bfa631c) +++ app/scripts/groonga-client.js 2014-11-23 12:03:12 +0900 (ef6ec0e) @@ -32,17 +32,15 @@ GroongaClient.Request.prototype.success = function(callback) { var name = this._name; - this._rawRequest.success(function(data, status, headers, config) { + return this._rawRequest.success(function(data, status, headers, config) { var ResponseConstructor = GroongaClient.Response.find(name); var response = new ResponseConstructor(data); callback(response, status, headers, config); }); - return this; }; GroongaClient.Request.prototype.error = function(callback) { - this._rawRequest.error(callback); - return this; + return this._rawRequest.error(callback); }; GroongaClient.Request.prototype.commandLine = function() { -------------- next part -------------- HTML����������������������������...Download