examples/public/js/dat.gui.js
function() {

          if (common.isUndefined(SAVE_DIALOGUE)) {
            SAVE_DIALOGUE = new CenteredDiv();
            SAVE_DIALOGUE.domElement.innerHTML = saveDialogueContents;
          }

          if (this.parent) {
            throw new Error("You can only call remember on a top level GUI.");
          }

          var _this = this;

          common.each(Array.prototype.slice.call(arguments), function(object) {
            if (_this.__rememberedObjects.length == 0) {
              addSaveMenu(_this);
            }
            if (_this.__rememberedObjects.indexOf(object) == -1) {
              _this.__rememberedObjects.push(object);
            }
          });

          if (this.autoPlace) {
            // Set save row width
            setWidth(this, this.width);
          }

        }
function() {

          if (common.isUndefined(SAVE_DIALOGUE)) {
            SAVE_DIALOGUE = new CenteredDiv();
            SAVE_DIALOGUE.domElement.innerHTML = saveDialogueContents;
          }

          if (this.parent) {
            throw new Error("You can only call remember on a top level GUI.");
          }

          var _this = this;

          common.each(Array.prototype.slice.call(arguments), function(object) {
            if (_this.__rememberedObjects.length == 0) {
              addSaveMenu(_this);
            }
            if (_this.__rememberedObjects.indexOf(object) == -1) {
              _this.__rememberedObjects.push(object);
            }
          });

          if (this.autoPlace) {
            // Set save row width
            setWidth(this, this.width);
          }

        }
function ( ) { if ( common . isUndefined ( SAVE_DIALOGUE ) ) { SAVE_DIALOGUE = new CenteredDiv ( ) ; SAVE_DIALOGUE . domElement . innerHTML = saveDialogueContents ; } if ( this . parent ) { throw new Error ( "You can only call remember on a top level GUI." ) ; } var _this = this ; common . each ( Array . prototype . slice . call ( arguments ) , function ( object ) { if ( _this . __rememberedObjects . length == 0 ) { addSaveMenu ( _this ) ; } if ( _this . __rememberedObjects . indexOf ( object ) == - 1 ) { _this . __rememberedObjects . push ( object ) ; } } ) ; if ( this . autoPlace ) { // Set save row width setWidth ( this , this . width ) ; } }
Mark objects for saving. The order of these objects cannot change as
the GUI grows. When remembering new objects, append them to the end
of the list.

@param {Object...} objects
@throws {Error} if not called on a top level GUI.
@instance
Mark objects for saving . The order of these objects cannot change as the GUI grows . When remembering new objects append them to the end of the list .