ryan neptune

Results 80 comments of ryan neptune

[In that pattern `root` equals the `this` context from the outer function.](https://github.com/ryanve/response.js/blob/0.9.1/response.js#L7-L11) If webpack somehow forces it to run in [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) then `this === undefined`

@kierzniak Thx for posting that solution! Do you think that changing [line 9](https://github.com/ryanve/response.js/blob/701e98d157b8f4cfca70984947750e88f6e6f952/response.js#L5-L9) to do `this || window` would make it work as you'd expect?

I just released [v0.10.0](https://github.com/ryanve/response.js/releases/tag/v0.10.0) with [`this || window` included](https://github.com/ryanve/response.js/blob/v0.10.0/response.js#L5-L9). Is that helpful? I have some other ideas too.

Ok @kbherbert thanks for reporting. FYI #76 is loosely related regarding the root export name.

Thanks @adrexia Patched in [v0.10.1](https://github.com/ryanve/response.js/releases/tag/v0.10.1) Available [from npm](https://www.npmjs.com/package/response.js) like ``` npm install [email protected] ```

We don't have a specific event for it yet but this sort of feature is on the roadmap for the future—see #15 and other open issues. For now does [running...

Actually this is [briefly documented](https://github.com/ryanve/verge/tree/1.8.3#inviewport): > Test if any part of an element (or the first element in a matched set) is in the current viewport. I still in favor...

Huh, can you paste the code you used?

I think I was able to [reproduce on codepen](https://codepen.io/ryanve/pen/BwEMza) and I commented what seems potential workarounds there. Does `verge.inViewport(test, -1)` works as a solution for you?

@ramtinsoltani Can you reproduce that in [codepen](https://codepen.io) please? Either by [forking mine](https://codepen.io/ryanve/pen/BwEMza) or creating new and loading `verge` there via https://unpkg.com/[email protected]/verge.js