Using the layout template where I have the following markup
if you select the back button the first time the page loads you get Uncaught TypeError: Cannot call method 'split' of undefined - I guess as there is nothign to go back to, how can I disable this button until there is something to go back to?
<div data-role="navbar"> <a class="nav-button" data-align="left" data-transition="slide:left" data-role="backbutton">Back</a> <span data-role="view-title"></span> <a data-align="right" data-role="button" data-transition="slide:left" class="nav-button" href="#tabstrip-home">Home</a></div>