Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 823295f

Browse files
jutazgkalpak
authored andcommitted
docs(*): fix typos in comments and docs
Closes #15206
1 parent 9062bae commit 823295f

File tree

13 files changed

+24
-25
lines changed

13 files changed

+24
-25
lines changed

Diff for: CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ to make the fixes available to people that still need IE8 support._
8686
- secure `link[href]` as a `RESOURCE_URL`s in `$sce`
8787
([f35f334b](https://github.com/angular/angular.js/commit/f35f334bd3197585bdf034f4b6d9ffa3122dac62),
8888
[#14687](https://github.com/angular/angular.js/issues/14687))
89-
- properly sanitize `xlink:href` attribute interoplation
89+
- properly sanitize `xlink:href` attribute interpolation
9090
([f2fa1ed8](https://github.com/angular/angular.js/commit/f2fa1ed83d18d4e79a36f8c0db1c2524d762e513),
9191
[2687c261](https://github.com/angular/angular.js/commit/2687c26140585d9e3716f9f559390f5d8d598fdf))
9292
- **ngSanitize:** blacklist the attribute `usemap` as it can be used as a security exploit
@@ -569,7 +569,7 @@ for more info.
569569
- prevent assignment on constructor properties
570570
([f47e2180](https://github.com/angular/angular.js/commit/f47e218006029f39b4785d820b430de3a0eebcb0),
571571
[#13417](https://github.com/angular/angular.js/issues/13417))
572-
- preserve expensive checks when runnning `$eval` inside an expression
572+
- preserve expensive checks when running `$eval` inside an expression
573573
([96d62cc0](https://github.com/angular/angular.js/commit/96d62cc0fc77248d7e3ec4aa458bac0d3e072629))
574574
- copy `inputs` for expressions with expensive checks
575575
([0b7fff30](https://github.com/angular/angular.js/commit/0b7fff303f46202bbae1ff3ca9d0e5fa76e0fc9a))
@@ -691,7 +691,7 @@ changes section for more information
691691
- handle boolean attributes in `@` bindings
692692
([db5e0ffe](https://github.com/angular/angular.js/commit/db5e0ffe124ac588f01ef0fe79efebfa72f5eec7),
693693
[#13767](https://github.com/angular/angular.js/issues/13767), [#13769](https://github.com/angular/angular.js/issues/13769))
694-
- **$parse:** Preserve expensive checks when runnning $eval inside an expression
694+
- **$parse:** Preserve expensive checks when running $eval inside an expression
695695
([acfda102](https://github.com/angular/angular.js/commit/acfda1022d23ecaea34bbc8931588a0715b3ab03))
696696
- **dateFilter:** follow the CLDR on pattern escape sequences
697697
([1ab4e444](https://github.com/angular/angular.js/commit/1ab4e44443716c33cd857dcb1098d20580dbb0cc),

Diff for: i18n/closure/numberSymbolsExt.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* using the --for_closure flag.
2121
* File generated from CLDR ver. 29
2222
*
23-
* This file coveres those locales that are not covered in
23+
* This file covers those locales that are not covered in
2424
* "numberformatsymbols.js".
2525
*
2626
* Before checkin, this file could have been manually edited. This is
@@ -11836,4 +11836,3 @@ if (goog.LOCALE == 'zh_Hant_MO' || goog.LOCALE == 'zh-Hant-MO') {
1183611836
if (goog.LOCALE == 'zh_Hant_TW' || goog.LOCALE == 'zh-Hant-TW') {
1183711837
goog.i18n.NumberFormatSymbols = goog.i18n.NumberFormatSymbols_zh_Hant;
1183811838
}
11839-

Diff for: src/ng/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ var $AnimateProvider = ['$provide', /** @this */ function($provide) {
610610
*
611611
* @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
612612
* If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
613-
* on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided `from` and
613+
* on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and
614614
* `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
615615
* style in `to`, the style in `from` is applied immediately, and no animation is run.
616616
* If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`

Diff for: src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
* usual containers (e.g. like `<svg>`).
408408
* * See also the `directive.templateNamespace` property.
409409
* * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
410-
* then the default translusion is provided.
410+
* then the default transclusion is provided.
411411
* The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
412412
* `true` if the specified slot contains content (i.e. one or more DOM nodes).
413413
*

Diff for: src/ng/directive/ngSwitch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*
5151
* * `ngSwitchWhen`: the case statement to match against. If match then this
5252
* case will be displayed. If the same match appears multiple times, all the
53-
* elements will be displayed. It is possible to associate mutiple values to
53+
* elements will be displayed. It is possible to associate multiple values to
5454
* the same `ngSwitchWhen` by defining the optional attribute
5555
* `ngSwitchWhenSeparator`. The separator will be used to split the value of
5656
* the `ngSwitchWhen` attribute into multiple tokens, and the element will show

Diff for: src/ng/filter/orderBy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* String, etc).
1717
*
1818
* The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker
19-
* for the preceeding one. The `expression` is evaluated against each item and the output is used
19+
* for the preceding one. The `expression` is evaluated against each item and the output is used
2020
* for comparing with other items.
2121
*
2222
* You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in

Diff for: src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ function $HttpProvider() {
11461146
*
11471147
* @description
11481148
* Shortcut method to perform `JSONP` request.
1149-
* If you would like to customise where and how the callbacks are stored then try overriding
1149+
* If you would like to customize where and how the callbacks are stored then try overriding
11501150
* or decorating the {@link $jsonpCallbacks} service.
11511151
*
11521152
* @param {string} url Relative or absolute URL specifying the destination of the request.

Diff for: src/ng/parse.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ var objectValueOf = {}.constructor.prototype.valueOf;
1717

1818
// Sandboxing Angular Expressions
1919
// ------------------------------
20-
// Angular expressions are no longer sandboxed. So it is now even easier to access arbitary JS code by
20+
// Angular expressions are no longer sandboxed. So it is now even easier to access arbitrary JS code by
2121
// various means such as obtaining a reference to native JS functions like the Function constructor.
2222
//
2323
// As an example, consider the following Angular expression:
2424
//
2525
// {}.toString.constructor('alert("evil JS code")')
2626
//
27-
// It is important to realise that if you create an expression from a string that contains user provided
27+
// It is important to realize that if you create an expression from a string that contains user provided
2828
// content then it is possible that your application contains a security vulnerability to an XSS style attack.
2929
//
3030
// See https://docs.angularjs.org/guide/security
@@ -1719,7 +1719,7 @@ function $ParseProvider() {
17191719
* representation. It is expected for the function to return `true` or `false`, whether that
17201720
* character is allowed or not.
17211721
*
1722-
* Since this function will be called extensivelly, keep the implementation of these functions fast,
1722+
* Since this function will be called extensively, keep the implementation of these functions fast,
17231723
* as the performance of these functions have a direct impact on the expressions parsing speed.
17241724
*
17251725
* @param {function=} identifierStart The function that will decide whether the given character is

Diff for: src/ngMessages/messages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var jqLite;
6464
* By default, `ngMessages` will only display one message for a particular key/value collection at any time. If more
6565
* than one message (or error) key is currently true, then which message is shown is determined by the order of messages
6666
* in the HTML template code (messages declared first are prioritised). This mechanism means the developer does not have
67-
* to prioritise messages using custom JavaScript code.
67+
* to prioritize messages using custom JavaScript code.
6868
*
6969
* Given the following error object for our example (which informs us that the field `myField` currently has both the
7070
* `required` and `email` errors):

Diff for: test/ng/compileSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4331,7 +4331,7 @@ describe('$compile', function() {
43314331
element = $compile('<c1 prop="a + b"></c1>')($rootScope);
43324332

43334333
// We add this watch after the compilation to ensure that it will run after the binding watchers
4334-
// therefore triggering the thing that this test is hoping to enfore
4334+
// therefore triggering the thing that this test is hoping to enforce
43354335
$rootScope.$watch('a', function(val) { $rootScope.b = val * 2; });
43364336

43374337
expect(log).toEqual([{prop: jasmine.objectContaining({currentValue: undefined})}]);

Diff for: test/ng/directive/inputSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3446,7 +3446,7 @@ describe('input', function() {
34463446

34473447
if (supportsRange) {
34483448
// Browsers that implement range will never allow you to set a value that doesn't match the step value
3449-
// However, currently only Firefox fully inplements the spec when setting the value after the step value changes.
3449+
// However, currently only Firefox fully implements the spec when setting the value after the step value changes.
34503450
// Other browsers fail in various edge cases, which is why they are not tested here.
34513451
it('should round the input value to the nearest step on user input', function() {
34523452
var inputElm = helper.compileInput('<input type="range" ng-model="value" name="alias" step="5" />');
@@ -3750,7 +3750,7 @@ describe('input', function() {
37503750
['scheme-://example.com', true],
37513751
['scheme_://example.com', false],
37523752

3753-
// Vaidating `:` and `/` after `scheme`
3753+
// Validating `:` and `/` after `scheme`
37543754
['scheme//example.com', false],
37553755
['scheme:example.com', true],
37563756
['scheme:/example.com', true],

Diff for: test/ng/filter/orderBySpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ describe('Filter: orderBy', function() {
451451
return (isNerd1 && isNerd2) ? 0 : (isNerd1) ? -1 : 1;
452452
}
453453

454-
// No "nerd"; alpabetical order
454+
// No "nerd"; alphabetical order
455455
return (v1 === v2) ? 0 : (v1 < v2) ? -1 : 1;
456456
};
457457

Diff for: test/ngMock/angular-mocksSpec.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ describe('ngMock', function() {
2626

2727

2828
it('should fake getLocalDateString method', function() {
29-
var millenium = new Date('2000').getTime();
29+
var millennium = new Date('2000').getTime();
3030

31-
// millenium in -3h
32-
var t0 = new angular.mock.TzDate(-3, millenium);
31+
// millennium in -3h
32+
var t0 = new angular.mock.TzDate(-3, millennium);
3333
expect(t0.toLocaleDateString()).toMatch('2000');
3434

35-
// millenium in +0h
36-
var t1 = new angular.mock.TzDate(0, millenium);
35+
// millennium in +0h
36+
var t1 = new angular.mock.TzDate(0, millennium);
3737
expect(t1.toLocaleDateString()).toMatch('2000');
3838

39-
// millenium in +3h
40-
var t2 = new angular.mock.TzDate(3, millenium);
39+
// millennium in +3h
40+
var t2 = new angular.mock.TzDate(3, millennium);
4141
expect(t2.toLocaleDateString()).toMatch('1999');
4242
});
4343

0 commit comments

Comments
 (0)