diff --git a/js/ui/placeDisplay.js b/js/ui/placeDisplay.js index 4864f2c7b..19f823fff 100644 --- a/js/ui/placeDisplay.js +++ b/js/ui/placeDisplay.js @@ -195,9 +195,9 @@ PlacesManager.prototype = { this._bookmarksPath = GLib.build_filenamev([GLib.get_home_dir(), '.gtk-bookmarks']); this._bookmarksFile = Gio.file_new_for_path(this._bookmarksPath); - let monitor = this._bookmarksFile.monitor_file(Gio.FileMonitorFlags.NONE, null); + this._monitor = this._bookmarksFile.monitor_file(Gio.FileMonitorFlags.NONE, null); this._bookmarkTimeoutId = 0; - monitor.connect('changed', Lang.bind(this, function () { + this._monitor.connect('changed', Lang.bind(this, function () { if (this._bookmarkTimeoutId > 0) return; /* Defensive event compression */