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

elgg/Ajax instantiation #9533

Closed
hypeJunction opened this Issue Mar 22, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@hypeJunction
Contributor

hypeJunction commented Mar 22, 2016

The method prescribed in docs does not instantiate elgg/Ajax

Doesn't work

var ajax = new require('elgg/Ajax')();

Works

var Ajax = require('elgg/Ajax');
var ajax = new Ajax();
@mrclay

This comment has been minimized.

Show comment
Hide comment
@mrclay

mrclay Mar 22, 2016

Member

Probably needs new (require('elgg/Ajax'))();. You're suggestion is more readable.

Member

mrclay commented Mar 22, 2016

Probably needs new (require('elgg/Ajax'))();. You're suggestion is more readable.

@hypeJunction

This comment has been minimized.

Show comment
Hide comment
@hypeJunction

hypeJunction Mar 22, 2016

Contributor

I can't believe you're one of the you're people ;)

Contributor

hypeJunction commented Mar 22, 2016

I can't believe you're one of the you're people ;)

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