Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-11-01 07:14:23 +0300
committerMark Otto <markdotto@gmail.com>2016-11-01 07:14:23 +0300
commit76d53404b552c9870c3d3bf0e1f8976bb3136f13 (patch)
treefd1f0974c01b35b5bf5593d8a14dbf2b1fc91209 /js/dist/scrollspy.js
parentf734814f6ba6c86673f771b073425ca6f7f72693 (diff)
grunt
Diffstat (limited to 'js/dist/scrollspy.js')
-rw-r--r--js/dist/scrollspy.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/js/dist/scrollspy.js b/js/dist/scrollspy.js
index a4b2da36fb..fa26dcdb35 100644
--- a/js/dist/scrollspy.js
+++ b/js/dist/scrollspy.js
@@ -77,6 +77,8 @@ var ScrollSpy = function ($) {
var ScrollSpy = function () {
function ScrollSpy(element, config) {
+ var _this = this;
+
_classCallCheck(this, ScrollSpy);
this._element = element;
@@ -88,7 +90,9 @@ var ScrollSpy = function ($) {
this._activeTarget = null;
this._scrollHeight = 0;
- $(this._scrollElement).on(Event.SCROLL, $.proxy(this._process, this));
+ $(this._scrollElement).on(Event.SCROLL, function (event) {
+ return _this._process(event);
+ });
this.refresh();
this._process();
@@ -99,7 +103,7 @@ var ScrollSpy = function ($) {
// public
ScrollSpy.prototype.refresh = function refresh() {
- var _this = this;
+ var _this2 = this;
var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET;
@@ -132,8 +136,8 @@ var ScrollSpy = function ($) {
}).sort(function (a, b) {
return a[0] - b[0];
}).forEach(function (item) {
- _this._offsets.push(item[0]);
- _this._targets.push(item[1]);
+ _this2._offsets.push(item[0]);
+ _this2._targets.push(item[1]);
});
};