www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4e4f6f74a1dd218a930aef1231b51b94c21fe808
parent 351a820d34c2d8f293dc478a9d98850ff15efec6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 11 Feb 2009 19:28:06 +0000

Only mark tag cache as fully loaded if it is


Diffstat:
Mchrome/content/zotero/xpcom/data/tags.js | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js @@ -423,16 +423,14 @@ Zotero.Tags = new function() { this._load = function () { - if (!arguments[0] && !this._reloadCache) { - return; - } - - if (this._reloadCache) { + if (!arguments[0]) { + if (!this._reloadCache) { + return; + } _tags = {}; + this._reloadCache = false; } - this._reloadCache = false; - // This should be the same as the query in Zotero.Tag.load(), // just without a specific tagID var sql = "SELECT * FROM tags WHERE 1";