public/browse/lib/angular-bindonce/bindonce.js
Function controller
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$scope', '$element', '$attrs', '$interpolate', function ($scope, $element, $attrs, $interpolate)
{
var showHideBinder = function (elm, attr, value)
{
var show = (attr === 'show') ? '' : 'none';
Function runBinders
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
runBinders: function ()
{
while (this.binders.length > 0)
{
var binder = this.binders.shift();
File bindonce.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function () {
"use strict";
/**
* Bindonce - Zero watches binding for AngularJs
* @version v0.3.3
Function compile
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function (tElement, tAttrs, transclude)
{
return function (scope, elm, attrs, controllers)
{
var bindonceController = controllers[0];
Consider simplifying this complex logical expression. Open
Open
if (value && value.length !== 0)
{
var v = angular.lowercase("" + value);
value = !(v === 'f' || v === '0' || v === 'false' || v === 'no' || v === 'n' || v === '[]');
}