Skip to content

Commit 0dc35ef

Browse files
philwestwellcaitp
authored andcommitted
docs(*): fix its/it's grammar
Closes angular#7580
1 parent 4a57b15 commit 0dc35ef

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4353,7 +4353,7 @@ behavior and migrate your controllers one at a time: <https://gist.github.com/16
43534353
([commit](https://github.com/angular/angular.js/commit/78656fe0dfc99c341ce02d71e7006e9c05b1fe3f))
43544354
43554355
- fn signature change for change listener functions registered via `scope.$watch` - this means that
4356-
the scope object can be listed in the arguments list only if its needed and skipped otherwise.
4356+
the scope object can be listed in the arguments list only if it's needed and skipped otherwise.
43574357
([commit](https://github.com/angular/angular.js/commit/0196411dbe179afe24f4faa6d6503ff3f69472da))
43584358
43594359
- before: `scope.$watch('someModel', function(scope, newVal, oldVal) {})`
@@ -5287,7 +5287,7 @@ with the `$route` service
52875287
- docs app UI polishing with dual scrolling and other improvements
52885288
52895289
### Bug Fixes
5290-
- `select` widget now behaves correctly when it's `option` items are created via `ng:repeat`
5290+
- `select` widget now behaves correctly when its `option` items are created via `ng:repeat`
52915291
(issue #170)
52925292
- fix for async xhr cache issue #152 by adding `$browser.defer` and `$defer` service
52935293

src/ng/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ var $AnimateProvider = ['$provide', function($provide) {
222222
* @function
223223
* @description Adds and/or removes the given CSS classes to and from the element.
224224
* Once complete, the done() callback will be fired (if provided).
225-
* @param {DOMElement} element the element which will it's CSS classes changed
225+
* @param {DOMElement} element the element which will have its CSS classes changed
226226
* removed from it
227227
* @param {string} add the CSS classes which will be added to the element
228228
* @param {string} remove the CSS class which will be removed from the element

src/ng/directive/ngIf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var ngIfDirective = ['$animate', function($animate) {
9494
clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');
9595
// Note: We only need the first/last node of the cloned nodes.
9696
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
97-
// by a directive with templateUrl when it's template arrives.
97+
// by a directive with templateUrl when its template arrives.
9898
block = {
9999
clone: clone
100100
};

src/ng/directive/ngRepeat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
370370
previousNode = clone;
371371
// Note: We only need the first/last node of the cloned nodes.
372372
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
373-
// by a directive with templateUrl when it's template arrives.
373+
// by a directive with templateUrl when its template arrives.
374374
block.clone = clone;
375375
nextBlockMap[block.id] = block;
376376
updateScope(block.scope, index);

src/ng/sce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ function $SceDelegateProvider() {
543543
* - `**`: matches zero or more occurrences of *any* character. As such, it's not
544544
* not appropriate to use in for a scheme, domain, etc. as it would match too much. (e.g.
545545
* http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
546-
* not have been the intention.) It's usage at the very end of the path is ok. (e.g.
546+
* not have been the intention.) Its usage at the very end of the path is ok. (e.g.
547547
* http://foo.example.com/templates/**).
548548
* - **RegExp** (*see caveat below*)
549549
* - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax

src/ngAnimate/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ angular.module('ngAnimate', ['ng'])
795795
* | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation" |
796796
* | 9. The doneCallback() callback is fired (if provided) | class="my-animation" |
797797
*
798-
* @param {DOMElement} element the element which will its CSS classes changed
798+
* @param {DOMElement} element the element which will have its CSS classes changed
799799
* removed from it
800800
* @param {string} add the CSS classes which will be added to the element
801801
* @param {string} remove the CSS class which will be removed from the element

test/jqLiteSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ describe('jqLite', function() {
231231
dealoc(element);
232232
});
233233

234-
it('should retrieve scope attached to the html element if its requested on the document',
234+
it('should retrieve scope attached to the html element if it\'s requested on the document',
235235
function() {
236236
var doc = jqLite(document),
237237
html = doc.find('html'),
@@ -301,7 +301,7 @@ describe('jqLite', function() {
301301
});
302302

303303

304-
it('should retrieve injector attached to the html element if its requested on document',
304+
it('should retrieve injector attached to the html element if it\'s requested on document',
305305
function() {
306306
var doc = jqLite(document),
307307
html = doc.find('html'),

test/ng/compileSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ describe('$compile', function() {
29622962
$rootScope.name = 'same';
29632963
$rootScope.$apply();
29642964

2965-
//change origin back to it's previous value
2965+
//change origin back to its previous value
29662966
$rootScope.name = 'aaa';
29672967
$rootScope.$apply();
29682968

test/ng/directive/ngIncludeSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ describe('ngInclude and transcludes', function() {
506506
});
507507
});
508508

509-
it("should compile it's content correctly (although we remove it later)", function() {
509+
it("should compile its content correctly (although we remove it later)", function() {
510510
var testElement;
511511
module(function() {
512512
directive('test', function() {

test/ng/locationSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ describe('$location', function() {
15431543
});
15441544

15451545

1546-
it('should not strip stuff from path just because it looks like Windows drive when its not',
1546+
it('should not strip stuff from path just because it looks like Windows drive when it\'s not',
15471547
function() {
15481548
location = new LocationHashbangUrl('http://server/pre/index.html', '#');
15491549

0 commit comments

Comments
 (0)