Browse Source

access pref branch constants through the interface rather than an instance

Myk Melez 16 years ago
parent
commit
17e819aeed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Preferences.js

+ 1 - 1
Preferences.js

@@ -113,7 +113,7 @@ Preferences.prototype = {
   // FIXME: make the methods below accept an array of pref names.
 
   has: function(prefName) {
-    return (this._prefSvc.getPrefType(prefName) != this._prefSvc.PREF_INVALID);
+    return (this._prefSvc.getPrefType(prefName) != Ci.nsIPrefBranch.PREF_INVALID);
   },
 
   modified: function(prefName) {