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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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('');

0 commit comments

Comments
 (0)