File notify.js
has 565 lines of code (exceeds 250 allowed). Consider refactoring.
* Eisen Frontend
* http://eisen-dev.github.io
*
* Copyright (c) 2016 Alice Ferrazzi <alice.ferrazzi@gmail.com> - Takuma Muramatsu <t.muramatu59@gmail.com>
Function setElementPosition
has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Notification.prototype.setElementPosition = function() {
var arrowColor, arrowCss, arrowSize, color, contH, contW, css, elemH, elemIH, elemIW, elemPos, elemW, gap, j, k, len, len1, mainFull, margin, opp, oppFull, pAlign, pArrow, pMain, pos, posFull, position, ref, wrapPos;
position = this.getPosition();
pMain = position[0];
pAlign = position[1];
Function run
has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Notification.prototype.run = function(data, options) {
var d, datas, name, type, value;
if ($.isPlainObject(options)) {
$.extend(this.options, options);
} else if ($.type(options) === "string") {
Function addStyle
has 44 lines of code (exceeds 25 allowed). Consider refactoring.
var addStyle = function(name, def) {
if (!name) {
throw "Missing Style name";
}
if (!def) {
Function show
has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Notification.prototype.show = function(show, userCallback) {
var args, callback, elems, fn, hidden;
callback = (function(_this) {
return function() {
if (!show && !_this.elem) {
Similar blocks of code found in 2 locations. Consider refactoring.
if (pos.length === 1 || ((ref1 = pos[0], indexOf.call(vAligns, ref1) >= 0) && (ref2 = pos[1], indexOf.call(hAligns, ref2) < 0)) || ((ref3 = pos[0], indexOf.call(hAligns, ref3) >= 0) && (ref4 = pos[1], indexOf.call(vAligns, ref4) < 0))) {
There are no issues that match your filters.