diff options
| author | Vojta Jina | 2011-07-27 22:24:07 +0200 | 
|---|---|---|
| committer | Vojta Jina | 2011-07-27 22:24:07 +0200 | 
| commit | f39420e7d7aca2a97eaa01853991facf65dcbd6e (patch) | |
| tree | fe6df3763a53a3c66d9db317cf1253b96eb4c638 | |
| parent | 72e46548b869335705735d30dd3d2709a1ea3b93 (diff) | |
| download | angular.js-f39420e7d7aca2a97eaa01853991facf65dcbd6e.tar.bz2 | |
style(): fix couple of missing semi-colons
| -rw-r--r-- | src/Angular.js | 2 | ||||
| -rw-r--r-- | src/Browser.js | 2 | ||||
| -rw-r--r-- | src/angular-mocks.js | 4 | ||||
| -rw-r--r-- | src/filters.js | 2 | ||||
| -rw-r--r-- | test/AngularSpec.js | 2 | ||||
| -rw-r--r-- | test/angular-mocksSpec.js | 4 | 
6 files changed, 8 insertions, 8 deletions
| diff --git a/src/Angular.js b/src/Angular.js index aeb1db4f..327768e7 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -1024,4 +1024,4 @@ var version = {    minor: "NG_VERSION_MINOR",    dot: "NG_VERSION_DOT",    codeName: '"NG_VERSION_CODENAME"' -} +}; diff --git a/src/Browser.js b/src/Browser.js index de3e76cc..04025308 100644 --- a/src/Browser.js +++ b/src/Browser.js @@ -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 { diff --git a/src/angular-mocks.js b/src/angular-mocks.js index 4b6f28f4..5d56ae27 100644 --- a/src/angular-mocks.js +++ b/src/angular-mocks.js @@ -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(); diff --git a/src/filters.js b/src/filters.js index 7239b9f6..1c265430 100644 --- a/src/filters.js +++ b/src/filters.js @@ -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, diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 98554199..0166503c 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -635,5 +635,5 @@ describe('angular', function(){        expect(version.dot).toBe("NG_VERSION_DOT");        expect(version.codeName).toBe('"NG_VERSION_CODENAME"');      }); -  }) +  });  }); diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index a30c3497..f24f6e57 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -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');      });    });  }); | 
