Lines Matching refs:data

88       var data  = $this.data('bs.alert')
90 if (!data) $this.data('bs.alert', (data = new Alert(this)))
91 if (typeof option == 'string') data[option].call($this)
148 var data = $el.data()
152 if (data.resetText == null) $el.data('resetText', $el[val]())
156 $el[val](data[state] == null ? this.options[state] : data[state])
197 var data = $this.data('bs.button')
200 if (!data) $this.data('bs.button', (data = new Button(this, options)))
202 if (option == 'toggle') data.toggle()
203 else if (option) data.setState(option)
421 var data = $this.data('bs.carousel')
422 … var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
425 if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
426 if (typeof option == 'number') data.to(option)
427 else if (action) data[action]()
428 else if (options.interval) data.pause().cycle()
455 var options = $.extend({}, $target.data(), $this.data())
462 $target.data('bs.carousel').to(slideIndex)
475 Plugin.call($carousel, $carousel.data())
613 var data = $this.data('bs.dropdown')
615 if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
616 if (typeof option == 'string') data[option].call($this)
941 var data = $this.data('bs.modal')
942 var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
944 if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
945 if (typeof option == 'string') data[option](_relatedTarget)
946 else if (options.show) data.show(_relatedTarget)
972 …var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, …
1073 options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1098 obj : $(obj.currentTarget).data('bs.' + this.type)
1102 $(obj.currentTarget).data('bs.' + this.type, self)
1135 obj : $(obj.currentTarget).data('bs.' + this.type)
1139 $(obj.currentTarget).data('bs.' + this.type, self)
1191 .data('bs.' + this.type, this)
1445 self = $(e.currentTarget).data('bs.' + this.type)
1448 $(e.currentTarget).data('bs.' + this.type, self)
1483 var data = $this.data('bs.tooltip')
1486 if (!data && /destroy|hide/.test(option)) return
1487 if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1488 if (typeof option == 'string') data[option]()
1592 var data = $this.data('bs.popover')
1595 if (!data && /destroy|hide/.test(option)) return
1596 if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1597 if (typeof option == 'string') data[option]()
1645 var selector = $this.data('target')
1737 var data = $this.data('bs.tab')
1739 if (!data) $this.data('bs.tab', (data = new Tab(this)))
1740 if (typeof option == 'string') data[option]()
1894 var data = $this.data('bs.affix')
1897 if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
1898 if (typeof option == 'string') data[option]()
1923 var data = $spy.data()
1925 data.offset = data.offset || {}
1927 if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
1928 if (data.offsetTop != null) data.offset.top = data.offsetTop
1930 Plugin.call($spy, data)
1988 activesData = actives.data('bs.collapse')
1998 activesData || actives.data('bs.collapse', null)
2108 var data = $this.data('bs.collapse')
2109 … var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
2111 if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
2112 if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
2113 if (typeof option == 'string') data[option]()
2141 var data = $target.data('bs.collapse')
2142 var option = data ? 'toggle' : $this.data()
2207 var href = $el.data('target') || $el.attr('href')
2287 var data = $this.data('bs.scrollspy')
2290 if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
2291 if (typeof option == 'string') data[option]()
2316 Plugin.call($spy, $spy.data())