public/dashboard/app/angular-ui-dashboard.js
function () {

          if (!this.storage) {
            return null;
          }

          var serialized;

          // try loading storage item
          serialized = this.storage.getItem(this.id);

          if (serialized) {
            // check for promise
            if (typeof serialized === 'object' && typeof serialized.then === 'function') {
              return this._handleAsyncLoad(serialized);
            }
            // otherwise handle synchronous load
            return this._handleSyncLoad(serialized);
          } else {
            return null;
          }
        }
function () {

          if (!this.storage) {
            return null;
          }

          var serialized;

          // try loading storage item
          serialized = this.storage.getItem(this.id);

          if (serialized) {
            // check for promise
            if (typeof serialized === 'object' && typeof serialized.then === 'function') {
              return this._handleAsyncLoad(serialized);
            }
            // otherwise handle synchronous load
            return this._handleSyncLoad(serialized);
          } else {
            return null;
          }
        }
function ( ) { if ( ! this . storage ) { return null ; } var serialized ; // try loading storage item serialized = this . storage . getItem ( this . id ) ; if ( serialized ) { // check for promise if ( typeof serialized === 'object' && typeof serialized . then === 'function' ) { return this . _handleAsyncLoad ( serialized ) ; } // otherwise handle synchronous load return this . _handleSyncLoad ( serialized ) ; } else { return null ; } }
Loads dashboard state from the storage object.
Can handle a synchronous response or a promise.

@return {Array|Promise} Array of widget definitions or a promise
Loads dashboard state from the storage object . Can handle a synchronous response or a promise .