[Pkg-javascript-commits] [pdf.js] 85/204: Rename |_isPrefAllowed| to |_ensurePreferenceAllowed| in extensions/firefox/content/PdfjsChromeUtils.jsm
David Prévot
taffit at moszumanska.debian.org
Sat Oct 25 18:50:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 8d27f38c64cd4fe2d0e36970426152b82eca5f10
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Thu Sep 18 15:06:34 2014 +0200
Rename |_isPrefAllowed| to |_ensurePreferenceAllowed| in extensions/firefox/content/PdfjsChromeUtils.jsm
---
extensions/firefox/content/PdfjsChromeUtils.jsm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/extensions/firefox/content/PdfjsChromeUtils.jsm b/extensions/firefox/content/PdfjsChromeUtils.jsm
index 8b3efe1..8b28ce4 100644
--- a/extensions/firefox/content/PdfjsChromeUtils.jsm
+++ b/extensions/firefox/content/PdfjsChromeUtils.jsm
@@ -177,7 +177,7 @@ let PdfjsChromeUtils = {
return true;
},
- _isPrefAllowed: function (aPrefName) {
+ _ensurePreferenceAllowed: function (aPrefName) {
let unPrefixedName = aPrefName.split(PREF_PREFIX + '.');
if (unPrefixedName[0] !== '' ||
this._allowedPrefNames.indexOf(unPrefixedName[1]) === -1) {
@@ -188,27 +188,27 @@ let PdfjsChromeUtils = {
},
_clearUserPref: function (aPrefName) {
- this._isPrefAllowed(aPrefName);
+ this._ensurePreferenceAllowed(aPrefName);
Services.prefs.clearUserPref(aPrefName);
},
_setIntPref: function (aPrefName, aPrefValue) {
- this._isPrefAllowed(aPrefName);
+ this._ensurePreferenceAllowed(aPrefName);
Services.prefs.setIntPref(aPrefName, aPrefValue);
},
_setBoolPref: function (aPrefName, aPrefValue) {
- this._isPrefAllowed(aPrefName);
+ this._ensurePreferenceAllowed(aPrefName);
Services.prefs.setBoolPref(aPrefName, aPrefValue);
},
_setCharPref: function (aPrefName, aPrefValue) {
- this._isPrefAllowed(aPrefName);
+ this._ensurePreferenceAllowed(aPrefName);
Services.prefs.setCharPref(aPrefName, aPrefValue);
},
_setStringPref: function (aPrefName, aPrefValue) {
- this._isPrefAllowed(aPrefName);
+ this._ensurePreferenceAllowed(aPrefName);
let str = Cc['@mozilla.org/supports-string;1']
.createInstance(Ci.nsISupportsString);
str.data = aPrefValue;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list