I want to clone the jQuery object $ to $D; but it actually seems to be
overwriting. Can anyone please suggest any solution?

Here is the code:

$D = $.extend($); // same result for $D = $;
$D.fn.extend({
        click: function() {
                                alert('overridden click');
                return this;
        }
        });

$(document).ready(function(){
        $('body').click(); // this also triggers the 'overridden click' --
which is what I want to avoid.
        $D('body').click();
});

As you see, $('body').click() triggers the 'overridden click', but I
wanted it to trigger the original jQuery object's click.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/

Reply via email to