Skip to content

Commit abc16a9

Browse files
author
Nick Hwang
committed
Fix incorrect defaults for method args
1 parent 76f3fbb commit abc16a9

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

dist/js/tether.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ var TetherClass = (function () {
834834
value: function updateAttachClasses(elementAttach, targetAttach) {
835835
var _this4 = this;
836836

837-
elementAttach = this.attachment;
838-
targetAttach = this.targetAttachment;
837+
elementAttach = elementAttach || this.attachment;
838+
targetAttach = targetAttach || this.targetAttachment;
839839
var sides = ['left', 'top', 'bottom', 'right', 'middle', 'center'];
840840

841841
if (typeof this._addAttachClasses !== 'undefined' && this._addAttachClasses.length) {
@@ -866,8 +866,6 @@ var TetherClass = (function () {
866866
var all = [];
867867
sides.forEach(function (side) {
868868
all.push('' + _this4.getClass('element-attached') + '-' + side);
869-
});
870-
sides.forEach(function (side) {
871869
all.push('' + _this4.getClass('target-attached') + '-' + side);
872870
});
873871

0 commit comments

Comments
 (0)