mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
Added missing semi-colons
So that my eclipse stops complaining...
This commit is contained in:
parent
faf29dd047
commit
9312bed472
5 changed files with 9 additions and 9 deletions
|
|
@ -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(/\/?#$/, '');
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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'});
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
|
@ -60,7 +60,7 @@ angular.service('$log', function() {
|
|||
function $exceptionHandlerMockFactory() {
|
||||
var mockHandler = function(e) {
|
||||
mockHandler.errors.push(e);
|
||||
}
|
||||
};
|
||||
mockHandler.errors = [];
|
||||
|
||||
return mockHandler;
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue