fixed a bug with icon positioning

This commit is contained in:
scottjehl 2010-11-11 16:36:25 -05:00
parent 014bbbcc4a
commit 5aa980fdb4

View file

@ -12,7 +12,7 @@ $.widget( "mobile.navbar", $.mobile.widget, {
_create: function(){
var $navbar = this.element,
$navbtns = $navbar.find("a"),
iconpos = $navbtns.filter('data-icon').length ? this.options.iconpos : undefined;
iconpos = $navbtns.filter('[data-icon]').length ? this.options.iconpos : undefined;
$navbar
.addClass('ui-navbar')