lib/jquery.popup.js
Function _create
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
if ( !this.options.trigger ) {
this.options.trigger = this.element.prev();
}
Function keydown
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
switch ( event.keyCode ) {
case $.ui.keyCode.TAB:
// Waiting for close() will make popup hide too late, which breaks tab key behavior
this.element.hide();