Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm using for the 1st time jquery mobile and I have this strange error:

Uncaught ReferenceError: define is not defined jquery.mobile.custom.js:1331

Can someone figure out what is the problem?
This is the link

Tnks ^^

share|improve this question
Just a comment - I think the easing plugin is unnecessary because you include jQuery UI (not going to fix any problem) – Ian 17 hours ago
Did you make any changes to jquery.mobile.custom.js. The problem is related to jquery.mobile, and its ability to be used as an AMD module. However, there is no reason it should be getting called, unless something in the file got changed and as an unforseen consequence, that part of the code got messed up OR you are using requirejs or something similar, and using it incorrectly. – user1167442 17 hours ago
@Ian You're right, thank you ^^ – Shyghar 1 hour ago
@user1167442 I simply use the jquery mobile download builder and include the file in the page. I included the minified one but, when I saw there was a problem I changed file to see where exactly was the problem. – Shyghar 1 hour ago

1 Answer

This seems to relate to this issue from the jQuery Mobile Builder GitHub repo: https://github.com/jquery/jquery-mobile-builder/issues/19

It seems to be closed now, so try re-building your jQuery Mobile with the builder again here: http://jquerymobile.com/download-builder/

share|improve this answer
Now the code give another error: - Cannot read property 'options' of undefined – Shyghar 1 hour ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.