mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-29 05:15:38 +08:00
style(): fix couple of missing semi-colons
This commit is contained in:
@@ -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"'
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
4
src/angular-mocks.js
vendored
4
src/angular-mocks.js
vendored
@@ -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();
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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"');
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
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() {
|
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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user