src/affix/affix.js
Function $get
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function ($window, debounce, dimensions) {
var documentEl = angular.element($window.document);
var windowEl = angular.element($window);
- Create a ticketCreate a ticket
Function AffixFactory
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AffixFactory (element, config) {
var $affix = {};
// Common vars
- Create a ticketCreate a ticket
Function checkPosition
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$affix.checkPosition = function () {
// if (!this.$element.is(':visible')) return
var scrollTop = getScrollTop();
var position = dimensions.offset(element[0]);
- Create a ticketCreate a ticket
Function $parseOffsets
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$affix.$parseOffsets = function () {
var initialPosition = element[0].style.position;
var initialTop = element[0].style.top;
// Reset position to calculate correct offsetTop
if (options.inlineStyles) {
- Create a ticketCreate a ticket