The code should be updated now.


On 17 August 2013 22:14, Douglas Stockwell <notifications@github.com> wrote:

> In web-animations.js:
>
> > +        isDefinedAndNotNull(this._onHandlers[type]);
> > +  },
> > +  _callHandlers: function(type, eventFunction) {
> > +    var onIndex =  -1;
> > +    if (isDefinedAndNotNull(this._onHandlers[type])) {
> > +      onIndex =  this._onHandlers[type].index;
> > +    }
> > +    var handlersLength = (this._handlers[type] || []).length;
> > +    for (var i = 0; i < handlersLength; i++) {
> > +      if (onIndex === i) {
> > +        this._onHandlers[type].callback(eventFunction());
> > +      }
> > +      this._handlers[type][i].call(this, eventFunction());
> > +    }
> > +    if (onIndex >= handlersLength) {
> > +      this._onHandlers[type].callback(eventFunction());
>
> I think the comment above got lost.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/web-animations/web-animations-js/pull/420/files#r5828857>
> .
>