Lines Matching full:this
34 …this._element.attr("data-" + s.toLowerCase(), !0).data(s, this), !1 === this._trigger("create") ? …
37 …this._trigger("destroy") ? this : (this._destroy(), this._trigger("destroyend"), this._element.rem…
40 …return !1 === this._trigger("reload") ? this : (t && this.options(t), this._reload(), this._trigge…
43 return this._element
46 if (0 === arguments.length) return t.extend({}, this._options);
48 if (s === void 0) return this._options[i] === void 0 ? null : this._options[i];
49 this._options[i] = s
50 } else this._options = t.extend({}, this._options, i);
51 return this
54 …this._carousel || (this._carousel = i.detectCarousel(this.options("carousel") || this._element), t…
58 return r = [this].concat(r || []), (e || this._element).each(function () {
59 …n = t.Event((i + "." + s).toLowerCase()), t(this).trigger(n, r), n.isDefaultPrevented() && (o = !0)
65 this._element = t(i), this.options(s), this._init(), this.create()
69 n = this;
70 return "string" == typeof i ? this.each(function () {
71 var r = t(this).data(s);
76 }) : this.each(function () {
77 var e = t(this).data(s);
78 e instanceof r ? e.reload(i) : new r(this, i)
100 return this.element().children().eq(0)
103 return this.list().children()
120 var t = this;
121 return this.onWindowResize = function () {
125 }, this
128 this._reload(), t(i).on("resize.jcarousel", this.onWindowResize)
131 t(i).off("resize.jcarousel", this.onWindowResize)
134 …this.vertical = this.options("vertical"), null == this.vertical && (this.vertical = this.list().he…
138 return /rtl/i.test(t(this).attr("dir")) ? (s = !0, !1) : void 0
140 }(this._element)), this.lt = this.vertical ? "top" : "left", this._items = null;
141 var i = this._target && this.index(this._target) >= 0 ? this._target : this.closest();
142 this.circular = "circular" === this.options("wrap"), this.underflow = !1;
147 …this._prepare(i), this.list().find("[data-jcarousel-clone]").remove(), this._items = null, this.un…
150 if (null === this._list) {
151 var i = this.options("list");
152 this._list = t.isFunction(i) ? i.call(this) : this._element.find(i)
154 return this._list
157 if (null === this._items) {
158 var i = this.options("items");
159 … this._items = (t.isFunction(i) ? i.call(this) : this.list().find(i)).not("[data-jcarousel-clone]")
161 return this._items
164 return this.items().index(t)
167 var i, e = this,
168 r = this.list().position()[this.lt],
171 a = this.vertical ? "bottom" : this.rtl ? "left" : "right";
172 …return this.rtl && !this.vertical && (r = -1 * (r + this.list().width() - this.clipping())), this.…
173 if (n = t(this), o) return !1;
182 return this._target
185 return this._first
188 return this._last
191 return this._visible
194 return this._fullyvisible
197 if (!1 === this._trigger("hasnext")) return !0;
198 var t = this.options("wrap"),
199 i = this.items().size() - 1;
200 …return i >= 0 && (t && "first" !== t || i > this.index(this._last) || this.tail && !this.inTail) ?…
203 if (!1 === this._trigger("hasprev")) return !0;
204 var t = this.options("wrap");
205 …return this.items().size() > 0 && (t && "last" !== t || this.index(this._first) > 0 || this.tail &…
208 return this._element["inner" + (this.vertical ? "Height" : "Width")]()
211 return t["outer" + (this.vertical ? "Height" : "Width")](!0)
214 if (this.animating) return this;
215 if (!1 === this._trigger("scroll", null, [i, e])) return this;
219 var o, a, l, h, u, c, f, d, _ = this.items().size() - 1,
221 m = this.options("wrap");
223 var v = this.index(this._last);
224 …& this.tail) this.inTail ? "both" === m || "last" === m ? this._scroll(0, e, r) : this._scroll(Mat…
225 …this.index(this._target), this.underflow && o === _ && ("circular" === m || "both" === m || "last"…
226 else if (l = o + p, this.circular && l > _) {
227 …this.items().get(-1); l > d++;) u = this.items().eq(0), c = this._visible.index(u) >= 0, c && u.af…
228 this._scroll(u, e, r)
229 } else this._scroll(Math.min(l, _), e, r)
230 } else if (this.inTail) this._scroll(Math.max(this.index(this._first) - p + 1, 0), e, r);
231 …this.index(this._first), o = this.index(this._target), h = this.underflow ? o : a, l = h - p, 0 >=…
232 else if (this.circular && 0 > l) {
233 for (d = l, u = this.items().get(0); 0 > d++;) {
234 …u = this.items().eq(-1), c = this._visible.index(u) >= 0, c && u.after(u.clone(!0).attr("data-jcar…
235 var g = s(this.list().position()[this.lt]),
236 y = this.dimension(u);
237 this.rtl && !this.vertical ? g += y : g -= y, f = {}, f[this.lt] = g + "px", this.move(f)
239 this._scroll(u, e, r)
240 } else this._scroll(Math.max(l, 0), e, r)
241 } else this._scroll(n.target, e, r);
242 return this._trigger("scrollend"), this
245 var e = this.list().position();
246 …& (t.left = e.left + s(t.left) + "px"), t.top && (t.top = e.top + s(t.top) + "px"), this.move(t, i)
250 var e = this.options("transitions"),
255 l = this.list();
263 t(this).css(c), f.call(this)
274 h.call(this)
278 if (this.animating) return t.isFunction(r) && r.call(this, !1), this;
279 … typeof i ? i = this.items().eq(i) : i.jquery === void 0 && (i = t(i)), 0 === i.size()) return t.i…
280 this.inTail = !1, this._prepare(i);
281 var n = this._position(i),
282 o = s(this.list().position()[this.lt]);
283 if (n === o) return t.isFunction(r) && r.call(this, !1), this;
285 return a[this.lt] = n + "px", this._animate(a, e, r), this
288 if (this.animating || !this.tail) return t.isFunction(s) && s.call(this, !1), this;
289 var e = this.list().position()[this.lt];
290 this.rtl ? e += this.tail : e -= this.tail, this.inTail = !0;
292 return r[this.lt] = e + "px", this._update({
293 target: this._target.next(),
294 fullyvisible: this._fullyvisible.slice(1).add(this._visible.last())
295 }), this._animate(r, i, s), this
298 if (e = e || t.noop, !1 === this._trigger("animate")) return e.call(this, !1), this;
299 this.animating = !0;
300 var r = this.options("animation"),
302 this.animating = !1;
303 var t = this.list().find("[data-jcarousel-clone]");
304 t.size() > 0 && (t.remove(), this._reload()), this._trigger("animateend"), e.call(this, !0)
305 }, this),
310 n(), a.call(this)
311 }, this.move(i, o), this
314 var e, r, n, o = this.index(i),
316 l = this.dimension(i),
317 h = this.clipping(),
318 u = this.vertical ? "bottom" : this.rtl ? "left" : "right",
319 c = this.options("center"),
329 if (e = this.items().eq(++a), 0 === e.size()) {
330 if (!this.circular) break;
331 if (e = this.items().eq(0), r = this._visible.index(e) >= 0, i.get(0) === e.get(0)) break;
332 if (r && e.after(e.clone(!0).attr("data-jcarousel-clone", !0)), this.list().append(e), !r) {
334 d[this.lt] = this.dimension(e) * (this.rtl ? -1 : 1), this.moveBy(d)
336 this._items = null
338 …if (l += this.dimension(e), f.last = e, f.visible = f.visible.add(e), n = s(e.css("margin-" + u)),…
340 if (!this.circular && !c && h > l)
343 if (e = this.items().eq(a), 0 === e.size()) break;
344 …if (l += this.dimension(e), f.first = e, f.visible = f.visible.add(e), n = s(e.css("margin-" + u))…
346 …this._update(f), this.tail = 0, c || "circular" === this.options("wrap") || "custom" === this.opti…
349 var i = this._first,
350 s = i.position()[this.lt],
351 e = this.options("center"),
352 r = e ? this.clipping() / 2 - this.dimension(i) / 2 : 0;
353 …this.rtl && !this.vertical ? (s -= this.clipping() - this.dimension(i), s += r) : s -= r, !e && (t…
356 var s, e = this,
358 target: this._target || t(),
359 first: this._first || t(),
360 last: this._last || t(),
361 visible: this._visible || t(),
362 fullyvisible: this._fullyvisible || t()
363 }, n = this.index(i.first || r.first) < this.index(r.first),
368 0 > r[s].index(this) && o.push(this)
370 0 > i[s].index(this) && a.push(this)
374 return this
382 o = this.index(this._fullyvisible.first()),
383 a = this.index(this._fullyvisible.last());
384 …a + n.target : "object" != typeof n.target ? n.target : this.index(n.target), o > r) return this.s…
385 if (r >= o && a >= r) return t.isFunction(e) && e.call(this, !1), this;
386 …for (var l, h = this.items(), u = this.clipping(), c = this.vertical ? "bottom" : this.rtl ? "left…
388 if (f += this.dimension(l), f >= u) {
396 return this.scroll(r, s, e)
409 this.onDestroy = t.proxy(function () {
410 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
411 }, this), this.onReload = t.proxy(this._reload, this), this.onEvent = t.proxy(function (i) {
413 var s = this.options("method");
414 …t.isFunction(s) ? s.call(this) : this.carousel().jcarousel(this.options("method"), this.options("t…
415 }, this)
418 …this.carousel().one("destroy.jcarousel", this.onDestroy).on("reloadend.jcarousel scrollend.jcarous…
421 …this._element.off(".jcarouselcontrol", this.onEvent), this.carousel().off("destroy.jcarousel", thi…
424 var i, s = t.jCarousel.parseTarget(this.options("target")),
425 e = this.carousel();
431 return this._active !== i && (this._trigger(i ? "active" : "inactive"), this._active = i), this
450 this.onDestroy = t.proxy(function () {
451 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
452 … }, this), this.onReload = t.proxy(this._reload, this), this.onScroll = t.proxy(this._update, this)
455 …this.carousel().one("destroy.jcarousel", this.onDestroy).on("reloadend.jcarousel", this.onReload).…
458 …this._clear(), this.carousel().off("destroy.jcarousel", this.onDestroy).off("reloadend.jcarousel",…
461 var i = this.options("perPage");
462 …if (this._pages = {}, this._items = {}, t.isFunction(i) && (i = i.call(this)), null == i) this._pa…
464 … for (var s, e = parseInt(i, 10) || 0, r = this.carousel().jcarousel("items"), n = 1, o = 0; ;) {
466 this._pages[n] = this._pages[n] ? this._pages[n].add(s) : s, 0 === o % e && n++
468 this._clear();
469 var a = this,
470 l = this.carousel().data("jcarousel"),
471 h = this._element,
472 u = this.options("item");
473 t.each(this._pages, function (i, s) {
482 l[this.options("method")](t)
484 }), this._update()
487 var i, s = this.carousel().jcarousel("target");
488 t.each(this._pages, function (t, e) {
490 return s.is(this) ? (i = t, !1) : void 0
492 …}), this._currentPage !== i && (this._trigger("inactive", this._items[this._currentPage]), this._t…
495 return this._items
498 this._element.empty(), this._currentPage = null
501 …for (var t, i = this.carousel().data("jcarousel"), s = i.items(), e = i.clipping(), r = 0, n = 0, …
519 this.onDestroy = t.proxy(function () {
520 this._destroy(), this.carousel().one("createend.jcarousel", t.proxy(this._create, this))
521 }, this), this.onAnimateEnd = t.proxy(this.start, this)
524 …this.carousel().one("destroy.jcarousel", this.onDestroy), this.options("autostart") && this.start()
527 this.stop(), this.carousel().off("destroy.jcarousel", this.onDestroy)
530 …return this.stop(), this.carousel().one("animateend.jcarousel", this.onAnimateEnd), this._timer = …
531 this.carousel().jcarousel("scroll", this.options("target"))
532 }, this), this.options("interval")), this
535 …return this._timer && (this._timer = clearTimeout(this._timer)), this.carousel().off("animateend.j…