assets/js/tag-it.js
Function _create
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
// for handling static scoping inside callbacks
var that = this;
// There are 2 kinds of DOM nodes this widget can be instantiated on:
File tag-it.js
has 398 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery UI Tag-it!
*
* @version v2.0 (06/2011)
*
Function createTag
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createTag: function (value, additionalClass, duringInitialization) {
var that = this;
value = $.trim(value);
Consider simplifying this complex logical expression. Open
Open
if (
(event.which === $.ui.keyCode.COMMA && event.shiftKey === false) ||
event.which === $.ui.keyCode.ENTER ||
(
event.which == $.ui.keyCode.TAB &&
Function destroy
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
destroy: function () {
$.Widget.prototype.destroy.call(this);
this.element.unbind('.tagit');
this.tagList.unbind('.tagit');
Function removeTag
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeTag: function (tag, animate) {
animate = typeof animate === 'undefined' ? this.options.animate : animate;
tag = $(tag);