sorich87/bootstrap-tour — pull request #41 by javaguirre (2013-01-31 19:00:01+00:00)
Title: Fixed when using null in LocalStorage

When using getState in localStorage, the value is a string 'null', so when we have the tour_end value stored the ended method is always true, even when is null. This pull request fix it.

Tour.prototype.ended = function() {
//always true because the value is the string 'null'
return !!this.getState("end");
};