Bug Tracker

Changes between Initial Version and Version 1 of Ticket #9525, comment 7


Ignore:
Timestamp:
Jun 9, 2011, 11:57:52 AM (10 years ago)
Author:
dmethvin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9525, comment 7

    initial v1  
    11If you only need to do `$(this)` once, the overhead is not that great and there is no need for another constructor, especially if it has unusual gotchas people have to remember. The overhead only becomes important in loops. For that case you can use a pattern:
    22{{{
    3 var $this = $();
     3var $this = $(document);
    44this.each(function(){
    55    $this[0] = this;