Popper: Add missing doc in isModifierRequired

This commit is contained in:
Liril 2017-01-17 00:00:50 +08:00 committed by 杨奕
parent 9a9a661290
commit 0c126c6f87

View File

@ -575,9 +575,10 @@
* Helper used to know if the given modifier depends from another one.
* @method
* @memberof Popper
* @param {String} requesting - name of requesting modifier
* @param {String} requested - name of requested modifier
* @returns {Boolean}
*/
Popper.prototype.isModifierRequired = function(requesting, requested) {
var index = getArrayKeyIndex(this._options.modifiers, requesting);
return !!this._options.modifiers.slice(0, index).filter(function(modifier) {