app/scripts/directives/dropped-image.js
Function postLink
has 200 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function postLink(scope, element, attrs, controllers) {
var ctrl = controllers[0],
imgConfig = {},
parentCtrl = controllers[1],
$element = $(element),
Function setSize
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.setSize = function (size, initPhase) {
var width;
$parent = findParent();
if (size.match(/^\d+px$/)) {
Function setAlignment
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.setAlignment = function (position) {
var cssFloat,
cssMargin;
switch (position) {