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

Commit 2afccb5

Browse files
committed
Wrapping in anonymous function
1 parent 298452e commit 2afccb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/jQuery.fileinput.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
77
* --------------------------------------------------------------------
88
*/
9+
(function( $ ){
910
$.fn.customFileInput = function(){
1011
//apply events and styles for file input element
1112
var fileInput = $(this)
@@ -21,7 +22,7 @@ $.fn.customFileInput = function(){
2122
$(this).trigger('checkChange');
2223
})
2324
.bind('disable',function(){
24-
fileInput.attr('disabled',true);
25+
fileInput.attr('disabled',true);
2526
upload.addClass('customfile-disabled');
2627
})
2728
.bind('enable',function(){
@@ -82,4 +83,5 @@ $.fn.customFileInput = function(){
8283

8384
//return jQuery
8485
return $(this);
85-
};
86+
};
87+
})( jQuery );

0 commit comments

Comments
 (0)