From: Jörn Zaefferer Date: Mon, 20 Jun 2011 20:31:28 +0000 (+0200) Subject: Whitespace cleanup X-Git-Tag: 1.9m6~91^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5297b7bc4250462213b05ad2763fe99d0f8dedec;p=jquery-ui.git Whitespace cleanup --- diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 0e5695d97..d154185d5 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -319,14 +319,14 @@ $.Widget.prototype = { return ( typeof handler === "string" ? instance[ handler ] : handler ) .apply( instance, arguments ); } - var match = event.match( /^(\w+)\s*(.*)$/ ); - var eventName = match[1] + "." + instance.widgetName, + var match = event.match( /^(\w+)\s*(.*)$/ ), + eventName = match[1] + "." + instance.widgetName, selector = match[2]; - if (selector === '') { - element.bind( eventName, handlerProxy ); - } else { - element.delegate( selector, eventName, handlerProxy ); - } + if ( selector === '' ) { + element.bind( eventName, handlerProxy ); + } else { + element.delegate( selector, eventName, handlerProxy ); + } }); },