src/plugins/popper/index.js
function updateModifiers() {
  if (this.state.isDestroyed) {
    return;
  }
  // Deep merge modifiers options
  let options = this.defaultOptions;
  this.options.modifiers = {};
  const _this = this;
  Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
    _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
  });

  // Refactoring modifiers' list (Object => Array)
  this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
    return _extends({
      name: name
    }, _this.options.modifiers[name]);
  })
  // sort the modifiers by order
    .sort(function (a, b) {
      return a.order - b.order;
    });

  // modifiers have the ability to execute arbitrary code when Popper.js get inited
  // such code is executed in the same order of its modifier
  // they could add new properties to their options configuration
  // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
  this.modifiers.forEach(function (modifierOptions) {
    if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
      modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
    }
  });
}
function updateModifiers() {
  if (this.state.isDestroyed) {
    return;
  }
  // Deep merge modifiers options
  let options = this.defaultOptions;
  this.options.modifiers = {};
  const _this = this;
  Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
    _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
  });

  // Refactoring modifiers' list (Object => Array)
  this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
    return _extends({
      name: name
    }, _this.options.modifiers[name]);
  })
  // sort the modifiers by order
    .sort(function (a, b) {
      return a.order - b.order;
    });

  // modifiers have the ability to execute arbitrary code when Popper.js get inited
  // such code is executed in the same order of its modifier
  // they could add new properties to their options configuration
  // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
  this.modifiers.forEach(function (modifierOptions) {
    if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
      modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
    }
  });
}
function updateModifiers ( ) { if ( this . state . isDestroyed ) { return ; } // Deep merge modifiers options let options = this . defaultOptions ; this . options . modifiers = { } ; const _this = this ; Object . keys ( _extends ( { } , Popper . Defaults . modifiers , options . modifiers ) ) . forEach ( function ( name ) { _this . options . modifiers [ name ] = _extends ( { } , Popper . Defaults . modifiers [ name ] || { } , options . modifiers ? options . modifiers [ name ] : { } ) ; } ) ; // Refactoring modifiers' list (Object => Array) this . modifiers = Object . keys ( this . options . modifiers ) . map ( function ( name ) { return _extends ( { name : name } , _this . options . modifiers [ name ] ) ; } ) // sort the modifiers by order . sort ( function ( a , b ) { return a . order - b . order ; } ) ; // modifiers have the ability to execute arbitrary code when Popper.js get inited // such code is executed in the same order of its modifier // they could add new properties to their options configuration // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! this . modifiers . forEach ( function ( modifierOptions ) { if ( modifierOptions . enabled && isFunction ( modifierOptions . onLoad ) ) { modifierOptions . onLoad ( _this . reference , _this . popper , _this . options , modifierOptions , _this . state ) ; } } ) ; }
Updates the options of Popper
@method
@memberof Popper
Updates the options of Popper