Skip to content

Commit 41722b3

Browse files
jutazpetebacondarwin
authored andcommitted
docs(*): fix typos in comments and docs
Closes angular#15206
1 parent d8febf8 commit 41722b3

File tree

13 files changed

+23
-24
lines changed

13 files changed

+23
-24
lines changed

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
@@ -506,7 +506,7 @@ for more info.
506506
- prevent assignment on constructor properties
507507
([f47e2180](https://github.com/angular/angular.js/commit/f47e218006029f39b4785d820b430de3a0eebcb0),
508508
[#13417](https://github.com/angular/angular.js/issues/13417))
509-
- preserve expensive checks when runnning `$eval` inside an expression
509+
- preserve expensive checks when running `$eval` inside an expression
510510
([96d62cc0](https://github.com/angular/angular.js/commit/96d62cc0fc77248d7e3ec4aa458bac0d3e072629))
511511
- copy `inputs` for expressions with expensive checks
512512
([0b7fff30](https://github.com/angular/angular.js/commit/0b7fff303f46202bbae1ff3ca9d0e5fa76e0fc9a))
@@ -628,7 +628,7 @@ changes section for more information
628628
- handle boolean attributes in `@` bindings
629629
([db5e0ffe](https://github.com/angular/angular.js/commit/db5e0ffe124ac588f01ef0fe79efebfa72f5eec7),
630630
[#13767](https://github.com/angular/angular.js/issues/13767), [#13769](https://github.com/angular/angular.js/issues/13769))
631-
- **$parse:** Preserve expensive checks when runnning $eval inside an expression
631+
- **$parse:** Preserve expensive checks when running $eval inside an expression
632632
([acfda102](https://github.com/angular/angular.js/commit/acfda1022d23ecaea34bbc8931588a0715b3ab03))
633633
- **dateFilter:** follow the CLDR on pattern escape sequences
634634
([1ab4e444](https://github.com/angular/angular.js/commit/1ab4e44443716c33cd857dcb1098d20580dbb0cc),

i18n/closure/numberSymbolsExt.js

-1
Original file line numberDiff line numberDiff line change
@@ -11115,4 +11115,3 @@ if (goog.LOCALE == 'zh_Hant_MO' || goog.LOCALE == 'zh-Hant-MO') {
1111511115
if (goog.LOCALE == 'zh_Hant_TW' || goog.LOCALE == 'zh-Hant-TW') {
1111611116
goog.i18n.NumberFormatSymbols = goog.i18n.NumberFormatSymbols_zh_Hant;
1111711117
}
11118-

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`

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
*

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

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

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ function $HttpProvider() {
11391139
*
11401140
* @description
11411141
* Shortcut method to perform `JSONP` request.
1142-
* If you would like to customise where and how the callbacks are stored then try overriding
1142+
* If you would like to customize where and how the callbacks are stored then try overriding
11431143
* or decorating the {@link $jsonpCallbacks} service.
11441144
*
11451145
* @param {string} url Relative or absolute URL specifying the destination of the request.

src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ function $ParseProvider() {
19001900
* representation. It is expected for the function to return `true` or `false`, whether that
19011901
* character is allowed or not.
19021902
*
1903-
* Since this function will be called extensivelly, keep the implementation of these functions fast,
1903+
* Since this function will be called extensively, keep the implementation of these functions fast,
19041904
* as the performance of these functions have a direct impact on the expressions parsing speed.
19051905
*
19061906
* @param {function=} identifierStart The function that will decide whether the given character is

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):

test/ng/compileSpec.js

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

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

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

test/ng/directive/inputSpec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,7 @@ describe('input', function() {
29542954
['scheme-://example.com', true],
29552955
['scheme_://example.com', false],
29562956

2957-
// Vaidating `:` and `/` after `scheme`
2957+
// Validating `:` and `/` after `scheme`
29582958
['scheme//example.com', false],
29592959
['scheme:example.com', true],
29602960
['scheme:/example.com', true],
@@ -3017,10 +3017,10 @@ describe('input', function() {
30173017
['scheme://example.com/path?query#~`!@#$%^&*-_=+|\\;:\'",.?/()[]{}<>', true],
30183018

30193019
// Validating miscellaneous
3020-
['scheme://☺.✪.⌘.➡/䨹', true],
3021-
['scheme://مثال.إختبار', true],
3020+
['scheme://☺.âœ.⌘.➡/䨹', true],
3021+
['scheme://مثال.Ø¥Ø®ØØ¨Ø§Ø±', true],
30223022
['scheme://例子.测试', true],
3023-
['scheme://उदाहरण.परीक्षा', true],
3023+
['scheme://उदाहरण.à¤à¤°à¥€à¤•्षा', true],
30243024

30253025
// Legacy tests
30263026
['http://server:123/path', true],

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

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)