jQuery core style guide conformance: jquery.mobile.event.js - fix string concat & split

This commit is contained in:
Rick Waldron 2011-06-29 11:46:50 -04:00
parent 05059f30d5
commit 19e36d2fff

View file

@ -7,8 +7,8 @@
(function( $, window, undefined ) {
// add new event shortcuts
$.each( "touchstart touchmove touchend orientationchange throttledresize " +
"tap taphold swipe swipeleft swiperight scrollstart scrollstop".split( " " ), function( i, name ) {
$.each( ( "touchstart touchmove touchend orientationchange throttledresize " +
"tap taphold swipe swipeleft swiperight scrollstart scrollstop" ).split( " " ), function( i, name ) {
$.fn[ name ] = function( fn ) {
return fn ? this.bind( name, fn ) : this.trigger( name );