style(): fix couple of missing semi-colons

This commit is contained in:
Vojta Jina
2011-07-27 22:24:07 +02:00
parent 72e46548b8
commit f39420e7d7
6 changed files with 8 additions and 8 deletions

View File

@@ -1024,4 +1024,4 @@ var version = {
minor: "NG_VERSION_MINOR", minor: "NG_VERSION_MINOR",
dot: "NG_VERSION_DOT", dot: "NG_VERSION_DOT",
codeName: '"NG_VERSION_CODENAME"' codeName: '"NG_VERSION_CODENAME"'
} };

View File

@@ -103,7 +103,7 @@ function Browser(window, document, body, XHR, $log) {
var script = self.addJs(url.replace('JSON_CALLBACK', callbackId)); var script = self.addJs(url.replace('JSON_CALLBACK', callbackId));
window[callbackId] = function(data){ window[callbackId] = function(data){
delete window[callbackId]; delete window[callbackId];
body[0].removeChild(script) body[0].removeChild(script);
completeOutstandingRequest(callback, 200, data); completeOutstandingRequest(callback, 200, data);
}; };
} else { } else {

View File

@@ -286,7 +286,7 @@ function MockBrowser() {
if (fnIndex) { if (fnIndex) {
self.deferredFns.splice(fnIndex, 1); self.deferredFns.splice(fnIndex, 1);
} }
} };
self.defer.flush = function(delay) { self.defer.flush = function(delay) {
@@ -465,7 +465,7 @@ function TzDate(offset, timestamp, toStringVal) {
this.toString = function() { this.toString = function() {
return toStringVal; return toStringVal;
} };
this.toLocaleDateString = function() { this.toLocaleDateString = function() {
return this.date.toLocaleDateString(); return this.date.toLocaleDateString();

View File

@@ -135,7 +135,7 @@ var DECIMAL_SEP = '.';
angularFilter.number = function(number, fractionSize) { angularFilter.number = function(number, fractionSize) {
if (isNaN(number) || !isFinite(number)) return ''; if (isNaN(number) || !isFinite(number)) return '';
return formatNumber(number, fractionSize, 0); return formatNumber(number, fractionSize, 0);
} };
function formatNumber(number, fractionSize, type) { function formatNumber(number, fractionSize, type) {
var isNegative = number < 0, var isNegative = number < 0,

View File

@@ -635,5 +635,5 @@ describe('angular', function(){
expect(version.dot).toBe("NG_VERSION_DOT"); expect(version.dot).toBe("NG_VERSION_DOT");
expect(version.codeName).toBe('"NG_VERSION_CODENAME"'); expect(version.codeName).toBe('"NG_VERSION_CODENAME"');
}); });
}) });
}); });

View File

@@ -130,7 +130,7 @@ describe('mocks', function(){
it('should throw error when no third param but toString called', 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'); toThrow('Method \'toString\' is not implemented in the TzDate mock');
}); });
}); });
@@ -236,7 +236,7 @@ describe('mocks', function(){
var rootScope = angular.scope(), var rootScope = angular.scope(),
exHandler = rootScope.$service('$exceptionHandler'); exHandler = rootScope.$service('$exceptionHandler');
expect(function() { exHandler('myException') }).toThrow('myException'); expect(function() { exHandler('myException'); }).toThrow('myException');
}); });
}); });
}); });