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

Commit 84a6ef4

Browse files
jutazgkalpak
authored andcommitted
docs: fix typos throughout the codebase
Closes #13519
1 parent 4d680c3 commit 84a6ef4

File tree

16 files changed

+20
-20
lines changed

16 files changed

+20
-20
lines changed

docs/app/assets/css/docs.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ h1,h2,h3,h4,h5,h6 {
124124
font-size:1.2em;
125125
padding:0;
126126
margin:0;
127-
border-bottom:1px soild #aaa;
127+
border-bottom:1px solid #aaa;
128128
margin-bottom:5px;
129129
}
130130

docs/config/templates/runnableExample.template.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{# Be aware that we need these extra new lines here or marked will not realise that the <div>
1+
{# Be aware that we need these extra new lines here or marked will not realize that the <div>
22
is HTML and wrap each line in a <p> - thus breaking the HTML #}
33

44
<div>
@@ -24,5 +24,5 @@
2424
</div>
2525
</div>
2626

27-
{# Be aware that we need these extra new lines here or marked will not realise that the <div>
27+
{# Be aware that we need these extra new lines here or marked will not realize that the <div>
2828
above is HTML and wrap each line in a <p> - thus breaking the HTML #}

src/auto/injector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ function annotate(fn, strictDi, name) {
589589
* @description
590590
*
591591
* Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator
592-
* intercepts the creation of a service, allowing it to override or modify the behaviour of the
592+
* intercepts the creation of a service, allowing it to override or modify the behavior of the
593593
* service. The object returned by the decorator may be the original service, or a new service
594594
* object which replaces or wraps and delegates to the original service.
595595
*

test/ng/animateSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe("$animate", function() {
122122
});
123123
inject(function() {
124124
// by using hasOwnProperty we know for sure that the lookup object is an empty object
125-
// instead of inhertiting properties from its original prototype.
125+
// instead of inheriting properties from its original prototype.
126126
expect(provider.$$registeredAnimations.hasOwnProperty).toBeFalsy();
127127

128128
provider.register('.filter', noop);

test/ng/compileSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3933,7 +3933,7 @@ describe('$compile', function() {
39333933

39343934
compile('<div><span my-component ref="name">');
39353935

3936-
//change both sides to the same item withing the same digest cycle
3936+
//change both sides to the same item within the same digest cycle
39373937
componentScope.ref = 'same';
39383938
$rootScope.name = 'same';
39393939
$rootScope.$apply();
@@ -6202,7 +6202,7 @@ describe('$compile', function() {
62026202
var currentCleanData = jQuery.cleanData;
62036203
jQuery.cleanData = function(elems) {
62046204
cleanedCount += elems.length;
6205-
// Don't return the output and expicitly pass only the first parameter
6205+
// Don't return the output and explicitly pass only the first parameter
62066206
// so that we're sure we're not relying on either of them. jQuery UI patch
62076207
// behaves in this way.
62086208
currentCleanData(elems);

test/ng/directive/formSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ describe('form', function() {
885885
expect(doc.hasClass('ng-valid-another')).toBe(true);
886886
expect(doc.hasClass('ng-invalid-another')).toBe(false);
887887

888-
// validators are skipped, e.g. becuase of a parser error
888+
// validators are skipped, e.g. because of a parser error
889889
control.$setValidity('error', null);
890890
control.$setValidity('another', null);
891891
scope.$digest();

test/ng/directive/inputSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('input', function() {
122122
// focus (which visually removes the placeholder value): focusin focus *input*
123123
// blur (which visually creates the placeholder value): focusout *input* blur
124124
//However none of these occur if the placeholder is not visible at the time of the event.
125-
//These tests try simulate various scenerios which do/do-not fire the extra input event
125+
//These tests try simulate various scenarios which do/do-not fire the extra input event
126126

127127
it('should not dirty the model on an input event in response to a placeholder change', function() {
128128
var inputElm = helper.compileInput('<input type="text" placeholder="Test" attr-capture ng-model="unsetValue" name="name" />');

test/ng/directive/ngSwitchSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ describe('ngSwitch', function() {
273273
'</div>')($rootScope);
274274
$rootScope.$apply();
275275

276-
// element now contains only empty repeater. this element is dealocated by local afterEach.
276+
// element now contains only empty repeater. this element is deallocated by local afterEach.
277277
// afterwards a global afterEach will check for leaks in jq data cache object
278278
}));
279279

test/ng/filter/filterSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ describe('Filter: filter', function() {
315315
expect(filter(items, expr, true).length).toBe(1);
316316
expect(filter(items, expr, true)[0]).toBe(items[0]);
317317

318-
// Inherited function proprties
318+
// Inherited function properties
319319
function Expr(text) {
320320
this.text = text;
321321
}

test/ng/httpSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ describe('$http', function() {
352352

353353

354354
it('should not encode @ in url params', function() {
355-
//encodeURIComponent is too agressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
355+
//encodeURIComponent is too aggressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
356356
//with regards to the character set (pchar) allowed in path segments
357357
//so we need this test to make sure that we don't over-encode the params and break stuff
358358
//like buzz api which uses @self
@@ -1085,7 +1085,7 @@ describe('$http', function() {
10851085
};
10861086

10871087
// I'm really sorry for doing this :-D
1088-
// Unfortunatelly I don't know how to trick toString.apply(obj) comparison
1088+
// Unfortunately I don't know how to trick toString.apply(obj) comparison
10891089
spyOn(window, 'isFile').andReturn(true);
10901090

10911091
$httpBackend.expect('POST', '/some', file).respond('');

test/ng/rootScopeSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('Scope', function() {
188188
expect(child1.$$watchersCount).toBe(1);
189189
expect($rootScope.$$watchersCount).toBe(2);
190190

191-
// Execute everything a second time to be sure that calling the remove funciton
191+
// Execute everything a second time to be sure that calling the remove function
192192
// several times, it only decrements the counter once
193193
remove2();
194194
expect(child2.$$watchersCount).toBe(1);

test/ngAnimate/animateCssDriverSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe("ngAnimate $$animateCssDriver", function() {
132132
var doc = $document[0];
133133

134134
// there is one test in here that expects the rootElement
135-
// to superceed the body node
135+
// to supersede the body node
136136
if (!$rootElement[0].contains(doc.body)) {
137137
// we need to do this so that style detection works
138138
jqLite(doc.body).append($rootElement);

test/ngAnimate/animateCssSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ describe("ngAnimate $animateCss", function() {
12611261
expect(element.css(prefix + 'transition-delay')).toBe('3s');
12621262
expect(element.css(prefix + 'transition-duration')).toBe('3s');
12631263

1264-
// Let's flush the remaining amout of time for the timeout timer to kick in
1264+
// Let's flush the remaining amount of time for the timeout timer to kick in
12651265
$timeout.flush(500);
12661266

12671267
expect(element.css(prefix + 'transition-duration')).toBeOneOf('', '0s');
@@ -1294,7 +1294,7 @@ describe("ngAnimate $animateCss", function() {
12941294
expect(element.css(prefix + 'transition-delay')).toBeOneOf('initial', '0s');
12951295
expect(element.css(prefix + 'transition-duration')).toBe('3s');
12961296

1297-
// Let's flush the remaining amout of time for the timeout timer to kick in
1297+
// Let's flush the remaining amount of time for the timeout timer to kick in
12981298
$timeout.flush(500);
12991299

13001300
expect(element.css(prefix + 'transition-duration')).toBeOneOf('', '0s');

test/ngMessages/messagesSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ describe('ngMessages', function() {
471471

472472
var elements = element[0].querySelectorAll('[ng-repeat]');
473473

474-
// all three collections should have atleast one error showing up
474+
// all three collections should have at least one error showing up
475475
expect(messageChildren(element).length).toBe(3);
476476
expect(messageChildren(elements[0]).length).toBe(1);
477477
expect(messageChildren(elements[1]).length).toBe(1);

test/ngScenario/e2e/widgets.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<td>checkbox</td>
4343
<td ng-init="checkbox={'tea': true, 'coffee': false}">
4444
<input type="checkbox" ng-model="checkbox.tea" value="on"/> Tea<br/>
45-
<input type="checkbox" ng-model="checkbox.coffee" value="on"/> Coffe
45+
<input type="checkbox" ng-model="checkbox.coffee" value="on"/> Coffee
4646
</td>
4747
<td>
4848
<pre>checkbox={{checkbox}}</pre>

test/ngTouch/directive/ngClickSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ describe('ngClick (touch)', function() {
315315
expect($rootScope.count1).toBe(1);
316316

317317
time = 90;
318-
// Verify that it is blured so we don't get soft-keyboard
318+
// Verify that it is blurred so we don't get soft-keyboard
319319
element1[0].blur = jasmine.createSpy('blur');
320320
browserTrigger(element1, 'click',{
321321
keys: [],

0 commit comments

Comments
 (0)