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

Commit

Permalink
Wrapping in anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed Jun 28, 2013
1 parent 298452e commit 2afccb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/jQuery.fileinput.js
Expand Up @@ -6,6 +6,7 @@
* licensed under MIT (filamentgroup.com/examples/mit-license.txt)
* --------------------------------------------------------------------
*/
(function( $ ){
$.fn.customFileInput = function(){
//apply events and styles for file input element
var fileInput = $(this)
Expand All @@ -21,7 +22,7 @@ $.fn.customFileInput = function(){
$(this).trigger('checkChange');
})
.bind('disable',function(){
fileInput.attr('disabled',true);
fileInput.attr('disabled',true);
upload.addClass('customfile-disabled');
})
.bind('enable',function(){
Expand Down Expand Up @@ -82,4 +83,5 @@ $.fn.customFileInput = function(){

//return jQuery
return $(this);
};
};
})( jQuery );

0 comments on commit 2afccb5

Please sign in to comment.