fix typo that caused contact tag suffix tree to not be rebuilt in response to
authorAndrew Sutherland <asutherland@asutherland.org>
Mon, 29 Sep 2008 16:49:23 -0700
changeset 951 255c684c6a61d385ca17289da287b8a126a4e9ce
parent 950 0676f5abd3bb932df1f186b31bb95c251ce33898
child 952 644de10658e530d6ce19dfadfc78d543d8b5e49d
push idunknown
push userunknown
push dateunknown
fix typo that caused contact tag suffix tree to not be rebuilt in response to new tags after the tree is initially built.
components/glautocomp.js
--- a/components/glautocomp.js
+++ b/components/glautocomp.js
@@ -329,17 +329,17 @@ ContactTagCompleter.prototype = {
     this._suffixTree = new MultiSuffixTree(tagNames, tags);
     this._suffixTreeDirty = false;
   },
   onFreeTagAdded: function(aTag) {
     this._suffixTreeDirty = true;
   },
   complete: function ContactTagCompleter_complete(aResult, aString) {
     // now is not the best time to do this; have onFreeTagAdded use a timer.
-    if (this.suffixTreeDirty)
+    if (this._suffixTreeDirty)
       this._buildSuffixTree();
     
     if (aString.length < 2)
       return false; // no async mechanism that will add new rows
     
     LOG.debug("Completing on tags...");
     
     tags = this._suffixTree.findMatches(aString.toLowerCase());