mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
docs(*): fix its/it's grammar
This commit is contained in:
committed by
Caitlin Potter
parent
2d9e96772f
commit
d18d5f57c2
@@ -3708,7 +3708,7 @@ behavior and migrate your controllers one at a time: <https://gist.github.com/16
|
||||
([commit](https://github.com/angular/angular.js/commit/78656fe0dfc99c341ce02d71e7006e9c05b1fe3f))
|
||||
|
||||
- fn signature change for change listener functions registered via `scope.$watch` - this means that
|
||||
the scope object can be listed in the arguments list only if its needed and skipped otherwise.
|
||||
the scope object can be listed in the arguments list only if it's needed and skipped otherwise.
|
||||
([commit](https://github.com/angular/angular.js/commit/0196411dbe179afe24f4faa6d6503ff3f69472da))
|
||||
|
||||
- before: `scope.$watch('someModel', function(scope, newVal, oldVal) {})`
|
||||
@@ -4642,7 +4642,7 @@ with the `$route` service
|
||||
- docs app UI polishing with dual scrolling and other improvements
|
||||
|
||||
### Bug Fixes
|
||||
- `select` widget now behaves correctly when it's `option` items are created via `ng:repeat`
|
||||
- `select` widget now behaves correctly when its `option` items are created via `ng:repeat`
|
||||
(issue #170)
|
||||
- fix for async xhr cache issue #152 by adding `$browser.defer` and `$defer` service
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ var $AnimateProvider = ['$provide', function($provide) {
|
||||
* @function
|
||||
* @description Adds and/or removes the given CSS classes to and from the element.
|
||||
* Once complete, the done() callback will be fired (if provided).
|
||||
* @param {DOMElement} element the element which will it's CSS classes changed
|
||||
* @param {DOMElement} element the element which will have its CSS classes changed
|
||||
* removed from it
|
||||
* @param {string} add the CSS classes which will be added to the element
|
||||
* @param {string} remove the CSS class which will be removed from the element
|
||||
|
||||
@@ -94,7 +94,7 @@ var ngIfDirective = ['$animate', function($animate) {
|
||||
clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');
|
||||
// Note: We only need the first/last node of the cloned nodes.
|
||||
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
|
||||
// by a directive with templateUrl when it's template arrives.
|
||||
// by a directive with templateUrl when its template arrives.
|
||||
block = {
|
||||
clone: clone
|
||||
};
|
||||
|
||||
@@ -375,7 +375,7 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
|
||||
block.scope = childScope;
|
||||
// Note: We only need the first/last node of the cloned nodes.
|
||||
// However, we need to keep the reference to the jqlite wrapper as it might be changed later
|
||||
// by a directive with templateUrl when it's template arrives.
|
||||
// by a directive with templateUrl when its template arrives.
|
||||
block.clone = clone;
|
||||
nextBlockMap[block.id] = block;
|
||||
});
|
||||
|
||||
@@ -543,7 +543,7 @@ function $SceDelegateProvider() {
|
||||
* - `**`: matches zero or more occurrences of *any* character. As such, it's not
|
||||
* not appropriate to use in for a scheme, domain, etc. as it would match too much. (e.g.
|
||||
* http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
|
||||
* not have been the intention.) It's usage at the very end of the path is ok. (e.g.
|
||||
* not have been the intention.) Its usage at the very end of the path is ok. (e.g.
|
||||
* http://foo.example.com/templates/**).
|
||||
* - **RegExp** (*see caveat below*)
|
||||
* - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax
|
||||
|
||||
@@ -229,7 +229,7 @@ describe('jqLite', function() {
|
||||
dealoc(element);
|
||||
});
|
||||
|
||||
it('should retrieve scope attached to the html element if its requested on the document',
|
||||
it('should retrieve scope attached to the html element if it\'s requested on the document',
|
||||
function() {
|
||||
var doc = jqLite(document),
|
||||
html = doc.find('html'),
|
||||
@@ -299,7 +299,7 @@ describe('jqLite', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should retrieve injector attached to the html element if its requested on document',
|
||||
it('should retrieve injector attached to the html element if it\'s requested on document',
|
||||
function() {
|
||||
var doc = jqLite(document),
|
||||
html = doc.find('html'),
|
||||
|
||||
@@ -2739,7 +2739,7 @@ describe('$compile', function() {
|
||||
$rootScope.name = 'same';
|
||||
$rootScope.$apply();
|
||||
|
||||
//change origin back to it's previous value
|
||||
//change origin back to its previous value
|
||||
$rootScope.name = 'aaa';
|
||||
$rootScope.$apply();
|
||||
|
||||
|
||||
@@ -504,7 +504,7 @@ describe('ngInclude and transcludes', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it("should compile it's content correctly (although we remove it later)", function() {
|
||||
it("should compile its content correctly (although we remove it later)", function() {
|
||||
var testElement;
|
||||
module(function() {
|
||||
directive('test', function() {
|
||||
|
||||
@@ -1541,7 +1541,7 @@ describe('$location', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should not strip stuff from path just because it looks like Windows drive when its not',
|
||||
it('should not strip stuff from path just because it looks like Windows drive when it\'s not',
|
||||
function() {
|
||||
location = new LocationHashbangUrl('http://server/pre/index.html', '#');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user