Lines Matching refs:data
144 var data = $this.data('bs.alert')
146 if (!data) $this.data('bs.alert', (data = new Alert(this)))
147 if (typeof option == 'string') data[option].call($this)
204 var data = $el.data()
208 if (data.resetText == null) $el.data('resetText', $el[val]())
212 $el[val](data[state] == null ? this.options[state] : data[state])
249 var data = $this.data('bs.button')
252 if (!data) $this.data('bs.button', (data = new Button(this, options)))
254 if (option == 'toggle') data.toggle()
255 else if (option) data.setState(option)
470 var data = $this.data('bs.carousel')
471 … var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
474 if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
475 if (typeof option == 'number') data.to(option)
476 else if (action) data[action]()
477 else if (options.interval) data.pause().cycle()
504 var options = $.extend({}, $target.data(), $this.data())
511 $target.data('bs.carousel').to(slideIndex)
524 Plugin.call($carousel, $carousel.data())
581 activesData = actives.data('bs.collapse')
591 activesData || actives.data('bs.collapse', null)
701 var data = $this.data('bs.collapse')
702 … var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
704 if (!data && options.toggle && option == 'show') options.toggle = false
705 if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
706 if (typeof option == 'string') data[option]()
734 var data = $target.data('bs.collapse')
735 var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this })
869 var data = $this.data('bs.dropdown')
871 if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
872 if (typeof option == 'string') data[option].call($this)
1140 var data = $this.data('bs.modal')
1141 var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
1143 if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
1144 if (typeof option == 'string') data[option](_relatedTarget)
1145 else if (options.show) data.show(_relatedTarget)
1171 …var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, …
1266 options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1291 obj : $(obj.currentTarget).data('bs.' + this.type)
1300 $(obj.currentTarget).data('bs.' + this.type, self)
1316 obj : $(obj.currentTarget).data('bs.' + this.type)
1320 $(obj.currentTarget).data('bs.' + this.type, self)
1366 .data('bs.' + this.type, this)
1609 self = $(e.currentTarget).data('bs.' + this.type)
1612 $(e.currentTarget).data('bs.' + this.type, self)
1634 var data = $this.data('bs.tooltip')
1638 if (!data && option == 'destroy') return
1640 if (!data) $this.data('bs.tooltip', (data = {}))
1641 if (!data[selector]) data[selector] = new Tooltip(this, options)
1643 if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1645 if (typeof option == 'string') data[option]()
1754 var data = $this.data('bs.popover')
1758 if (!data && option == 'destroy') return
1760 if (!data) $this.data('bs.popover', (data = {}))
1761 if (!data[selector]) data[selector] = new Popover(this, options)
1763 if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1765 if (typeof option == 'string') data[option]()
1846 var href = $el.data('target') || $el.attr('href')
1926 var data = $this.data('bs.scrollspy')
1929 if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
1930 if (typeof option == 'string') data[option]()
1955 Plugin.call($spy, $spy.data())
1987 var selector = $this.data('target')
2079 var data = $this.data('bs.tab')
2081 if (!data) $this.data('bs.tab', (data = new Tab(this)))
2082 if (typeof option == 'string') data[option]()
2236 var data = $this.data('bs.affix')
2239 if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
2240 if (typeof option == 'string') data[option]()
2265 var data = $spy.data()
2267 data.offset = data.offset || {}
2269 if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
2270 if (data.offsetTop != null) data.offset.top = data.offsetTop
2272 Plugin.call($spy, data)