@dillonkearns/elm-graphql
Version:
<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">
3 lines (2 loc) • 798 B
JavaScript
;function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),_this$1=void 0,getNotifier=function(t,e){return _newArrowCheck(this,_this$1),function(i){return _newArrowCheck(this,_this$1),i[t]&&i[t](e)}.bind(this)}.bind(void 0),getHandlerName=function(t){return _newArrowCheck(this,_this$1),"on"+String(t)}.bind(void 0),notify=function(t,e,i){return _newArrowCheck(this,_this$1),t.observers.forEach(getNotifier(getHandlerName(e),i))}.bind(void 0),_this=void 0,notifyall=function(t,e,i){return _newArrowCheck(this,_this),t.forEach(function(t){return _newArrowCheck(this,_this),notify(t,e,i)}.bind(this))}.bind(void 0);module.exports=notifyall;
//# sourceMappingURL=notifyAll.js.map