Skip to content

Commit

Permalink
Renamed utility function.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Apr 21, 2017
1 parent 6b4e6ee commit 432e6c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/parts/Utilities.js
Expand Up @@ -449,7 +449,7 @@ H.merge = function () {
if (
H.isObject(value, true) &&
!H.isClass(value) &&
!H.isHTMLElement(value)
!H.isDOMElement(value)
) {
copy[key] = doCopy(copy[key] || {}, value);

Expand Down Expand Up @@ -530,12 +530,12 @@ H.isObject = function (obj, strict) {
/**
* Utility function to check if an Object is a HTML Element.
*
* @function #isHTMLElement
* @function #isDOMElement
* @memberOf Highcharts
* @param {Object} obj - The item to check.
* @returns {Boolean} - True if the argument is a HTML Element.
*/
H.isHTMLElement = function (obj) {
H.isDOMElement = function (obj) {
return H.isObject(obj) && typeof obj.nodeType === 'number';
};

Expand All @@ -550,7 +550,7 @@ H.isHTMLElement = function (obj) {
H.isClass = function (obj) {
return !!(
H.isObject(obj, true) &&
!H.isHTMLElement(obj) &&
!H.isDOMElement(obj) &&
(obj.constructor && obj.constructor.name !== 'Object')
);
};
Expand Down

0 comments on commit 432e6c6

Please sign in to comment.