Popper: Fixing the rest part of wrong comments.

This commit is contained in:
Liril 2017-01-18 10:55:12 +08:00 committed by cinwell.li
parent 33f9562bd0
commit d20eaab8de

View File

@ -1117,7 +1117,7 @@
* Check if the given variable is a function * Check if the given variable is a function
* @function * @function
* @ignore * @ignore
* @argument {Element} element - Element to check * @argument {*} functionToCheck - variable to check
* @returns {Boolean} answer to: is a function? * @returns {Boolean} answer to: is a function?
*/ */
function isFunction(functionToCheck) { function isFunction(functionToCheck) {
@ -1160,7 +1160,7 @@
// whether the IE version is lower than 11 // whether the IE version is lower than 11
var isIE = navigator.userAgent.indexOf("MSIE") != -1; var isIE = navigator.userAgent.indexOf("MSIE") != -1;
// fix ie document bouding top always 0 bug // fix ie document bounding top always 0 bug
var rectTop = isIE && element.tagName === 'HTML' var rectTop = isIE && element.tagName === 'HTML'
? -element.scrollTop ? -element.scrollTop
: rect.top; : rect.top;