diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-27 09:23:03 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-27 09:23:03 +0100 |
commit | be37aed9f5d923fe16e264c6ffc97db08503b791 (patch) | |
tree | 9ab5442c37240da881c2308290f2f5425003ba92 /js/vendor/angular-mocks/angular-mocks.js | |
parent | 1bc1507dd4d92c841e9a56c7d4c241dd7fa1c25f (diff) |
more clientside updates (angular 1.4 beta, es6-shim, momentjs
Diffstat (limited to 'js/vendor/angular-mocks/angular-mocks.js')
-rw-r--r-- | js/vendor/angular-mocks/angular-mocks.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/vendor/angular-mocks/angular-mocks.js b/js/vendor/angular-mocks/angular-mocks.js index 2a411cc38..9f002236e 100644 --- a/js/vendor/angular-mocks/angular-mocks.js +++ b/js/vendor/angular-mocks/angular-mocks.js @@ -1,6 +1,6 @@ /** - * @license AngularJS v1.3.11 - * (c) 2010-2014 Google, Inc. http://angularjs.org + * @license AngularJS v1.4.0-build.3807+sha.b3a9bd3 + * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) { @@ -581,20 +581,20 @@ function jsonStringToDate(string) { tzHour = 0, tzMin = 0; if (match[9]) { - tzHour = int(match[9] + match[10]); - tzMin = int(match[9] + match[11]); + tzHour = toInt(match[9] + match[10]); + tzMin = toInt(match[9] + match[11]); } - date.setUTCFullYear(int(match[1]), int(match[2]) - 1, int(match[3])); - date.setUTCHours(int(match[4] || 0) - tzHour, - int(match[5] || 0) - tzMin, - int(match[6] || 0), - int(match[7] || 0)); + date.setUTCFullYear(toInt(match[1]), toInt(match[2]) - 1, toInt(match[3])); + date.setUTCHours(toInt(match[4] || 0) - tzHour, + toInt(match[5] || 0) - tzMin, + toInt(match[6] || 0), + toInt(match[7] || 0)); return date; } return string; } -function int(str) { +function toInt(str) { return parseInt(str, 10); } |