UNPKG

@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) 686 B
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";var _this$1=void 0,getNotifier=function(i,r){return _newArrowCheck(this,_this$1),function(t){return _newArrowCheck(this,_this$1),t[i]&&t[i](r)}.bind(this)}.bind(void 0),getHandlerName=function(i){return _newArrowCheck(this,_this$1),"on"+String(i)}.bind(void 0),notify=function(i,r,t){return _newArrowCheck(this,_this$1),i.observers.forEach(getNotifier(getHandlerName(r),t))}.bind(void 0),_this=void 0,notifyall=function(i,r,t){return _newArrowCheck(this,_this),i.forEach(function(i){return _newArrowCheck(this,_this),notify(i,r,t)}.bind(this))}.bind(void 0);export default notifyall; //# sourceMappingURL=notifyAll.js.map