-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcacherp.min.js
More file actions
8 lines (8 loc) · 1.29 KB
/
Copy pathcacherp.min.js
File metadata and controls
8 lines (8 loc) · 1.29 KB
1
2
3
4
5
6
7
8
/**
* angular-hu-cacherp v1.1.0
* https://github.com/angular-hu/angular-hu
* (c) 2015 Telefónica I+D - http://www.tid.es
* @license MIT
*/
!function(e){function r(e,r){return function(n,t,u){u=u||e.get("$cacheFactory");var c=u(n,t),a=t&&t.removableParams||[];return r(c,a)}}function n(r){"use strict";function n(e){var r=e.split("=");return{key:r[0],value:r[1]}}function t(e,r){return e.indexOf(r.key)<0}function u(e,r){var n="undefined"==typeof r.value?r.key:r.key+"="+r.value;return e.concat(n)}function c(e,r){return e.key>r.key?1:-1}function a(r,a){o.href=a;var i=0===o.search.indexOf("?")?o.search.substring(1):o.search;return i&&(o.search=i.split("&").map(n).filter(e.bind(null,t,r)).sort(c).reduce(u,[]).join("&")),"?"===o.href.substr(o.href.length-1)?o.href.substring(0,o.href.length-1):o.href}function i(r,n){var t=r.get,u=r.put,c=r.remove,i=r.info,o=e.bind(null,a,n);return r.get=function(e){return t.call(r,o(e))},r.put=function(e,n){return u.call(r,o(e),n)},r.remove=function(e){return c.call(r,o(e))},r.info=function(){return e.extend(i.call(r),{removableParams:n})},r}var o=r[0].createElement("a");return i}e.module("httpu.cacherp",[]).factory("huCacherpFactory",r).factory("huCacherp",n),r.$inject=["$injector","huCacherp"],n.$inject=["$document"]}(window.angular);
//# sourceMappingURL=cacherp.min.js.map