mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
style(): fix couple of missing semi-colons
This commit is contained in:
parent
72e46548b8
commit
f39420e7d7
6 changed files with 8 additions and 8 deletions
|
|
@ -1024,4 +1024,4 @@ var version = {
|
|||
minor: "NG_VERSION_MINOR",
|
||||
dot: "NG_VERSION_DOT",
|
||||
codeName: '"NG_VERSION_CODENAME"'
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ function Browser(window, document, body, XHR, $log) {
|
|||
var script = self.addJs(url.replace('JSON_CALLBACK', callbackId));
|
||||
window[callbackId] = function(data){
|
||||
delete window[callbackId];
|
||||
body[0].removeChild(script)
|
||||
body[0].removeChild(script);
|
||||
completeOutstandingRequest(callback, 200, data);
|
||||
};
|
||||
} else {
|
||||
|
|
|
|||
4
src/angular-mocks.js
vendored
4
src/angular-mocks.js
vendored
|
|
@ -286,7 +286,7 @@ function MockBrowser() {
|
|||
if (fnIndex) {
|
||||
self.deferredFns.splice(fnIndex, 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
self.defer.flush = function(delay) {
|
||||
|
|
@ -465,7 +465,7 @@ function TzDate(offset, timestamp, toStringVal) {
|
|||
|
||||
this.toString = function() {
|
||||
return toStringVal;
|
||||
}
|
||||
};
|
||||
|
||||
this.toLocaleDateString = function() {
|
||||
return this.date.toLocaleDateString();
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ var DECIMAL_SEP = '.';
|
|||
angularFilter.number = function(number, fractionSize) {
|
||||
if (isNaN(number) || !isFinite(number)) return '';
|
||||
return formatNumber(number, fractionSize, 0);
|
||||
}
|
||||
};
|
||||
|
||||
function formatNumber(number, fractionSize, type) {
|
||||
var isNegative = number < 0,
|
||||
|
|
|
|||
|
|
@ -635,5 +635,5 @@ describe('angular', function(){
|
|||
expect(version.dot).toBe("NG_VERSION_DOT");
|
||||
expect(version.codeName).toBe('"NG_VERSION_CODENAME"');
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
|
|||
4
test/angular-mocksSpec.js
vendored
4
test/angular-mocksSpec.js
vendored
|
|
@ -130,7 +130,7 @@ describe('mocks', function(){
|
|||
|
||||
|
||||
it('should throw error when no third param but toString called', function() {
|
||||
expect(function() { new TzDate(0,0).toString() }).
|
||||
expect(function() { new TzDate(0,0).toString(); }).
|
||||
toThrow('Method \'toString\' is not implemented in the TzDate mock');
|
||||
});
|
||||
});
|
||||
|
|
@ -236,7 +236,7 @@ describe('mocks', function(){
|
|||
var rootScope = angular.scope(),
|
||||
exHandler = rootScope.$service('$exceptionHandler');
|
||||
|
||||
expect(function() { exHandler('myException') }).toThrow('myException');
|
||||
expect(function() { exHandler('myException'); }).toThrow('myException');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue