Skip to content

Commit e57cf13

Browse files
jutazgkalpak
authored andcommitted
docs: fix typos throughout the codebase
Closes angular#13507
1 parent e4e5677 commit e57cf13

22 files changed

+88
-88
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ install:
4747
# Log HTTP requests
4848
- npm config set loglevel http
4949
- npm install -g [email protected]
50-
# Instal npm dependecies and ensure that npm cache is not stale
50+
# Install npm dependencies and ensure that npm cache is not stale
5151
- npm install
5252

5353
before_script:

CHANGELOG.md

+56-56
Large diffs are not rendered by default.

i18n/closure/numberSymbolsExt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* using the --for_closure flag.
2121
* File generated from CLDR ver. 27.0.1
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

i18n/src/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var PATTERN_SEP = ';',
1111
DIGIT = '#';
1212

1313
/**
14-
* main funciton for parser
14+
* main function for parser
1515
* @param str {string} pattern to be parsed (e.g. #,##0.###).
1616
*/
1717
function parsePattern(pattern) {

lib/versions/version-info.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ var getSnapshotVersion = function() {
178178
// last release was a non beta release. Increment the patch level to
179179
// indicate the next release that we will be doing.
180180
// E.g. last release was 1.3.0, then the snapshot will be
181-
// 1.3.1-build.1, which is lesser than 1.3.1 accorind the semver!
181+
// 1.3.1-build.1, which is lesser than 1.3.1 according to the semver!
182182

183183
// If the last release was a beta release we don't update the
184184
// beta number by purpose, as otherwise the semver comparison

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function isArrayLike(obj) {
204204

205205
// arrays, strings and jQuery/jqLite objects are array like
206206
// * jqLite is either the jQuery or jqLite constructor function
207-
// * we have to check the existance of jqLite first as this method is called
207+
// * we have to check the existence of jqLite first as this method is called
208208
// via the forEach method when constructing the jqLite object in the first place
209209
if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;
210210

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function jqLiteRemove(element, keepData) {
504504
function jqLiteDocumentLoaded(action, win) {
505505
win = win || window;
506506
if (win.document.readyState === 'complete') {
507-
// Force the action to be run async for consistent behaviour
507+
// Force the action to be run async for consistent behavior
508508
// from the action's point of view
509509
// i.e. it will definitely not be in a $apply
510510
win.setTimeout(action);

src/ng/animate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -551,14 +551,14 @@ var $AnimateProvider = ['$provide', function($provide) {
551551
* If any detected CSS transition, keyframe or JavaScript matches the provided className value then the animation will take
552552
* on the provided styles. For example, if a transition animation is set for the given className then the provided from and
553553
* to styles will be applied alongside the given transition. If a JavaScript animation is detected then the provided styles
554-
* will be given in as function paramters into the `animate` method (or as apart of the `options` parameter).
554+
* will be given in as function parameters into the `animate` method (or as apart of the `options` parameter).
555555
*
556556
* @param {DOMElement} element the element which the CSS styles will be applied to
557557
* @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.
558558
* @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.
559559
* @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If
560560
* this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
561-
* (Note that if no animation is detected then this value will not be appplied to the element.)
561+
* (Note that if no animation is detected then this value will not be applied to the element.)
562562
* @param {object=} options an optional collection of options/styles that will be applied to the element
563563
*
564564
* @return {Promise} the animation callback promise

src/ng/compile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
* When this property is set to true, the HTML compiler will collect DOM nodes between
129129
* nodes with the attributes `directive-name-start` and `directive-name-end`, and group them
130130
* together as the directive elements. It is recommended that this feature be used on directives
131-
* which are not strictly behavioural (such as {@link ngClick}), and which
131+
* which are not strictly behavioral (such as {@link ngClick}), and which
132132
* do not manipulate or replace child nodes (such as {@link ngInclude}).
133133
*
134134
* #### `priority`
@@ -517,7 +517,7 @@
517517
* content and the `scope` is the newly created transclusion scope, to which the clone is bound.
518518
*
519519
* <div class="alert alert-info">
520-
* **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function
520+
* **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function
521521
* since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.
522522
* </div>
523523
*
@@ -549,7 +549,7 @@
549549
* </div>
550550
*
551551
* The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}
552-
* automatically destroy their transluded clones as necessary so you do not need to worry about this if
552+
* automatically destroy their transcluded clones as necessary so you do not need to worry about this if
553553
* you are simply using {@link ngTransclude} to inject the transclusion into your directive.
554554
*
555555
*

src/ng/directive/form.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
127127
*
128128
* However, if the method is used programmatically, for example by adding dynamically created controls,
129129
* or controls that have been previously removed without destroying their corresponding DOM element,
130-
* it's the developers responsiblity to make sure the current state propagates to the parent form.
130+
* it's the developers responsibility to make sure the current state propagates to the parent form.
131131
*
132132
* For example, if an input control is added that is already `$dirty` and has `$error` properties,
133133
* calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.

src/ng/directive/ngCsp.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
*
4848
* * no-inline-style: this stops Angular from injecting CSS styles into the DOM
4949
*
50-
* * no-unsafe-eval: this stops Angular from optimising $parse with unsafe eval of strings
50+
* * no-unsafe-eval: this stops Angular from optimizing $parse with unsafe eval of strings
5151
*
5252
* You can use these values in the following combinations:
5353
*
@@ -64,7 +64,7 @@
6464
* inline styles. E.g. `<body ng-csp="no-unsafe-eval">`.
6565
*
6666
* * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can
67-
* run eval - no automcatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
67+
* run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
6868
*
6969
* * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject
7070
* styles nor use eval, which is the same as an empty: ng-csp.

src/ng/directive/ngModel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
793793
* However, custom controls might also pass objects to this method. In this case, we should make
794794
* a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not
795795
* perform a deep watch of objects, it only looks for a change of identity. If you only change
796-
* the property of the object then ngModel will not realise that the object has changed and
796+
* the property of the object then ngModel will not realize that the object has changed and
797797
* will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should
798798
* not change properties of the copy once it has been passed to `$setViewValue`.
799799
* Otherwise you may cause the model value on the scope to change incorrectly.

src/ng/directive/ngPluralize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale,
215215
}
216216

217217
// If both `count` and `lastCount` are NaN, we don't need to re-register a watch.
218-
// In JS `NaN !== NaN`, so we have to exlicitly check.
218+
// In JS `NaN !== NaN`, so we have to explicitly check.
219219
if ((count !== lastCount) && !(countIsNaN && isNumber(lastCount) && isNaN(lastCount))) {
220220
watchRemover();
221221
var whenExpFn = whensExpFns[count];

src/ng/directive/ngRepeat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`
9494
* will not have to rebuild the DOM elements for items it has already rendered, even if the
9595
* JavaScript objects in the collection have been substituted for new ones. For large collections,
96-
* this signifincantly improves rendering performance. If you don't have a unique identifier,
96+
* this significantly improves rendering performance. If you don't have a unique identifier,
9797
* `track by $index` can also provide a performance boost.
9898
* </div>
9999
* ```html

src/ng/directive/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ var SelectController =
164164
*
165165
* <div class="alert alert-warning">
166166
* Note that the value of a `select` directive used without `ngOptions` is always a string.
167-
* When the model needs to be bound to a non-string value, you must either explictly convert it
167+
* When the model needs to be bound to a non-string value, you must either explicitly convert it
168168
* using a directive (see example below) or use `ngOptions` to specify the set of options.
169169
* This is because an option element can only be bound to string values at present.
170170
* </div>

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ function $HttpProvider() {
10341034

10351035
defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);
10361036

1037-
// using for-in instead of forEach to avoid unecessary iteration after header has been found
1037+
// using for-in instead of forEach to avoid unnecessary iteration after header has been found
10381038
defaultHeadersIteration:
10391039
for (defHeaderName in defHeaders) {
10401040
lowercaseDefHeaderName = lowercase(defHeaderName);

src/ng/q.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*
5454
* Note: progress/notify callbacks are not currently supported via the ES6-style interface.
5555
*
56-
* Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.
56+
* Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
5757
*
5858
* However, the more traditional CommonJS-style usage is still available, and documented below.
5959
*

src/ngAnimate/animateCss.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ var ANIMATE_TIMER_KEY = '$$animateCss';
167167
* ```
168168
*
169169
* To actually start the animation we need to run `animation.start()` which will then return a promise that we can hook into to detect when the animation ends.
170-
* If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and stlyes may have been
170+
* If we choose not to run the animation then we MUST run `animation.end()` to perform a cleanup on the element (since some CSS classes and styles may have been
171171
* applied to the element during the preparation phase). Note that all other properties such as duration, delay, transitions and keyframes are just properties
172172
* and that changing them will not reconfigure the parameters of the animation.
173173
*
@@ -205,10 +205,10 @@ var ANIMATE_TIMER_KEY = '$$animateCss';
205205
* ({@link ngAnimate#css-staggering-animations Click here to learn how CSS-based staggering works in ngAnimate.})
206206
* * `staggerIndex` - The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item in the stagger; therefore when a
207207
* `stagger` option value of `0.1` is used then there will be a stagger delay of `600ms`)
208-
* * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occuring on the classes being added and removed.)
208+
* * `applyClassesEarly` - Whether or not the classes being added or removed will be used when detecting the animation. This is set by `$animate` when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. (Note that this will prevent any transitions from occurring on the classes being added and removed.)
209209
* * `cleanupStyles` - Whether or not the provided `from` and `to` styles will be removed once
210210
* the animation is closed. This is useful for when the styles are used purely for the sake of
211-
* the animation and do not have a lasting visual effect on the element (e.g. a colapse and open animation).
211+
* the animation and do not have a lasting visual effect on the element (e.g. a collapse and open animation).
212212
* By default this value is set to `false`.
213213
*
214214
* @return {object} an object with start and end methods and details about the animation.
@@ -261,7 +261,7 @@ function computeCssStyles($window, element, properties) {
261261
}
262262

263263
// by setting this to null in the event that the delay is not set or is set directly as 0
264-
// then we can still allow for zegative values to be used later on and not mistake this
264+
// then we can still allow for negative values to be used later on and not mistake this
265265
// value for being greater than any other negative value.
266266
if (val === 0) {
267267
val = null;
@@ -377,7 +377,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
377377
}
378378

379379
// we keep putting this in multiple times even though the value and the cacheKey are the same
380-
// because we're keeping an interal tally of how many duplicate animations are detected.
380+
// because we're keeping an internal tally of how many duplicate animations are detected.
381381
gcsLookup.put(cacheKey, timings);
382382
return timings;
383383
}
@@ -839,9 +839,9 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
839839
}
840840
};
841841

842-
// checking the stagger duration prevents an accidently cascade of the CSS delay style
842+
// checking the stagger duration prevents an accidentally cascade of the CSS delay style
843843
// being inherited from the parent. If the transition duration is zero then we can safely
844-
// rely that the delay value is an intential stagger delay style.
844+
// rely that the delay value is an intentional stagger delay style.
845845
var maxStagger = itemIndex > 0
846846
&& ((timings.transitionDuration && stagger.transitionDuration === 0) ||
847847
(timings.animationDuration && stagger.animationDuration === 0))

src/ngAnimate/animateCssDriver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
2424

2525
var rootBodyElement = jqLite(
2626
// this is to avoid using something that exists outside of the body
27-
// we also special case the doc fragement case because our unit test code
27+
// we also special case the doc fragment case because our unit test code
2828
// appends the $rootElement to the body after the app has been bootstrapped
2929
isDocumentFragment(rootNode) || bodyNode.contains(rootNode) ? rootNode : bodyNode
3030
);
@@ -124,7 +124,7 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
124124
var coords = getDomNode(anchor).getBoundingClientRect();
125125

126126
// we iterate directly since safari messes up and doesn't return
127-
// all the keys for the coods object when iterated
127+
// all the keys for the coords object when iterated
128128
forEach(['width','height','top','left'], function(key) {
129129
var value = coords[key];
130130
switch (key) {

src/ngAnimate/animation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ var $$AnimationProvider = ['$animateProvider', function($animateProvider) {
305305
};
306306

307307
// the anchor animations require that the from and to elements both have at least
308-
// one shared CSS class which effictively marries the two elements together to use
308+
// one shared CSS class which effectively marries the two elements together to use
309309
// the same animation driver and to properly sequence the anchor animation.
310310
if (group.classes.length) {
311311
preparedAnimations.push(group);

src/ngAnimate/module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
*
287287
* ngAnimate also allows for animations to be consumed by JavaScript code. The approach is similar to CSS-based animations (where there is a shared
288288
* CSS class that is referenced in our HTML code) but in addition we need to register the JavaScript animation on the module. By making use of the
289-
* `module.animation()` module function we can register the ainmation.
289+
* `module.animation()` module function we can register the animation.
290290
*
291291
* Let's see an example of a enter/leave animation using `ngRepeat`:
292292
*

src/ngAnimate/rafScheduler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
1414
queue = scheduler.queue = [];
1515

1616
/* waitUntilQuiet does two things:
17-
* 1. It will run the FINAL `fn` value only when an uncancelled RAF has passed through
17+
* 1. It will run the FINAL `fn` value only when an uncanceled RAF has passed through
1818
* 2. It will delay the next wave of tasks from running until the quiet `fn` has run.
1919
*
2020
* The motivation here is that animation code can request more time from the scheduler

0 commit comments

Comments
 (0)