Commit 266ce040 authored by bingchuan's avatar bingchuan

[dev] version 2.18.4

parent db54ffc9
/*! /*!
* angular-translate - v2.13.1 - 2016-12-06 * angular-translate - v2.18.4 - 2021-01-14
* *
* Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT * Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
*/ */
(function (root, factory) { (function (root, factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
define([], function () { define([], function () {
return (factory()); return (factory());
}); });
} else if (typeof exports === 'object') { } else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but // Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports, // only CommonJS-like environments that support module.exports,
// like Node. // like Node.
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
} }
}(this, function () { }(this, function () {
$translateLocalStorageFactory.$inject = ['$window', '$translateCookieStorage']; $translateLocalStorageFactory.$inject = ['$window', '$translateCookieStorage'];
angular.module('pascalprecht.translate') angular.module('pascalprecht.translate')
/** /**
* @ngdoc object * @ngdoc object
* @name pascalprecht.translate.$translateLocalStorage * @name pascalprecht.translate.$translateLocalStorage
* @requires $window * @requires $window
...@@ -33,9 +33,9 @@ angular.module('pascalprecht.translate') ...@@ -33,9 +33,9 @@ angular.module('pascalprecht.translate')
* to use localStorage as storage. * to use localStorage as storage.
* *
*/ */
.factory('$translateLocalStorage', $translateLocalStorageFactory); .factory('$translateLocalStorage', $translateLocalStorageFactory);
function $translateLocalStorageFactory($window, $translateCookieStorage) { function $translateLocalStorageFactory($window, $translateCookieStorage) {
'use strict'; 'use strict';
...@@ -115,9 +115,9 @@ function $translateLocalStorageFactory($window, $translateCookieStorage) { ...@@ -115,9 +115,9 @@ function $translateLocalStorageFactory($window, $translateCookieStorage) {
} }
var $translateLocalStorage = hasLocalStorageSupport ? localStorageAdapter : $translateCookieStorage; var $translateLocalStorage = hasLocalStorageSupport ? localStorageAdapter : $translateCookieStorage;
return $translateLocalStorage; return $translateLocalStorage;
} }
$translateLocalStorageFactory.displayName = '$translateLocalStorageFactory'; $translateLocalStorageFactory.displayName = '$translateLocalStorageFactory';
return 'pascalprecht.translate'; return 'pascalprecht.translate';
})); }));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment