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

Fix missing semi-colons #313

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Route.prototype = {

params = params || {};
forEach(this.urlParams, function(_, urlParam){
encodedVal = encodeUriSegment(params[urlParam] || self.defaults[urlParam] || "")
encodedVal = encodeUriSegment(params[urlParam] || self.defaults[urlParam] || "");
url = url.replace(new RegExp(":" + urlParam + "(\\W)"), encodedVal + "$1");
});
url = url.replace(/\/?#$/, '');
Expand Down
2 changes: 1 addition & 1 deletion test/AngularSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ describe('angular', function(){
it('should compile only the element specified via autobind', function() {
dom.getElementById = function() {
return this.childNodes[1];
}
};

angularInit({autobind: 'child'}, dom);

Expand Down
2 changes: 1 addition & 1 deletion test/ResourceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("resource", function() {
var R = resource.route('/Path/:a');
xhr.expectGET('/Path/doh@foo?bar=baz@1').respond({});
R.get({a: 'doh@foo', bar: 'baz@1'});
})
});

it("should build resource with default param", function(){
xhr.expectGET('/Order/123/Line/456.visa?minimum=0.05').respond({id:'abc'});
Expand Down
10 changes: 5 additions & 5 deletions test/mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
* See {@link angular.mock} for more info on angular mocks.
*/
var $logMock = {
log: function(){ $logMock.log.logs.push(arguments) },
warn: function(){ $logMock.warn.logs.push(arguments) },
info: function(){ $logMock.info.logs.push(arguments) },
error: function(){ $logMock.error.logs.push(arguments) }
log: function(){ $logMock.log.logs.push(arguments); },
warn: function(){ $logMock.warn.logs.push(arguments); },
info: function(){ $logMock.info.logs.push(arguments); },
error: function(){ $logMock.error.logs.push(arguments); }
};
$logMock.log.logs = [];
$logMock.warn.logs = [];
Expand Down Expand Up @@ -60,7 +60,7 @@ angular.service('$log', function() {
function $exceptionHandlerMockFactory() {
var mockHandler = function(e) {
mockHandler.errors.push(e);
}
};
mockHandler.errors = [];

return mockHandler;
Expand Down
2 changes: 1 addition & 1 deletion test/service/invalidWidgetsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('$invalidWidgets', function() {


it("should count number of invalid widgets", function(){
var element = jqLite('<input name="price" ng:required ng:validate="number"></input>')
var element = jqLite('<input name="price" ng:required ng:validate="number"></input>');
jqLite(document.body).append(element);
scope = compile(element)();
var $invalidWidgets = scope.$service('$invalidWidgets');
Expand Down