Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Allow use when jQuery is running in no conflict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
BenConstable committed Jun 26, 2013
1 parent d2b72e1 commit 9a8ee11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/jQuery.customInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
* --------------------------------------------------------------------
*/
jQuery.fn.customInput = function(){

(function ($) {

$.fn.customInput = function(){
return $(this).each(function(){
if($(this).is('[type=checkbox],[type=radio]')){
var input = $(this);
Expand Down Expand Up @@ -40,6 +43,8 @@ jQuery.fn.customInput = function(){
});
};

}(jQuery));




0 comments on commit 9a8ee11

Please sign in to comment.