Skip to content
Permalink
Browse files
Fix for #511
  • Loading branch information
jzaefferer committed Dec 18, 2006
1 parent 898ca31 commit 7a724180a726c7b041d87494a4cf8780fc90e216
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jquery/jquery.js
@@ -1029,8 +1029,8 @@ jQuery.fn = jQuery.prototype = {
* @cat Core
*/
pushStack: function(a,args) {
var fn = args && args[args.length-1];
var fn2 = args && args[args.length-2];
var fn = args && args.length > 1 && args[args.length-1];
var fn2 = args && args.length > 2 && args[args.length-2];

if ( fn && fn.constructor != Function ) fn = null;
if ( fn2 && fn2.constructor != Function ) fn2 = null;

0 comments on commit 7a72418

Please sign in to comment.