File bootstrap.js
has 1517 lines of code (exceeds 250 allowed). Consider refactoring.
* bootstrap-transition.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#transitions
* ===================================================
* Copyright 2013 Twitter, Inc.
Function slide
has 45 lines of code (exceeds 25 allowed). Consider refactoring.
, slide: function (type, next) {
var $active = this.$element.find('.item.active')
, $next = next || $active[type]()
, isCycling = this.interval
, direction = type == 'next' ? 'left' : 'right'
Function show
has 42 lines of code (exceeds 25 allowed). Consider refactoring.
, show: function () {
var $tip
, pos
, actualWidth
, actualHeight
Function applyPlacement
has 31 lines of code (exceeds 25 allowed). Consider refactoring.
, applyPlacement: function(offset, placement){
var $tip = this.tip()
, width = $tip[0].offsetWidth
, height = $tip[0].offsetHeight
, actualWidth
Function keydown
has 26 lines of code (exceeds 25 allowed). Consider refactoring.
, keydown: function (e) {
var $this
, $items
, $active
, $parent
Similar blocks of code found in 5 locations. Consider refactoring.
$.fn.tooltip = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('tooltip')
, options = typeof option == 'object' && option
Similar blocks of code found in 5 locations. Consider refactoring.
$.fn.scrollspy = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('scrollspy')
, options = typeof option == 'object' && option
Similar blocks of code found in 5 locations. Consider refactoring.
$.fn.popover = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('popover')
, options = typeof option == 'object' && option
Similar blocks of code found in 5 locations. Consider refactoring.
$.fn.typeahead = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('typeahead')
, options = typeof option == 'object' && option
Similar blocks of code found in 5 locations. Consider refactoring.
$.fn.affix = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('affix')
, options = typeof option == 'object' && option
Similar blocks of code found in 2 locations. Consider refactoring.
$.fn.dropdown = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('dropdown')
if (!data) $this.data('dropdown', (data = new Dropdown(this)))
Similar blocks of code found in 2 locations. Consider refactoring.
$.fn.alert = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('alert')
if (!data) $this.data('alert', (data = new Alert(this)))
Similar blocks of code found in 2 locations. Consider refactoring.
var $this = $(this)
, data = $this.data('collapse')
, options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
Similar blocks of code found in 2 locations. Consider refactoring.
var $this = $(this)
, data = $this.data('modal')
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
Similar blocks of code found in 2 locations. Consider refactoring.
$.support.transition && this.$element.hasClass('collapse') ?
this.$element.one($.support.transition.end, complete) :
complete()
Similar blocks of code found in 2 locations. Consider refactoring.
$.support.transition && this.$element.hasClass('fade')?
this.$backdrop.one($.support.transition.end, callback) :
callback()
Similar blocks of code found in 2 locations. Consider refactoring.
this.timeout = setTimeout(function() {
if (self.hoverState == 'out') self.hide()
}, self.options.delay.hide)
Similar blocks of code found in 2 locations. Consider refactoring.
this.timeout = setTimeout(function() {
if (self.hoverState == 'in') self.show()
}, self.options.delay.show)
Similar blocks of code found in 2 locations. Consider refactoring.
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
Similar blocks of code found in 2 locations. Consider refactoring.
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
Identical blocks of code found in 2 locations. Consider refactoring.
, destroy: function () {
this.hide().$element.off('.' + this.type).removeData(this.type)
}
Identical blocks of code found in 2 locations. Consider refactoring.
, destroy: function () {
this.hide().$element.off('.' + this.type).removeData(this.type)
}
Similar blocks of code found in 2 locations. Consider refactoring.
this.$element
.on('focus', $.proxy(this.focus, this))
.on('blur', $.proxy(this.blur, this))
Similar blocks of code found in 2 locations. Consider refactoring.
this.options.pause == 'hover' && this.$element
.on('mouseenter', $.proxy(this.pause, this))
.on('mouseleave', $.proxy(this.cycle, this))
Similar blocks of code found in 2 locations. Consider refactoring.
, blur: function (e) {
this.focused = false
if (!this.mousedover && this.shown) this.hide()
}
Similar blocks of code found in 2 locations. Consider refactoring.
, mouseleave: function (e) {
this.mousedover = false
if (!this.focused && this.shown) this.hide()
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.modal.noConflict = function () {
$.fn.modal = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.collapse.noConflict = function () {
$.fn.collapse = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.button.noConflict = function () {
$.fn.button = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.dropdown.noConflict = function () {
$.fn.dropdown = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.typeahead.noConflict = function () {
$.fn.typeahead = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.alert.noConflict = function () {
$.fn.alert = old
return this
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.tab.noConflict = function () {
$.fn.tab = old
return this
}
Identical blocks of code found in 2 locations. Consider refactoring.
if (!selector) {
selector = $this.attr('href')
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '')
}
Similar blocks of code found in 8 locations. Consider refactoring.
$.fn.carousel.noConflict = function () {
$.fn.carousel = old
return this
}
Identical blocks of code found in 2 locations. Consider refactoring.
if (!selector) {
selector = $this.attr('href')
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '')
}
There are no issues that match your filters.