Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
This commit is contained in:
parent
fe6c86d530
commit
6cb2945837
4 changed files with 6 additions and 4 deletions
|
@ -464,6 +464,8 @@ jQuery.extend({
|
|||
return true;
|
||||
},
|
||||
|
||||
noop: function() {},
|
||||
|
||||
// Evalulates a script in a global context
|
||||
globalEval: function( data ) {
|
||||
if ( data && rnotwhite.test(data) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue