KevinSheedy / jquery.alphanum

Alphanumeric Plugin for jQuery
Other
141 stars 66 forks source link

[Fix] Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function. [Solution] Add semicolon to the end of jquery.alphanum.js #53

Closed prodrigues closed 8 years ago

prodrigues commented 8 years ago

When concatenating the file jquery.alphanum.js with other libraries into a single file, the following error is thrown in chrome's console:

Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function

This happens because the minified code of the selection library in the end of the jquery.alphanum.js does not contain a semicolon. The file should end like: ;e.fn.selection.getCharElement=a})(jQuery);

For now, to solve this issue, just make sure the jquery.alphanum.js is the last file concatenated.

KevinSheedy commented 8 years ago

Fixed in 1.0.25 @prodrigues would you be able to test it?

prodrigues commented 8 years ago

@KevinSheedy Sure, the version on master is fine now. Thank you.