From 4f909c50bad9cbdf4789d272ada71c51fa1226d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 12 Feb 2012 09:14:36 -0500 Subject: [PATCH] Demos, Tests: Remove use 'that' instead of 'self'. Partial fix for #5404 - remove uses of 'var self = this;' --- demos/accordion/hoverintent.html | 4 ++-- demos/autocomplete/categories.html | 4 ++-- demos/autocomplete/combobox.html | 4 ++-- tests/jquery.simulate.js | 3 +-- tests/visual/menu/drilldown.html | 14 +++++++------- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index 184951cf2..8f628bda8 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -29,7 +29,7 @@ $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler ); }, handler: function( event ) { - var self = this, + var that = this, args = arguments, target = $( event.target ), cX, cY, pX, pY; @@ -54,7 +54,7 @@ // is fired asynchronously and the old event is no longer // usable (#6028) event.originalEvent = {}; - jQuery.event.handle.apply( self, args ); + jQuery.event.handle.apply( that, args ); } else { pX = cX; pY = cY; diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html index 2eead8ad2..902867478 100644 --- a/demos/autocomplete/categories.html +++ b/demos/autocomplete/categories.html @@ -22,14 +22,14 @@