diff --git a/filedrop.js b/filedrop.js index 33ce792..f3348b4 100644 --- a/filedrop.js +++ b/filedrop.js @@ -473,7 +473,7 @@ // Adds event listeners to given object with 'events' property according // to passed parameters. See DropHandle.event() for details. // Returns nothing if couldn't handle given parameter combination. - global.addEventsToObject = function (obj, prepend, args) { + global.addEventsToObject = function recursiveaddEvents(obj, prepend, args) { var events = args[0] var funcs = args[1] @@ -481,7 +481,7 @@ case 1: if (events && typeof events == 'object' && !global.isArray(events)) { for (var event in events) { - arguments.callee(obj, prepend, [event, events[event]]) + recursiveaddEvents(obj, prepend, [event, events[event]]) } return true @@ -975,14 +975,14 @@ // //=> // //? findInputRecursive(byID('foo')) //=> null - self.findInputRecursive = function (parent) { + self.findInputRecursive = function recursivefunc(parent) { for (var i = 0; i < parent.childNodes.length; i++) { var node = parent.childNodes[i] if (global.isTag(node, 'input') && node.getAttribute('type') == 'file' && global.hasClass(node, self.opt.inputClass)) { return node - } else if (node = arguments.callee(node)) { + } else if (node = recursivefunc(node)) { return node } }