Code Duplication    Length = 13-14 lines in 2 locations

static/org.openpsa.core/jquery-ui-multiselect-widget-3.0.0/src/jquery.multiselect.js 2 locations

@@ 1475-1488 (lines=14) @@
1472
      var $button = this.$button;
1473
1474
      // hide the menu, maybe with a speed/effect combo
1475
      if (!!effect) {
1476
         if (typeof effect == 'string') {
1477
            $menu.hide(effect, this.speed);
1478
         }
1479
         else if (typeof effect == 'object' && effect.constructor == Array) {
1480
            $menu.hide(effect[0], effect[1] || this.speed);
1481
         }
1482
         else if (typeof effect == 'object' && effect.constructor == Object) {
1483
            $menu.hide(effect);
1484
         }
1485
      }
1486
      else {
1487
         $menu.css('display','none');
1488
      }
1489
1490
      $button.removeClass('ui-state-active').trigger('blur').trigger('mouseleave');
1491
      this.element.trigger('blur');    // For jQuery Validate
@@ 1425-1437 (lines=13) @@
1422
      this.position();
1423
1424
      // Do any specified open animation effect after positioning the menu.
1425
      if (!!effect) {
1426
         // Menu must be hidden for some effects (e.g. fade) to work.
1427
         $menu.css('display','none');
1428
         if (typeof effect == 'string') {
1429
            $menu.show(effect, this.speed);
1430
         }
1431
         else if (typeof effect == 'object' && effect.constructor == Array) {
1432
            $menu.show(effect[0], effect[1] || this.speed);
1433
         }
1434
         else if (typeof effect == 'object' && effect.constructor == Object) {
1435
            $menu.show(effect);
1436
         }
1437
      }
1438
1439
      // focus the first not disabled option or filter input if available
1440
      var filter = $header.find(".ui-multiselect-filter");