Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Uncaught TypeError: 'caller', #32

Closed
polikin opened this issue Mar 16, 2016 · 2 comments
Closed

Uncaught TypeError: 'caller', #32

polikin opened this issue Mar 16, 2016 · 2 comments

Comments

@polikin
Copy link

polikin commented Mar 16, 2016

I tried onScreen with Browserify, but I get this error.

Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

Code

let onScreen = require('../vendors/jquery.onscreen');

$('.speakers').onScreen({
            container: window,
            direction: 'vertical',
            doIn: function() {
             // Do something to the matched elements as they come in
            },
            doOut: function() {
             // Do something to the matched elements as they get off scren
            },
            tolerance: 0,
            throttle: 50,
            toggleClass: 'onScreen',
            lazyAttr: null,
            lazyPlaceholder: 'someImage.jpg',
            debug: false
        });
@silvestreh
Copy link
Owner

Yeah, this would be the throttle method. I'm in the process of rewriting this as a stand-alone library with no requirements.

@silvestreh
Copy link
Owner

I'm closing this issue as there's a new version of OnScreen with a completely different codebase.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants