src/preferences/PreferencesBase.js
function (event, preferenceID, handler) {
            if (typeof preferenceID === "function") {
                handler = preferenceID;
                preferenceID = null;
            }

            if (preferenceID) {
                var pref = this.getPreference(preferenceID);
                pref.off(event, handler);
            } else {
                this._off_internal(event, handler);
            }
        }
function (event, preferenceID, handler) {
            if (typeof preferenceID === "function") {
                handler = preferenceID;
                preferenceID = null;
            }

            if (preferenceID) {
                var pref = this.getPreference(preferenceID);
                pref.off(event, handler);
            } else {
                this._off_internal(event, handler);
            }
        }
function ( event , preferenceID , handler ) { if ( typeof preferenceID === "function" ) { handler = preferenceID ; preferenceID = null ; } if ( preferenceID ) { var pref = this . getPreference ( preferenceID ) ; pref . off ( event , handler ) ; } else { this . _off_internal ( event , handler ) ; } }
Turns off the event handlers for a given event, optionally for a specific preference
or a specific handler function.

@param {string} event Name of the event for which to turn off listening
@param {string|Function} preferenceID Name of a specific preference or the handler function
@param {?Function} handler Specific handler which should stop being notified
Turns off the event handlers for a given event optionally for a specific preference or a specific handler function .