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

OTP config.js error #4

Open
esbranson opened this issue Sep 11, 2013 · 1 comment
Open

OTP config.js error #4

esbranson opened this issue Sep 11, 2013 · 1 comment

Comments

@esbranson
Copy link

In config.js:43

otp.inherit(otp.config, otp.config_defaults); // step 3a: build the object up

This throws an exception in otp.js:148

otp.inherit = function(C, P) {
...
F.prototype = P.prototype;

because the second argument to the function (otp.config_defaults) is undefined.

This only seems to come up in Google Chrome 31.0.1622.0 dev (running on LUbuntu saucy) console logs. Firefox 23 also shows an error in the console logs. openbike.co is not working.

@esbranson esbranson reopened this Sep 11, 2013
@esbranson
Copy link
Author

IDK openbike.co seems to be working fine now. PEBKAC maybe?

Anyways, this `config_defaults' reference does seem mysterious; it is never defined, and thus seems to render both functions non-ops.

In Webapp.js:26 we see the `initialize' function of otp.core.Webapp (which seems to be what is ultimately called by index.html:60 since this is what is called in Webapp.js:106 via otp.Class in otp.js:67) which calls

otp.configure(this, config);

which is different than what we are doing in config.js:45

otp.configure(otp.config, otp.config_defaults); // step 3b: make sure any / all local changes above get applied

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

No branches or pull requests

1 participant