@@ -4,7 +4,7 @@ import React from 'react'
44import PropTypes from 'prop-types'
55import classname from 'classnames'
66
7- /* Decoraters */
7+ /* Decorators */
88import staticMethods from './decorators/staticMethods'
99import windowListener from './decorators/windowListener'
1010import customEvent from './decorators/customEvent'
@@ -246,8 +246,8 @@ class ReactTooltip extends React.Component {
246246 }
247247
248248 /**
249- * Invoke this before bind listener and ummount the compont
250- * it is necessary to invloke this even when binding custom event
249+ * Invoke this before bind listener and unmount the component
250+ * it is necessary to invoke this even when binding custom event
251251 * so that the tooltip can switch between custom and default listener
252252 */
253253 unbindBasicListener ( target ) {
@@ -366,7 +366,7 @@ class ReactTooltip extends React.Component {
366366 }
367367
368368 /**
369- * When mouse hover, updatetooltip
369+ * When mouse hover, update tool tip
370370 */
371371 updateTooltip ( e ) {
372372 const { delayShow, disable} = this . state
@@ -464,7 +464,7 @@ class ReactTooltip extends React.Component {
464464 }
465465
466466 /**
467- * Add scroll eventlistener when tooltip show
467+ * Add scroll event listener when tooltip show
468468 * automatically hide the tooltip when scrolling
469469 */
470470 addScrollListener ( currentTarget ) {
0 commit comments