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

Variable name api_base_url possibly incorrect in lib.twitter.js #579

Open
mariotaku opened this issue Dec 27, 2013 · 0 comments
Open

Variable name api_base_url possibly incorrect in lib.twitter.js #579

mariotaku opened this issue Dec 27, 2013 · 0 comments

Comments

@mariotaku
Copy link

    self.do_ajax = function do_ajax(method, url, params, headers, on_success, on_error) {
        params['source'] = self.source;
        sign_url = self.use_same_sign_api_base ? url: url.replace(self.api_base_url(1), self.sign_api_base);

        if (self.use_oauth) {

It show error message in console

Uncaught TypeError: Object #<TwitterClient> has no method 'api_base_url' lib.twitter.js:141

I think it should be 'api_base'

    self.do_ajax = function do_ajax(method, url, params, headers, on_success, on_error) {
        params['source'] = self.source;
        sign_url = self.use_same_sign_api_base ? url: url.replace(self.api_base, self.sign_api_base);

        if (self.use_oauth) {
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