• Resolved Marvin Borisch

    (@marvin-borisch)


    I am getting this following warning/error in my console and tracked it down to your plugin (and a few other ones).

    unreachable code after return statement
    (/js/chosen/chosen.jquery.js – …/chosen.jquery.min.js – …/chosen.proto.js)

    and is refering to

    AbstractChosen.browser_is_supported = function() {
          if (window.navigator.appName === "Microsoft Internet Explorer") {
            return document.documentMode >= 8;
          }
          if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
            return false;
          }
          if (/Android/i.test(window.navigator.userAgent)) {
            if (/Mobile/i.test(window.navigator.userAgent)) {
              return false;
            }
          }
          return true;
        };

    starting on line 489

    It’s not doing any harm, but still a warning in the console. May be fixed in future versions or replaced (as it seems to be a vendor/external js)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unreachable code after return statement’ is closed to new replies.