Created
June 18, 2012 18:42
-
-
Save mlynch/2949944 to your computer and use it in GitHub Desktop.
Page Create
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.widget('mobile.tabbar', $.mobile.navbar, { | |
_create: function() { | |
$.mobile.navbar.prototype._create.call(this); | |
// ... | |
} | |
}); | |
$(document).bind('pagecreate create', function(e) { | |
// Create a tab bar for every element that has data-role="tabbar" on this page. | |
return $(e.target).find(":jqmData(role='tabbar')").tabbar(); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment