diff --git a/src/ng/q.js b/src/ng/q.js index 3f46e5cdd7a3..59e050c8c5a7 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -8,16 +8,16 @@ * @description * A promise/deferred implementation inspired by [Kris Kowal's Q](https://github.com/kriskowal/q). * - * $q can be used in two fashions --- One, which is more similar to Kris Kowal's Q or jQuery's Deferred - * implementations, the other resembles ES6 promises to some degree. + * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred + * implementations, and the other which resembles ES6 promises to some degree. * * # $q constructor * * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver` - * function as the first argument). This is similar to the native Promise implementation from ES6 Harmony, + * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony, * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). * - * While the constructor-style use is supported, not all of the supporting methods from Harmony promises are + * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are * available yet. * * It can be used like so: @@ -44,9 +44,9 @@ * }); * ``` * - * Note, progress/notify callbacks are not currently supported via the ES6-style interface. + * Note: progress/notify callbacks are not currently supported via the ES6-style interface. * - * However, the more traditional CommonJS style usage is still available, and documented below. + * However, the more traditional CommonJS-style usage is still available, and documented below. * * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an * interface for interacting with an object that represents the result of an action that is @@ -134,7 +134,7 @@ * * This method *returns a new promise* which is resolved or rejected via the return value of the * `successCallback`, `errorCallback`. It also notifies via the return value of the - * `notifyCallback` method. The promise can not be resolved or rejected from the notifyCallback + * `notifyCallback` method. The promise cannot be resolved or rejected from the notifyCallback * method. * * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)` @@ -204,7 +204,7 @@ * ``` * * @param {function(function, function)} resolver Function which is responsible for resolving or - * rejecting the newly created promise. The first parameteter is a function which resolves the + * rejecting the newly created promise. The first parameter is a function which resolves the * promise, the second parameter is a function which rejects the promise. * * @returns {Promise} The newly created promise.