Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using function constructor for alt format handling #12

Closed
wants to merge 1 commit into from

Commits on Nov 19, 2013

  1. Avoid using function constructor for alt format handling

    This allows rbush to be used where the Content Security Policy (or other) disallows the use of eval and related functions (e.g. browser extensions).  Previously, the format supplied could contain function calls (e.g. `['.getMaxX()', ...]`).  With this change, only property names are accepted - though they can be dot prefixed or bracket wrapped (e.g. '.maxX' or '[0]').
    tschaub committed Nov 19, 2013
    Configuration menu
    Copy the full SHA
    9b4bd36 View commit details
    Browse the repository at this point in the history