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

"args[0].indexOf('-' === 0)": is it a bug? #700

Closed
kadishmal opened this Issue Apr 7, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@kadishmal

kadishmal commented Apr 7, 2013

Requirejs 2.1.5 has the following lines in r.js on lines 2996, 3022 and 3047:

//Ignore any command option used for rq.js
if (args[0] && args[0].indexOf('-' === 0)) {
    args = args.slice(1);
}

Do you see indexOf('-' === 0)? Is it a bug?

@jrburke

This comment has been minimized.

Member

jrburke commented Apr 9, 2013

Hah, yes that was silly. Marking for 2.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment