Clear cache when changing source

This commit is contained in:
John Firebaugh
2013-03-05 15:58:52 -08:00
parent 50de147fb0
commit a84d60f36d
+1
View File
@@ -165,6 +165,7 @@ iD.Background = function() {
background.source = function(_) {
if (!arguments.length) return source;
source = _;
cache = {};
setPermalink(source);
return background;
};