Permalink
Show file tree
Hide file tree
3 comments
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -466,6 +466,10 @@ jQuery.extend({ | ||
} | ||
return true; | ||
}, | ||
|
||
error: function( msg ) { | ||
throw msg; | ||
}, | ||
|
||
noop: function() {}, | ||
|
||
a6ef036
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't something needed to map from Sizzle.error to jQuery.error (as Sizzle.error isn't exposed)?
a6ef036
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can get to Sizzle.error by overriding jQuery.find.error (jQuery.find is Sizzle). I kept these two functions separate because I figured that some might want to differentiate between a selector error and a jQuery-specific error.
a6ef036
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh yes. Brain fail, sorry!