Lines Matching refs:data

145       var data  = $this.data('bs.alert')
147 if (!data) $this.data('bs.alert', (data = new Alert(this)))
148 if (typeof option == 'string') data[option].call($this)
205 var data = $el.data()
209 if (data.resetText == null) $el.data('resetText', $el[val]())
213 $el[val](data[state] == null ? this.options[state] : data[state])
254 var data = $this.data('bs.button')
257 if (!data) $this.data('bs.button', (data = new Button(this, options)))
259 if (option == 'toggle') data.toggle()
260 else if (option) data.setState(option)
478 var data = $this.data('bs.carousel')
479 … var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
482 if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
483 if (typeof option == 'number') data.to(option)
484 else if (action) data[action]()
485 else if (options.interval) data.pause().cycle()
512 var options = $.extend({}, $target.data(), $this.data())
519 $target.data('bs.carousel').to(slideIndex)
532 Plugin.call($carousel, $carousel.data())
590 activesData = actives.data('bs.collapse')
600 activesData || actives.data('bs.collapse', null)
710 var data = $this.data('bs.collapse')
711 … var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
713 if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
714 if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
715 if (typeof option == 'string') data[option]()
743 var data = $target.data('bs.collapse')
744 var option = data ? 'toggle' : $this.data()
883 var data = $this.data('bs.dropdown')
885 if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
886 if (typeof option == 'string') data[option].call($this)
1211 var data = $this.data('bs.modal')
1212 var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
1214 if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
1215 if (typeof option == 'string') data[option](_relatedTarget)
1216 else if (options.show) data.show(_relatedTarget)
1242 …var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, …
1343 options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1368 obj : $(obj.currentTarget).data('bs.' + this.type)
1372 $(obj.currentTarget).data('bs.' + this.type, self)
1405 obj : $(obj.currentTarget).data('bs.' + this.type)
1409 $(obj.currentTarget).data('bs.' + this.type, self)
1461 .data('bs.' + this.type, this)
1715 self = $(e.currentTarget).data('bs.' + this.type)
1718 $(e.currentTarget).data('bs.' + this.type, self)
1753 var data = $this.data('bs.tooltip')
1756 if (!data && /destroy|hide/.test(option)) return
1757 if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1758 if (typeof option == 'string') data[option]()
1862 var data = $this.data('bs.popover')
1865 if (!data && /destroy|hide/.test(option)) return
1866 if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1867 if (typeof option == 'string') data[option]()
1945 var href = $el.data('target') || $el.attr('href')
2025 var data = $this.data('bs.scrollspy')
2028 if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
2029 if (typeof option == 'string') data[option]()
2054 Plugin.call($spy, $spy.data())
2088 var selector = $this.data('target')
2180 var data = $this.data('bs.tab')
2182 if (!data) $this.data('bs.tab', (data = new Tab(this)))
2183 if (typeof option == 'string') data[option]()
2337 var data = $this.data('bs.affix')
2340 if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
2341 if (typeof option == 'string') data[option]()
2366 var data = $spy.data()
2368 data.offset = data.offset || {}
2370 if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
2371 if (data.offsetTop != null) data.offset.top = data.offsetTop
2373 Plugin.call($spy, data)