Skip to content
Permalink
Browse files

docs(*): fix typos in comments and docs

Closes #15206
  • Loading branch information
jutaz authored and gkalpak committed Oct 1, 2016
1 parent 9a8d058 commit a033eb753c8700a228e4a8dc42dc32fda49686f6
@@ -86,7 +86,7 @@ to make the fixes available to people that still need IE8 support._
- secure `link[href]` as a `RESOURCE_URL`s in `$sce`
([f35f334b](https://github.com/angular/angular.js/commit/f35f334bd3197585bdf034f4b6d9ffa3122dac62),
[#14687](https://github.com/angular/angular.js/issues/14687))
- properly sanitize `xlink:href` attribute interoplation
- properly sanitize `xlink:href` attribute interpolation
([f2fa1ed8](https://github.com/angular/angular.js/commit/f2fa1ed83d18d4e79a36f8c0db1c2524d762e513),
[2687c261](https://github.com/angular/angular.js/commit/2687c26140585d9e3716f9f559390f5d8d598fdf))
- **ngSanitize:** blacklist the attribute `usemap` as it can be used as a security exploit
@@ -506,7 +506,7 @@ for more info.
- prevent assignment on constructor properties
([f47e2180](https://github.com/angular/angular.js/commit/f47e218006029f39b4785d820b430de3a0eebcb0),
[#13417](https://github.com/angular/angular.js/issues/13417))
- preserve expensive checks when runnning `$eval` inside an expression
- preserve expensive checks when running `$eval` inside an expression
([96d62cc0](https://github.com/angular/angular.js/commit/96d62cc0fc77248d7e3ec4aa458bac0d3e072629))
- copy `inputs` for expressions with expensive checks
([0b7fff30](https://github.com/angular/angular.js/commit/0b7fff303f46202bbae1ff3ca9d0e5fa76e0fc9a))
@@ -628,7 +628,7 @@ changes section for more information
- handle boolean attributes in `@` bindings
([db5e0ffe](https://github.com/angular/angular.js/commit/db5e0ffe124ac588f01ef0fe79efebfa72f5eec7),
[#13767](https://github.com/angular/angular.js/issues/13767), [#13769](https://github.com/angular/angular.js/issues/13769))
- **$parse:** Preserve expensive checks when runnning $eval inside an expression
- **$parse:** Preserve expensive checks when running $eval inside an expression
([acfda102](https://github.com/angular/angular.js/commit/acfda1022d23ecaea34bbc8931588a0715b3ab03))
- **dateFilter:** follow the CLDR on pattern escape sequences
([1ab4e444](https://github.com/angular/angular.js/commit/1ab4e44443716c33cd857dcb1098d20580dbb0cc),
@@ -11115,4 +11115,3 @@ if (goog.LOCALE == 'zh_Hant_MO' || goog.LOCALE == 'zh-Hant-MO') {
if (goog.LOCALE == 'zh_Hant_TW' || goog.LOCALE == 'zh-Hant-TW') {
goog.i18n.NumberFormatSymbols = goog.i18n.NumberFormatSymbols_zh_Hant;
}

@@ -610,7 +610,7 @@ var $AnimateProvider = ['$provide', /** @this */ function($provide) {
*
* @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
* If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
* on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided `from` and
* on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and
* `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
* style in `to`, the style in `from` is applied immediately, and no animation is run.
* If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
@@ -407,7 +407,7 @@
* usual containers (e.g. like `<svg>`).
* * See also the `directive.templateNamespace` property.
* * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
* then the default translusion is provided.
* then the default transclusion is provided.
* The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
* `true` if the specified slot contains content (i.e. one or more DOM nodes).
*
@@ -50,7 +50,7 @@
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
* case will be displayed. If the same match appears multiple times, all the
* elements will be displayed. It is possible to associate mutiple values to
* elements will be displayed. It is possible to associate multiple values to
* the same `ngSwitchWhen` by defining the optional attribute
* `ngSwitchWhenSeparator`. The separator will be used to split the value of
* the `ngSwitchWhen` attribute into multiple tokens, and the element will show
@@ -16,7 +16,7 @@
* String, etc).
*
* The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker
* for the preceeding one. The `expression` is evaluated against each item and the output is used
* for the preceding one. The `expression` is evaluated against each item and the output is used
* for comparing with other items.
*
* You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in
@@ -1139,7 +1139,7 @@ function $HttpProvider() {
*
* @description
* Shortcut method to perform `JSONP` request.
* If you would like to customise where and how the callbacks are stored then try overriding
* If you would like to customize where and how the callbacks are stored then try overriding
* or decorating the {@link $jsonpCallbacks} service.
*
* @param {string} url Relative or absolute URL specifying the destination of the request.
@@ -1900,7 +1900,7 @@ function $ParseProvider() {
* representation. It is expected for the function to return `true` or `false`, whether that
* character is allowed or not.
*
* Since this function will be called extensivelly, keep the implementation of these functions fast,
* Since this function will be called extensively, keep the implementation of these functions fast,
* as the performance of these functions have a direct impact on the expressions parsing speed.
*
* @param {function=} identifierStart The function that will decide whether the given character is
@@ -64,7 +64,7 @@ var jqLite;
* By default, `ngMessages` will only display one message for a particular key/value collection at any time. If more
* than one message (or error) key is currently true, then which message is shown is determined by the order of messages
* in the HTML template code (messages declared first are prioritised). This mechanism means the developer does not have
* to prioritise messages using custom JavaScript code.
* to prioritize messages using custom JavaScript code.
*
* Given the following error object for our example (which informs us that the field `myField` currently has both the
* `required` and `email` errors):
@@ -4291,7 +4291,7 @@ describe('$compile', function() {
element = $compile('<c1 prop="a + b"></c1>')($rootScope);

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

expect(log).toEqual([{prop: jasmine.objectContaining({currentValue: undefined})}]);
@@ -2954,7 +2954,7 @@ describe('input', function() {
['scheme-://example.com', true],
['scheme_://example.com', false],

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

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

// Legacy tests
['http://server:123/path', true],
@@ -451,7 +451,7 @@ describe('Filter: orderBy', function() {
return (isNerd1 && isNerd2) ? 0 : (isNerd1) ? -1 : 1;
}

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

@@ -26,18 +26,18 @@ describe('ngMock', function() {


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

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

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

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

0 comments on commit a033eb7

Please sign in to comment.
You can’t perform that action at this time.