1. noobtech
  2. hFrameWorks

Commits

noobtech  committed 2885963

Added some checking for invalid parameters.

  • Participants
  • Parent commits ccb3c93
  • Branches custom_tooltip

Comments (0)

Files changed (1)

File TestWebsite/Scripts/hAutoComplete/hAutoComplete.js

View file
             return;
         }
 
+        if (typeof (options) !== 'object') {
+            var msg = "Invalid parameters passed to hAutoComplete";
+            alert(msg); throw msg;
+        }
+
         var padding, minimumSearchLength, toolTipContainer, showallButton, defaults, that, repositionPopup, getFilterResultsFromServer, hideToolTip, showToolTip, showAllButtonId, msg, otherElementFocus;