app/assets/javascripts/jquery.barrating.js
Function BarRating
has 264 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var BarRating = (function() {
function BarRating() {
var self = this;
Function BarRating
has 256 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BarRating() {
var self = this;
// wrap element in a wrapper div
var wrapElement = function() {
File jquery.barrating.js
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery Bar Rating Plugin v1.1.3
*
* http://github.com/antennaio/jquery-bar-rating
*
Function attachClickHandler
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var attachClickHandler = function($elements) {
$elements.on('click.barrating', function(event) {
var $a = $(this),
options = getData('userOptions'),
value,
Function buildWidget
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var buildWidget = function() {
var $w = $('<div />', { 'class': 'br-widget' });
// create A elements that will replace OPTIONs
self.$elem.find('option').each(function() {