Skip to content
This repository
Browse code

configure button markup hoverDelay

  • Loading branch information...
commit f407ff2453f4d1fd5f0b28eeef56536328df430d 1 parent 6389294
John Bender authored April 05, 2012
4  js/jquery.mobile.buttonMarkup.js
@@ -184,8 +184,8 @@ function closestEnabledButton( element ) {
184 184
 }
185 185
 
186 186
 var attachEvents = function() {
187  
-	var hoverDelay = 200,
188  
-		hov, foc;
  187
+	var hoverDelay = $.mobile.buttonMarkup.hoverDelay, hov, foc;
  188
+
189 189
 	$( document ).bind( {
190 190
 		"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart": function( event ) {
191 191
 			var theme,
4  js/jquery.mobile.core.js
@@ -86,6 +86,10 @@ define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobil
86 86
 		// turn of binding to the native orientationchange due to android orientation behavior
87 87
 		orientationChangeEnabled: true,
88 88
 
  89
+		buttonMarkup: {
  90
+			hoverDelay: 200
  91
+		},
  92
+
89 93
 		// TODO might be useful upstream in jquery itself ?
90 94
 		keyCode: {
91 95
 			ALT: 18,

0 notes on commit f407ff2

Please sign in to comment.
Something went wrong with that request. Please try again.