From 652be050192dc74530c4ed1484f0a474faf2cd53 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 12 Jul 2013 23:57:46 +0200 Subject: [PATCH] Removed accidentally duplicated function in hints.js. --- src/hints.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/hints.js b/src/hints.js index 5b8219d..eddf326 100644 --- a/src/hints.js +++ b/src/hints.js @@ -205,43 +205,6 @@ var VbHint = (function(){ hConts = []; } - function fire(n) { - var hint = getHint(n ? n : focusNum); - if (!hint) { - return "DONE:"; - } - - var e = hint.e, - tag = e.nodeName.toLowerCase(), - type = e.type ? e.type : ""; - - clear(); - if (tag === "input" || tag === "textarea" || tag === "select") { - if (type === "radio" || type === "checkbox") { - e.focus(); - click(e); - return "DONE:"; - } - if (type === "submit" || type === "reset" || type === "button" || type === "image") { - click(e); - return "DONE:"; - } - e.focus(); - return "INSERT:"; - } - if (tag === "iframe" || tag === "frame") { - e.focus(); - return "DONE:"; - } - - switch (usage) { - case "T": open(e, true); return "DONE:"; - case "O": open(e, false); return "DONE:"; - default: return "DATA:" + getSrc(e); - } - } - - /* fires the modeevent on hint with given number */ function fire(n) { var hint = getHint(n ? n : focusNum); if (!hint) { -- 2.20.1