diff --git a/lib/browser/events.js b/lib/browser/events.js index 314016910b..b4342f6202 100644 --- a/lib/browser/events.js +++ b/lib/browser/events.js @@ -5,7 +5,7 @@ exports.EventEmitter = EventEmitter; /** - * Object#hasOwnProperty reference. + * Object#toString reference. */ var objToString = Object.prototype.toString; @@ -14,7 +14,7 @@ var objToString = Object.prototype.toString; * * @api private * @param {*} val The value to test. - * @return {boolean} true if the value is a boolean, otherwise false. + * @return {boolean} true if the value is an array, otherwise false. */ function isArray(val) { return objToString.call(val) === '[object Array]';