Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f85c82a

Browse files
Vojta JinaIgorMinar
Vojta Jina
authored andcommitted
Fix some typos, missing semi-colons, etc...
This is a combination of 4 commits: * Fix some small typos, missing semi-colons, etc. * Fix comment for angular.scenario.SpecRunner.run method * Fixed some missing semi-colons in cookbook * Fixed missing semi-colon in nodeserver/server.js
1 parent 35bb198 commit f85c82a

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

docs/cookbook.deeplinking.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The two partials are defined in the following URLs:
105105
# Things to notice
106106

107107
* Routes are defined in the `AppCntl` class. The initialization of the controller causes the
108-
initialization of the {@link angular.service.$rouet $route} service with the proper URL routes.
108+
initialization of the {@link angular.service.$route $route} service with the proper URL routes.
109109
* The {@link angular.service.$route $route} service then watches the URL and instantiates the
110110
appropriate controller when the URL changes.
111111
* The {@link angular.widget.ng:view ng:view} widget loads the view when the URL changes. It also

docs/cookbook.form.ngdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ allow a user to enter data.
6868

6969
it('should validate zip', function(){
7070
expect(using('.example').element(':input[name=user.address.zip]').attr('className'))
71-
.not().toMatch(/ng-validation-error/)
71+
.not().toMatch(/ng-validation-error/);
7272

7373
using('.example').input('user.address.zip').enter('abc');
7474

7575
expect(using('.example').element(':input[name=user.address.zip]').attr('className'))
76-
.toMatch(/ng-validation-error/)
76+
.toMatch(/ng-validation-error/);
7777
});
7878

7979
it('should validate state', function(){
8080
expect(using('.example').element(':input[name=user.address.state]').attr('className'))
81-
.not().toMatch(/ng-validation-error/)
81+
.not().toMatch(/ng-validation-error/);
8282

8383
using('.example').input('user.address.state').enter('XXX');
8484

8585
expect(using('.example').element(':input[name=user.address.state]').attr('className'))
86-
.toMatch(/ng-validation-error/)
86+
.toMatch(/ng-validation-error/);
8787
});
8888
</doc:scenario>
8989
</doc:example>

lib/nodeserver/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ StaticServlet.prototype.handleRequest = function(req, res) {
9797
return self.sendDirectory_(req, res, path);
9898
return self.sendFile_(req, res, path);
9999
});
100-
}
100+
};
101101

102102
StaticServlet.prototype.sendError_ = function(req, res, error) {
103103
res.writeHead(500, {

src/scenario/SpecRunner.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ angular.scenario.SpecRunner = function() {
1616
* based on the describe nesting.
1717
*
1818
* @param {Object} spec A spec object
19-
* @param {Object} specDone An angular.scenario.Application instance
20-
* @param {Function} Callback function that is called when the spec finshes.
19+
* @param {Function} specDone function that is called when the spec finshes. Function(error, index)
2120
*/
2221
angular.scenario.SpecRunner.prototype.run = function(spec, specDone) {
2322
var self = this;

src/widgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ angularWidget('option', function(){
627627
it('should load date filter', function(){
628628
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
629629
});
630-
it('should change to hmtl filter', function(){
630+
it('should change to html filter', function(){
631631
select('url').option('angular.filter.html.html');
632632
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
633633
});

test/scenario/dslSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe("angular.scenario.dsl", function() {
138138
hashSearch: {x: 2},
139139
hashPath: '/bar',
140140
search: {foo: 10}
141-
}
141+
};
142142
} else {
143143
throw new Error('unknown service id ' + serviceId);
144144
}

test/widgetsSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ describe("widget", function(){
901901

902902
rootScope.ChildCtrl = function() {
903903
this.log.push('child');
904-
}
904+
};
905905

906906
$location.updateHash('/foo');
907907
$browser.xhr.expectGET('viewPartial.html').

0 commit comments

Comments
 (0)