forked from wendux/ajax-hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajaxhook.core.min.js
2 lines (2 loc) · 2.01 KB
/
ajaxhook.core.min.js
1
2
!function(t,n){for(var r in n)t[r]=n[r]}(window,function(t){function n(o){if(r[o])return r[o].exports;var e=r[o]={i:o,l:!1,exports:{}};return t[o].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,o){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=2)}([function(t,n,r){"use strict";function o(t,n){var r={};for(var o in t)r[o]=t[o];return r.target=r.currentTarget=n,r}function e(t){function n(n){return function(){var r=this.hasOwnProperty(n+"_")?this[n+"_"]:this.xhr[n],o=(t[n]||{}).getter;return o&&o(r,this)||r}}function r(n){return function(r){var e=this.xhr,i=this,u=t[n];if("on"===n.substring(0,2))i[n+"_"]=r,e[n]=function(u){u=o(u,i),t[n]&&t[n].call(i,e,u)||r.call(i,u)};else{var c=(u||{}).setter;r=c&&c(r,i)||r,this[n+"_"]=r;try{e[n]=r}catch(t){}}}}function e(n){return function(){var r=[].slice.call(arguments);if(t[n]){var o=t[n].call(this,r,this.xhr);if(o)return o}return this.xhr[n].apply(this.xhr,r)}}return window[c]=window[c]||XMLHttpRequest,XMLHttpRequest=function(){var t=new window[c];for(var o in t){var i="";try{i=u(t[o])}catch(t){}"function"===i?this[o]=e(o):Object.defineProperty(this,o,{get:n(o),set:r(o),enumerable:!0})}var f=this;t.getProxy=function(){return f},this.xhr=t},window[c]}function i(){window[c]&&(XMLHttpRequest=window[c]),window[c]=void 0}Object.defineProperty(n,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n.configEvent=o,n.hook=e,n.unHook=i;var c="_rxhr"},,function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ah=void 0;var o=r(0);n.ah={hook:o.hook,unHook:o.unHook}}]));
//# sourceMappingURL=ajaxhook.core.min.js.map