Lines Matching refs:data
126 var data = $this.data('bs.alert')
128 if (!data) $this.data('bs.alert', (data = new Alert(this)))
129 if (typeof option == 'string') data[option].call($this)
185 var data = $el.data()
189 if (data.resetText == null) $el.data('resetText', $el[val]())
193 $el[val](data[state] == null ? this.options[state] : data[state])
230 var data = $this.data('bs.button')
233 if (!data) $this.data('bs.button', (data = new Button(this, options)))
235 if (option == 'toggle') data.toggle()
236 else if (option) data.setState(option)
448 var data = $this.data('bs.carousel')
449 … var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
452 if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
453 if (typeof option == 'number') data.to(option)
454 else if (action) data[action]()
455 else if (options.interval) data.pause().cycle()
482 var options = $.extend({}, $target.data(), $this.data())
489 $target.data('bs.carousel').to(slideIndex)
502 Plugin.call($carousel, $carousel.data())
558 activesData = actives.data('bs.collapse')
568 activesData || actives.data('bs.collapse', null)
678 var data = $this.data('bs.collapse')
679 … var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
681 if (!data && options.toggle && option == 'show') options.toggle = false
682 if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
683 if (typeof option == 'string') data[option]()
711 var data = $target.data('bs.collapse')
712 var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this })
845 var data = $this.data('bs.dropdown')
847 if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
848 if (typeof option == 'string') data[option].call($this)
1158 var data = $this.data('bs.modal')
1159 var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
1161 if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
1162 if (typeof option == 'string') data[option](_relatedTarget)
1163 else if (options.show) data.show(_relatedTarget)
1189 …var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, …
1283 options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1308 obj : $(obj.currentTarget).data('bs.' + this.type)
1317 $(obj.currentTarget).data('bs.' + this.type, self)
1333 obj : $(obj.currentTarget).data('bs.' + this.type)
1337 $(obj.currentTarget).data('bs.' + this.type, self)
1383 .data('bs.' + this.type, this)
1626 self = $(e.currentTarget).data('bs.' + this.type)
1629 $(e.currentTarget).data('bs.' + this.type, self)
1651 var data = $this.data('bs.tooltip')
1654 if (!data && option == 'destroy') return
1655 if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1656 if (typeof option == 'string') data[option]()
1764 var data = $this.data('bs.popover')
1767 if (!data && option == 'destroy') return
1768 if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1769 if (typeof option == 'string') data[option]()
1849 var href = $el.data('target') || $el.attr('href')
1929 var data = $this.data('bs.scrollspy')
1932 if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
1933 if (typeof option == 'string') data[option]()
1958 Plugin.call($spy, $spy.data())
1989 var selector = $this.data('target')
2081 var data = $this.data('bs.tab')
2083 if (!data) $this.data('bs.tab', (data = new Tab(this)))
2084 if (typeof option == 'string') data[option]()
2237 var data = $this.data('bs.affix')
2240 if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
2241 if (typeof option == 'string') data[option]()
2266 var data = $spy.data()
2268 data.offset = data.offset || {}
2270 if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
2271 if (data.offsetTop != null) data.offset.top = data.offsetTop
2273 Plugin.call($spy, data)