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",
dot: "NG_VERSION_DOT",
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));
window[callbackId] = function(data){
delete window[callbackId];
body[0].removeChild(script)
body[0].removeChild(script);
completeOutstandingRequest(callback, 200, data);
};
} else {

View File

@@ -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();

View File

@@ -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,

View File

@@ -635,5 +635,5 @@ describe('angular', function(){
expect(version.dot).toBe("NG_VERSION_DOT");
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() {
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');
});
});
});