Skip to content

Commit

Permalink
code cleanup: remove unused helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Jan 7, 2015
1 parent 5e3dc0a commit d5cf95f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,6 @@ Handsontable.helper.isNumeric = function (n) {
t == 'object' ? !!n && typeof n.valueOf() == "number" && !(n instanceof Date) : false;
};

/**
* Checks if child is a descendant of given parent node
* http://stackoverflow.com/questions/2234979/how-to-check-in-javascript-if-one-element-is-a-child-of-another
* @param parent
* @param child
* @returns {boolean}
*/
Handsontable.helper.isDescendant = function (parent, child) {
var node = child.parentNode;
while (node != null) {
if (node == parent) {
return true;
}
node = node.parentNode;
}
return false;
};

/**
* Generates a random hex string. Used as namespace for Handsontable instance events.
* @return {String} - 16 character random string: "92b1bfc74ec4"
Expand Down Expand Up @@ -471,10 +453,6 @@ Handsontable.helper.cellMethodLookupFactory = function (methodName, allowUndefin

};

Handsontable.helper.toString = function (obj) {
return '' + obj;
};

Handsontable.helper.isMobileBrowser = function (userAgent) {
if(!userAgent) {
userAgent = navigator.userAgent;
Expand Down

0 comments on commit d5cf95f

Please sign in to comment.