Skip to content

Commit 258e986

Browse files
carldanleypkozlowski-opensource
authored andcommitted
docs(*): fixed typos and ngdoc parameter names
1 parent 1bc99ec commit 258e986

13 files changed

Lines changed: 20 additions & 19 deletions

File tree

src/Angular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
////////////////////////////////////
44

55
/**
6-
* hasOwnProperty may be overriden by a property of the same name, or entirely
6+
* hasOwnProperty may be overwritten by a property of the same name, or entirely
77
* absent from an object that does not inherit Object.prototype; this copy is
88
* used instead
99
*/
@@ -793,7 +793,7 @@ function toJsonReplacer(key, value) {
793793
*
794794
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
795795
* @param {boolean=} pretty If set to true, the JSON output will contain newlines and whitespace.
796-
* @returns {string|undefined} Jsonified string representing `obj`.
796+
* @returns {string|undefined} JSON-ified string representing `obj`.
797797
*/
798798
function toJson(obj, pretty) {
799799
if (typeof obj === 'undefined') return undefined;

src/auto/injector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function annotate(fn) {
202202
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
203203
* </pre>
204204
*
205-
* This method does not work with code minfication / obfuscation. For this reason the following annotation strategies
205+
* This method does not work with code minification / obfuscation. For this reason the following annotation strategies
206206
* are supported.
207207
*
208208
* # The `$inject` property

src/ng/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function Browser(window, document, $log, $sniffer) {
323323
/**
324324
* @name ng.$browser#defer
325325
* @methodOf ng.$browser
326-
* @param {function()} fn A function, who's execution should be defered.
326+
* @param {function()} fn A function, who's execution should be deferred.
327327
* @param {number=} [delay=0] of milliseconds to defer the function execution.
328328
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
329329
*
@@ -352,7 +352,7 @@ function Browser(window, document, $log, $sniffer) {
352352
* @methodOf ng.$browser.defer
353353
*
354354
* @description
355-
* Cancels a defered task identified with `deferId`.
355+
* Cancels a deferred task identified with `deferId`.
356356
*
357357
* @param {*} deferId Token returned by the `$browser.defer` function.
358358
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully canceled.

src/ng/cacheFactory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ function $CacheFactoryProvider() {
194194
* @name ng.$templateCache
195195
*
196196
* @description
197-
* The first time a template is used, it is loaded in the template cache for quick retrieval. You can
198-
* load templates directly into the cache in a `script` tag, or by consuming the `$templateCache`
197+
* The first time a template is used, it is loaded in the template cache for quick retrieval. You can
198+
* load templates directly into the cache in a `script` tag, or by consuming the `$templateCache`
199199
* service directly.
200200
*
201201
* Adding via the `script` tag:

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ var PREFIX_REGEXP = /^(x[\:\-_]|data[\:\-_])/i;
13121312
/**
13131313
* Converts all accepted directives format into proper directive name.
13141314
* All of these will become 'myDirective':
1315-
* my:DiRective
1315+
* my:Directive
13161316
* my-directive
13171317
* x-my-directive
13181318
* data-my:directive

src/ng/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* }
3131
* </pre>
3232
*
33-
* The filter function is registered with the `$injector` under the filter name suffixe with `Filter`.
33+
* The filter function is registered with the `$injector` under the filter name suffix with `Filter`.
3434
* <pre>
3535
* it('should be the same instance', inject(
3636
* function($filterProvider) {

src/ng/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function $HttpProvider() {
155155

156156
/**
157157
* Response interceptors go before "around" interceptors (no real reason, just
158-
* had to pick one.) But they are already revesed, so we can't use unshift, hence
158+
* had to pick one.) But they are already reversed, so we can't use unshift, hence
159159
* the splice.
160160
*/
161161
reversedInterceptors.splice(index, 0, {

src/ng/location.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ LocationHashbangInHtml5Url.prototype =
254254
* Change path, search and hash, when called with parameter and return `$location`.
255255
*
256256
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
257+
* @param {string=} replace The path that will be changed
257258
* @return {string} url
258259
*/
259260
url: function(url, replace) {

src/ng/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var $parseMinErr = minErr('$parse');
2020
// the expression, which is a stronger but more expensive test. Since reflective calls are expensive anyway, this is not
2121
// such a big deal compared to static dereferencing.
2222
//
23-
// This sandboxing techniqueue is not perfect and doesn't aim to be. The goal is to prevent exploits against the
23+
// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits against the
2424
// expression language, but not to prevent exploits that were enabled by exposing sensitive JavaScript or browser apis
2525
// on Scope. Exposing such objects on a Scope is never a good practice and therefore we are not even trying to protect
2626
// against interaction with an object explicitly exposed in this way.

src/ngScenario/Describe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ angular.scenario.Describe.prototype.xdescribe = angular.noop;
9494
* Defines a test.
9595
*
9696
* @param {string} name Name of the test.
97-
* @param {function()} vody Body of the block.
97+
* @param {function()} body Body of the block.
9898
*/
9999
angular.scenario.Describe.prototype.it = function(name, body) {
100100
this.its.push({

0 commit comments

Comments
 (0)