diff options
author | matthewsot <matthewsot@outlook.com> | 2017-06-17 00:19:01 -0700 |
---|---|---|
committer | matthewsot <matthewsot@outlook.com> | 2017-06-17 00:19:01 -0700 |
commit | f6e7cf6d0c0a96cf984075a09298cbdeab4cfd41 (patch) | |
tree | 3c52b921890e9a825c25d5dc78f85626d20e9306 | |
parent | 98b7bc251da98fee5dc2d47262351cbd8befd11d (diff) |
fixed small bug
It should break out of the search loop, not end the entire function, when it finds & removes a duplicate
-rw-r--r-- | jfn.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ jfn.defineFunction = function (object, name, args, defaults, fn) { var f = object[name]["__jfn"]["fns"][i]; if (JSON.stringify(f.args) === JSON.stringify(args)) { object[name]["__jfn"]["fns"].splice(i, 1); - return; + break; } } } |