src/preferences/PreferencesBase.js
function () {
            var result = new $.Deferred();
            this.storage.load()
                .then(function (data) {
                    var oldKeys = this.getKeys();
                    this.data = data;
                    result.resolve();
                    this.trigger(PREFERENCE_CHANGE, {
                        ids: _.union(this.getKeys(), oldKeys)
                    });
                }.bind(this))
                .fail(function (error) {
                    result.reject(error);
                });
            return result.promise();
        }
function () {
            var result = new $.Deferred();
            this.storage.load()
                .then(function (data) {
                    var oldKeys = this.getKeys();
                    this.data = data;
                    result.resolve();
                    this.trigger(PREFERENCE_CHANGE, {
                        ids: _.union(this.getKeys(), oldKeys)
                    });
                }.bind(this))
                .fail(function (error) {
                    result.reject(error);
                });
            return result.promise();
        }
function ( ) { var result = new $ . Deferred ( ) ; this . storage . load ( ) . then ( function ( data ) { var oldKeys = this . getKeys ( ) ; this . data = data ; result . resolve ( ) ; this . trigger ( PREFERENCE_CHANGE , { ids : _ . union ( this . getKeys ( ) , oldKeys ) } ) ; } . bind ( this ) ) . fail ( function ( error ) { result . reject ( error ) ; } ) ; return result . promise ( ) ; }
Loads the prefs for this `Scope` from the `Storage`.

@return {Promise} Promise that is resolved once loading is complete
Loads the prefs for this Scope from the Storage .