"this" in this context is already a jquery object

This commit is contained in:
ehynds 2010-12-28 22:06:51 +08:00 committed by Scott Jehl
parent 32056c6873
commit b71cc32d78

View file

@ -6,6 +6,6 @@
*/
(function($, undefined ) {
$.fn.fieldcontain = function(options){
return $(this).addClass('ui-field-contain ui-body ui-br');
return this.addClass('ui-field-contain ui-body ui-br');
};
})(jQuery);