Index: app/store/charm.js |
=== modified file 'app/store/charm.js' |
--- app/store/charm.js 2013-03-29 14:31:31 +0000 |
+++ app/store/charm.js 2013-04-01 14:58:02 +0000 |
@@ -198,7 +198,7 @@ |
callbacks.failure = Y.bind(callbacks.failure, bindScope); |
} |
- var res = this._makeRequest(endpoint, callbacks); |
+ this._makeRequest(endpoint, callbacks); |
}, |
/** |
@@ -237,6 +237,24 @@ |
}, |
/** |
+ * Load the QA data for a specific charm. |
+ * |
+ * @method qa |
+ * @param {String} charmID the charm to fetch qa data for. |
+ * @param {Object} callbacks the success/failure callbacks to use. |
+ * @param {Object} bindScope the scope for 'this' in the callbacks. |
+ * |
+ */ |
+ qa: function(charmID, callbacks, bindScope) { |
+ var endpoint = 'charm/' + charmID + '/qa'; |
+ if (bindScope) { |
+ callbacks.success = Y.bind(callbacks.success, bindScope); |
+ callbacks.failure = Y.bind(callbacks.failure, bindScope); |
+ } |
+ this._makeRequest(endpoint, callbacks); |
+ }, |
+ |
+ /** |
* Given a result list, turn that into a BrowserCharmList object for the |
* application to use. |
* |
@@ -278,7 +296,7 @@ |
callbacks.failure = Y.bind(callbacks.failure, bindScope); |
} |
- var res = this._makeRequest('sidebar_editorial', callbacks); |
+ this._makeRequest('sidebar_editorial', callbacks); |
} |
}, { |
ATTRS: { |