diff options
author | Jason Bedard <github@jbedard.ca> | 2013-05-02 18:45:02 -0700 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-05-09 14:35:20 -0400 |
commit | fc9e50a3ed00c8071e3b3e2024371b571728741b (patch) | |
tree | 671fadb5b0fa7faeb08d5a242558e1e45e1cebcf | |
parent | 00eafdf028f7730665ce1c05ab44e3f0bc80fbc2 (diff) | |
download | jquery-fc9e50a3ed00c8071e3b3e2024371b571728741b.tar.gz jquery-fc9e50a3ed00c8071e3b3e2024371b571728741b.zip |
Only call jQuery(this) when needed. Close gh-1260.
Conflicts:
.mailmap
AUTHORS.txt
-rw-r--r-- | .mailmap | 93 | ||||
-rw-r--r-- | AUTHORS.txt | 1 | ||||
-rw-r--r-- | src/attributes.js | 5 |
3 files changed, 96 insertions, 3 deletions
diff --git a/.mailmap b/.mailmap new file mode 100644 index 000000000..f51476829 --- /dev/null +++ b/.mailmap @@ -0,0 +1,93 @@ +Adam Coulombe <me@adam.co> <adamcoulombe187@hotmail.com> +Adam J. Sontag <ajpiano@ajpiano.com> +Alexander Farkas <info@corrupt-system.de> +Alexander Farkas <info@corrupt-system.de> <a.farkas.pm@googlemail.com> +Alexis Abril <me@alexisabril.com> <alexis.abril@gmail.com> +Andrew E Monat <amonat@gmail.com> +Anton Matzneller <obhvsbypqghgc@gmail.com> +Anton Matzneller <obhvsbypqghgc@gmail.com> <haskell_noob-github@yahoo.de> +Batiste Bieler <batiste@gmail.com> <batiste.bieler@gmail.com> +Benjamin Truyman <bentruyman@gmail.com> +Brandon Aaron <brandon.aaron@gmail.com> +Carl Danley <carldanley@gmail.com> +Carl Fürstenberg <azatoth@gmail.com> +Carl Fürstenberg <azatoth@gmail.com> <carl@excito.com> +Charles McNulty <cmcnulty@kznf.com> +Colin Snover <colin@alpha.zetafleet.com> <github.com@zetafleet.com> +Corey Frang <gnarf@gnarf.net> +Dan Heberden <danheberden@gmail.com> +Daniel Chatfield <chatfielddaniel@gmail.com> <chatfielddaniel@googlemail.com> +Daniel Gálvez <dgalvez@editablething.com> +Danil Somsikov <danilasomsikov@gmail.com> +Dave Methvin <dave.methvin@gmail.com> +Dave Reed <dareed@microsoft.com> +David Fox <dfoxinator@gmail.com> <dfox@snap-interactive.com> +Devin Cooper <cooper.semantics@gmail.com> <dcooper@snap-interactive.com> +Dmitry Gusev <dmitry.gusev@gmail.com> +Earle Castledine <mrspeaker@gmail.com> +Erick Ruiz de Chávez <erickrdch@gmail.com> +Gianni Alessandro Chiappetta <gianni@runlevel6.org> +Heungsub Lee <h@subl.ee> <lee@heungsub.net> +Iraê Carvalho <irae@irae.pro.br> +Isaac Z. Schlueter <i@izs.me> +Ismail Khair <ismail.khair@gmail.com> +James Burke <jrburke@gmail.com> +James Padolsey <cla@padolsey.net> <jamespadolsey@gmail.com> +Jason Bedard <jason+jquery@jbedard.ca> <github@jbedard.ca> +Jay Merrifield <fracmak@gmail.com> +Jay Merrifield <fracmak@gmail.com> <jmerrifiel@gannett.com> +Jean Boussier <jean.boussier@gmail.com> +Jephte Clain <Jephte.Clain@univ-reunion.fr> +Jess Thrysoee <jess@thrysoee.dk> +Joao Henrique de Andrade Bruni <joaohbruni@yahoo.com.br> +Joe Presbrey <presbrey@gmail.com> <presbrey+jwp@gmail.com> +John Resig <jeresig@gmail.com> +John Resig <jeresig@gmail.com> <jeresig@Archimedes.local> +Jordan Boesch <jboesch26@gmail.com> <jordan@boedesign.com> +Josh Varner <josh.varner@gmail.com> <josh.varner@gmail.com> +Julian Aubourg <aubourg.julian@gmail.com> +Julian Aubourg <aubourg.julian@gmail.com> <j@ubourg.net> +Julian Aubourg <aubourg.julian@gmail.com> <Julian@.(none)> +Jörn Zaefferer <joern.zaefferer@gmail.com> +Jörn Zaefferer <joern.zaefferer@gmail.com> <joern.zaefferer@googlemail.com> +Jörn Zaefferer <joern.zaefferer@gmail.com> <JZA@.(none)> +Karl Swedberg <kswedberg@gmail.com> <karl@englishrules.com> +Kris Borchers <kris.borchers@gmail.com> +Lee Carpenter <elcarpie@gmail.com> +Li Xudong <istonelee@gmail.com> +Louis-Rémi Babé <lrbabe@gmail.com> +Louis-Rémi Babé <lrbabe@gmail.com> <louisremi@louisremi-laptop.(none)> +Louis-Rémi Babé <lrbabe@gmail.com> <lrbabe@lrbabe-laptop.(none)> +Louis-Rémi Babé <lrbabe@gmail.com> <lrbabe@lrbabe-laptop> +Marcel Greter <marcel.greter@ocbnet.ch> <mgr@rtp.ch> +Matthias Jäggli <matthias.jaeggli@gmail.com> <matthias.jaeggli@scout24.ch> +Michael Murray <m@murz.net> <mmurray.wa@gmail.com> +Michał Gołębiowski <m.goleb@gmail.com> +Michał Gołębiowski <m.goleb@gmail.com> <michal.golebiowski@laboratorium.ee> +Mike Alsup <malsup@gmail.com> +Nguyen Phuc Lam <ruado1987@gmail.com> +Oleg Gaidarenko <markelog@gmail.com> +Rafaël Blais Masson <rafbmasson@gmail.com> +Richard D. Worth <rdworth@gmail.com> +Rick Waldron <waldron.rick@gmail.com> +Rick Waldron <waldron.rick@gmail.com> <rick@bocoup.com> +Robert Katić <robert.katic@gmail.com> +Ron Otten <r.j.g.otten@gmail.com> +Sai Lung Wong <sai.wong@huffingtonpost.com> +Scott González <scott.gonzalez@gmail.com> <sgonzale@sgonzale-laptop.local> +Scott Jehl <scott@scottjehl.com> +Sebastian Burkhard <sebi.burkhard@gmail.com> +Timmy Willison <timmywillisn@gmail.com> +Timmy Willison <timmywillisn@gmail.com> <tim.willison@thisismedium.com> +Timo Tijhof <krinklemail@gmail.com> +TJ Holowaychuk <tj@vision-media.ca> +Tom H Fuertes <tomfuertes@gmail.com> +Tom H Fuertes <tomfuertes@gmail.com> Tom H Fuertes <TomFuertes@gmail.com> +Tom Viner <github@viner.tv> +Xavi Ramirez <xavi.rmz@gmail.com> +Xavier Montillet <xavierm02.net@gmail.com> +Yehuda Katz <wycats@gmail.com> +Yehuda Katz <wycats@gmail.com> <wycats@12-189-125-93.att-inc.com> +Yehuda Katz <wycats@gmail.com> <wycats@mobile005.mycingular.net> +Yehuda Katz <wycats@gmail.com> <wycats@Yehuda-Katz.local> +Yiming He <yiminghe@gmail.com> diff --git a/AUTHORS.txt b/AUTHORS.txt index 499bff6f1..c9bb92886 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -164,3 +164,4 @@ Andrew Plummer <plummer.andrew@gmail.com> Dmitry Gusev <dmitry.gusev@gmail.com> Michał Gołębiowski <m.goleb@gmail.com> Brandon Johnson <bjohn465+github@gmail.com> +Jason Bedard <jason+jquery@jbedard.ca> diff --git a/src/attributes.js b/src/attributes.js index 084ca0c6d..8a6bf5659 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -191,15 +191,14 @@ jQuery.fn.extend({ isFunction = jQuery.isFunction( value ); return this.each(function( i ) { - var val, - self = jQuery(this); + var val; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { - val = value.call( this, i, self.val() ); + val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } |