function _getToggler(prefName) {
        return function () {
            PreferencesManager.set(prefName, !PreferencesManager.get(prefName));
        };
    }
@private
Creates a function that will toggle the named preference.

@param {string} prefName Name of preference that should be toggled by the function