Corrected logic for locating entities in titles

This commit is contained in:
Garann Means 2011-11-04 15:08:10 -05:00
parent d7d52544e7
commit 6699dab7d1

View file

@ -848,7 +848,7 @@
}
if ( newPageTitle && !page.jqmData( "title" ) ) {
if ( newPageTitle.indexOf( "&" ) ) {
if ( ~newPageTitle.indexOf( "&" ) ) {
newPageTitle = $( "<div>" + newPageTitle + "</div>" ).text();
}
page.jqmData( "title", newPageTitle );