diff options
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js index 537b4e2be..ab6b61993 100644 --- a/src/core.js +++ b/src/core.js @@ -304,6 +304,10 @@ jQuery.fn = jQuery.prototype = { is: function(expr) { return expr ? jQuery.multiFilter(expr,this).length > 0 : false; }, + + hasClass: function(expr) { + return this.is("." + expr); + }, val: function( val ) { if ( val == undefined ) { |