Skip to content

Commit 01f7f9b

Browse files
committed
fixes jashkenas#3004, edge case for titanium
1 parent 07f6079 commit 01f7f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backbone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@
14491449
// but possibly useful for unit testing Routers.
14501450
stop: function() {
14511451
Backbone.$(window).off('popstate', this.checkUrl).off('hashchange', this.checkUrl);
1452-
clearInterval(this._checkUrlInterval);
1452+
if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
14531453
History.started = false;
14541454
},
14551455

0 commit comments

Comments
 (0)