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

$ does not have method extend #27

Open
dony585 opened this issue May 31, 2012 · 2 comments
Open

$ does not have method extend #27

dony585 opened this issue May 31, 2012 · 2 comments

Comments

@dony585
Copy link

dony585 commented May 31, 2012

I am a beginner to rails. I am working on project and I am using jQuery.no_conflict() also ..
When I use this plugin I get the error


Uncaught TypeError: Object function $(element) {
if (arguments.length > 1) {
for (var i = 0, elements = [], length = arguments.length; i < length; i++)
elements.push($(arguments[i]));
return elements;
}
if (Object.isString(element))
element = document.getElementById(element);
return Element.extend(element);
} has no method 'extend'

@jonstorer
Copy link
Contributor

Why are you using noConflict?

@dony585
Copy link
Author

dony585 commented Jun 4, 2012

The above conflict is resolved but i have a new problem.The code does not generate any errors but it still does not work for me .. When I seperately run it in the console to check whether it is working, it returns just a number and does nothing.

jQuery(window).endlessScroll({
fireOnce: true,
fireDelay: false,
callback: function(){
alert('hi');
},
});
1880

It just gives a number as above and the number is different and greater when we run it for the next time.

Thank you in advance.

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

2 participants