view/resources/jquery/ui/jquery.ui.tagadata.js
File jquery.ui.tagadata.js
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* 'tag-a-data' jQuery widget
*
* 'tag-a-data' is based on the original jQuery extension 'tag-it' v2.0 (06/2011) by
* Levy Carneiro Jr.
Function _initTagEvents
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initTagEvents: function ( $tag ) {
var self = this,
$input = $tag.find( 'input' );
$input
Function createTag
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createTag: function ( value, additionalClasses, forceTextInput ) {
value = this._formatLabel( value );
var $tag = this.getTag( value );
Function _createHelperTag
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createHelperTag: function () {
var $tag = this.createTag( '', '', true ),
input = $tag.find( 'input' );
// Add placeholder and auto-expand afterwards: