Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update .on() to use correct parameter order

  • Loading branch information...
commit 36b5f0c6e8275c34755e20ef529e4d4ef32fefad 1 parent fc00435
@jgable authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.mobile.mvc-1.0.js
View
6 jquery.mobile.mvc-1.0.js
@@ -39,9 +39,9 @@
if($.fn.on) {
// Use .on if it's available (jQuery 1.7) for performance (http://jsperf.com/jquery-live-vs-delegate-vs-on)
- $(document).on("div[data-role*='dialog']", pageEvents, dialogHandler);
- $(document).on("div[data-role*='page']", pageEvents, pageHandler);
- $(document).on(".navLink", "click", navLinkHandler);
+ $(document).on(pageEvents, "div[data-role*='dialog']", dialogHandler);
+ $(document).on(pageEvents, "div[data-role*='page']", pageHandler);
+ $(document).on("click", ".navLink", navLinkHandler);
} else {
$("div[data-role*='dialog']").live(pageEvents, dialogHandler);
$("div[data-role*='page']").live(pageEvents, pageHandler);
Please sign in to comment.
Something went wrong with that request. Please try again.