1f78b66102aa4e85aed2f3d7f9b12e9c.json
1.97 KB
{"ast":null,"code":"import ReactDOM from 'react-dom';\nexport default function addEventListenerWrap(target, eventType, cb, option) {\n /* eslint camelcase: 2 */\n var callback = ReactDOM.unstable_batchedUpdates ? function run(e) {\n ReactDOM.unstable_batchedUpdates(cb, e);\n } : cb;\n\n if (target.addEventListener) {\n target.addEventListener(eventType, callback, option);\n }\n\n return {\n remove: function remove() {\n if (target.removeEventListener) {\n target.removeEventListener(eventType, callback);\n }\n }\n };\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-util/es/Dom/addEventListener.js"],"names":["ReactDOM","addEventListenerWrap","target","eventType","cb","option","callback","unstable_batchedUpdates","run","e","addEventListener","remove","removeEventListener"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,WAArB;AACA,eAAe,SAASC,oBAAT,CAA8BC,MAA9B,EAAsCC,SAAtC,EAAiDC,EAAjD,EAAqDC,MAArD,EAA6D;AAC1E;AACA,MAAIC,QAAQ,GAAGN,QAAQ,CAACO,uBAAT,GAAmC,SAASC,GAAT,CAAaC,CAAb,EAAgB;AAChET,IAAAA,QAAQ,CAACO,uBAAT,CAAiCH,EAAjC,EAAqCK,CAArC;AACD,GAFc,GAEXL,EAFJ;;AAIA,MAAIF,MAAM,CAACQ,gBAAX,EAA6B;AAC3BR,IAAAA,MAAM,CAACQ,gBAAP,CAAwBP,SAAxB,EAAmCG,QAAnC,EAA6CD,MAA7C;AACD;;AAED,SAAO;AACLM,IAAAA,MAAM,EAAE,SAASA,MAAT,GAAkB;AACxB,UAAIT,MAAM,CAACU,mBAAX,EAAgC;AAC9BV,QAAAA,MAAM,CAACU,mBAAP,CAA2BT,SAA3B,EAAsCG,QAAtC;AACD;AACF;AALI,GAAP;AAOD","sourcesContent":["import ReactDOM from 'react-dom';\nexport default function addEventListenerWrap(target, eventType, cb, option) {\n /* eslint camelcase: 2 */\n var callback = ReactDOM.unstable_batchedUpdates ? function run(e) {\n ReactDOM.unstable_batchedUpdates(cb, e);\n } : cb;\n\n if (target.addEventListener) {\n target.addEventListener(eventType, callback, option);\n }\n\n return {\n remove: function remove() {\n if (target.removeEventListener) {\n target.removeEventListener(eventType, callback);\n }\n }\n };\n}"]},"metadata":{},"sourceType":"module"}