Skip to content

Commit 061d170

Browse files
committed
run build
1 parent c696d43 commit 061d170

File tree

5 files changed

+50
-53
lines changed

5 files changed

+50
-53
lines changed

build/build-docs.js

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@
8181
}(0, _NodeList2.default)('.bs-docs-section', this.$els.sections).each(function (el) {
8282
list.push({
8383
id: el.id,
84-
name: (0, _NodeList2.default)('.anchor', el).textContent,
84+
name: el.querySelector('.anchor').innerText,
8585
el: el
8686
});
8787
});
88+
console.log(list);
8889
}
8990
});
9091

@@ -271,7 +272,7 @@
271272
key: 'find',
272273
value: function find(element) {
273274
var nodes = [];
274-
this.forEach(function (el) {
275+
this.each(function (el) {
275276
var node = el.querySelectorAll(element);
276277
if (node && node.length) nodes.push(node);
277278
});
@@ -415,14 +416,12 @@
415416
}, {
416417
key: 'toggleClass',
417418
value: function toggleClass(classes, value) {
418-
var _this4 = this;
419-
420419
var method = value === undefined || value === null ? 'toggle' : value ? 'add' : 'remove';
421420
if (typeof classes === 'string') {
422421
classes = classes.trim().replace(/\s+/, ' ').split(' ');
423422
}
424-
classes.forEach(function (c) {
425-
return _this4.each(function (el) {
423+
this.each(function (el) {
424+
return classes.forEach(function (c) {
426425
return el.classList[method](c);
427426
});
428427
});
@@ -432,7 +431,7 @@
432431
key: 'get',
433432
value: function get(prop) {
434433
var arr = [];
435-
this.forEach(function (el) {
434+
this.each(function (el) {
436435
if (el !== null) {
437436
el = el[prop];
438437
}
@@ -444,7 +443,7 @@
444443
key: 'set',
445444
value: function set(prop, value) {
446445
if (prop.constructor === Object) {
447-
this.forEach(function (el) {
446+
this.each(function (el) {
448447
if (el) {
449448
for (var key in prop) {
450449
if (key in el) {
@@ -454,7 +453,7 @@
454453
}
455454
});
456455
} else {
457-
this.forEach(function (el) {
456+
this.each(function (el) {
458457
if (prop in el) {
459458
el[prop] = value;
460459
}
@@ -472,7 +471,7 @@
472471
var method = ArrayProto.shift.call(args);
473472
var arr = [];
474473
var returnThis = true;
475-
this.forEach(function (el) {
474+
this.each(function (el) {
476475
if (el && el[method] instanceof Function) {
477476
el = el[method].apply(el, args);
478477
arr.push(el);
@@ -496,8 +495,6 @@
496495

497496
// event handlers
498497
value: function on(events, selector, callback) {
499-
var _this5 = this;
500-
501498
if (typeof events === 'string') {
502499
events = events.trim().replace(/\s+/, ' ').split(' ');
503500
}
@@ -521,8 +518,8 @@
521518
} : function (e) {
522519
fn.apply(this, [e, this]);
523520
};
524-
events.forEach(function (event) {
525-
_this5.forEach(function (el) {
521+
this.each(function (el) {
522+
events.forEach(function (event) {
526523
if (!el) return;
527524
el.addEventListener(event, callback, false);
528525
Events.push({
@@ -542,7 +539,7 @@
542539
events = null;
543540
}
544541
if (typeof events === 'string' && callback instanceof Function) {
545-
this.forEach(function (el) {
542+
this.each(function (el) {
546543
events.split(' ').forEach(function (event) {
547544
for (var e in Events) {
548545
if (Events[e] && Events[e].el === el && Events[e].event === event && Events[e].callback === callback) {
@@ -553,7 +550,7 @@
553550
});
554551
});
555552
} else if (typeof events === 'string') {
556-
this.forEach(function (el) {
553+
this.each(function (el) {
557554
events.split(' ').forEach(function (event) {
558555
for (var e in Events) {
559556
if (Events[e] && Events[e].el === el && Events[e].event === event) {
@@ -564,7 +561,7 @@
564561
});
565562
});
566563
} else if (callback instanceof Function) {
567-
this.forEach(function (el) {
564+
this.each(function (el) {
568565
for (var e in Events) {
569566
if (Events[e] && Events[e].el === el && Events[e].callback === callback) {
570567
Events[e].el.removeEventListener(Events[e].event, Events[e].callback);
@@ -573,7 +570,7 @@
573570
}
574571
});
575572
} else {
576-
this.forEach(function (el) {
573+
this.each(function (el) {
577574
for (var e in Events) {
578575
if (Events[e] && Events[e].el === el) {
579576
Events[e].el.removeEventListener(Events[e].event, Events[e].callback);
@@ -663,7 +660,7 @@
663660
}
664661
var div = document.createElement('div');
665662
function setterGetter(prop) {
666-
var _this6 = this;
663+
var _this4 = this;
667664

668665
if (div[prop] instanceof Function) {
669666
NL[prop] = function () {
@@ -684,13 +681,13 @@
684681
arr.push(undefined);
685682
}
686683
});
687-
return returnThis ? _this6 : flatten(arr, _this6);
684+
return returnThis ? _this4 : flatten(arr, _this4);
688685
};
689686
} else {
690687
(0, _defineProperty2.default)(NL, prop, {
691688
get: function get() {
692689
var arr = [];
693-
this.forEach(function (el) {
690+
this.each(function (el) {
694691
if (el !== null) {
695692
el = el[prop];
696693
}
@@ -699,7 +696,7 @@
699696
return flatten(arr, this);
700697
},
701698
set: function set(value) {
702-
this.forEach(function (el) {
699+
this.each(function (el) {
703700
if (el && prop in el) {
704701
el[prop] = value;
705702
}
@@ -2174,7 +2171,8 @@
21742171
var scroll = {};
21752172
var element = {};
21762173
var rect = this.$el.getBoundingClientRect();
2177-
var body = document.body[('Top', 'Left')].forEach(function (type) {
2174+
var body = document.body;
2175+
['Top', 'Left'].forEach(function (type) {
21782176
var t = type.toLowerCase();
21792177
var ret = window['page' + (type === 'Top' ? 'Y' : 'X') + 'Offset'];
21802178
var method = 'scroll' + type;
@@ -2262,7 +2260,8 @@
22622260
always: function always(fn) {
22632261
return p.done(fn).fail(fn);
22642262
}
2265-
}[('done', 'fail')].forEach(function (name) {
2263+
};
2264+
['done', 'fail'].forEach(function (name) {
22662265
data[name] = [];
22672266
p[name] = function (fn) {
22682267
if (fn instanceof Function) data[name].push(fn);

build/build-docs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-strap.js

Lines changed: 21 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-strap.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-strap.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)