KevinSheedy / jquery.alphanum

Alphanumeric Plugin for jQuery
Other
141 stars 66 forks source link

$.fn.caret clobbers other jquery plugin #11

Closed jonchiu closed 11 years ago

jonchiu commented 11 years ago

Just wanted to mention that the inclusion of $.fn.caret lib is clobbering other uses of caret in other plugins (specifically in jquery.maskedinput.min). Not sure how you want to handle the caret dependency. I will file an issue with the other plugin author as well to namespace his $.fn.caret function.

<html>
<body>
    <input type="tel">

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="jquery.js"></script>
<script src="jquery.maskedinput.min.js"></script>
<script src="jquery.alphanum.js"></script>
<script>
$(document).ready(function () {
     $('input[type="tel"]').mask("(999) 999-9999")
});
</script>
</body>
</html>
KevinSheedy commented 11 years ago

I moved the renamed the caret function to alphanum_caret so it should no longer conflict with any other libraries. Fixed in V1.0.10 Commit fcc2ceb36df0f03cbeba3494264c4303d96ac4c1