Skip to content

Commit

Permalink
Merge pull request shipshapecode#97 from HubSpot/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
geekjuice committed Jul 13, 2015
2 parents 3796885 + e8d4872 commit fad4137
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tether",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "http://github.hubspot.com/tether",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tether",
"repo": "HubSpot/tether",
"version": "1.0.2",
"version": "1.0.3",
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
56 changes: 28 additions & 28 deletions dist/js/tether.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! tether 1.0.2 */
/*! tether 1.0.3 */

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -224,7 +224,7 @@ function addClass(el, name) {
});
} else {
removeClass(el, name);
var cls = getClassName(el) + ' #{name}';
var cls = getClassName(el) + (' ' + name);
setClassName(el, cls);
}
}
Expand Down Expand Up @@ -323,10 +323,6 @@ var Evented = (function () {
}, {
key: 'trigger',
value: function trigger(event) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}

if (typeof this.bindings !== 'undefined' && this.bindings[event]) {
var i = 0;
while (i < this.bindings[event].length) {
Expand All @@ -340,6 +336,10 @@ var Evented = (function () {
context = this;
}

for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}

handler.apply(context, args);

if (once) {
Expand Down Expand Up @@ -374,9 +374,9 @@ TetherBase.Utils = {

'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();

function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

Expand Down Expand Up @@ -517,12 +517,12 @@ var attachmentToOffset = function attachmentToOffset(attachment) {
};

function addOffset() {
var out = { top: 0, left: 0 };

for (var _len = arguments.length, offsets = Array(_len), _key = 0; _key < _len; _key++) {
offsets[_key] = arguments[_key];
}

var out = { top: 0, left: 0 };

offsets.forEach(function (_ref) {
var top = _ref.top;
var left = _ref.left;
Expand Down Expand Up @@ -596,7 +596,7 @@ var TetherClass = (function () {
if (typeof classes !== 'undefined' && classes[key]) {
return this.options.classes[key];
} else if (this.options.classPrefix) {
return '' + this.options.classPrefix + '-' + key;
return this.options.classPrefix + '-' + key;
} else {
return key;
}
Expand Down Expand Up @@ -851,22 +851,22 @@ var TetherClass = (function () {
var add = this._addAttachClasses;

if (elementAttach.top) {
add.push('' + this.getClass('element-attached') + '-' + elementAttach.top);
add.push(this.getClass('element-attached') + '-' + elementAttach.top);
}
if (elementAttach.left) {
add.push('' + this.getClass('element-attached') + '-' + elementAttach.left);
add.push(this.getClass('element-attached') + '-' + elementAttach.left);
}
if (targetAttach.top) {
add.push('' + this.getClass('target-attached') + '-' + targetAttach.top);
add.push(this.getClass('target-attached') + '-' + targetAttach.top);
}
if (targetAttach.left) {
add.push('' + this.getClass('target-attached') + '-' + targetAttach.left);
add.push(this.getClass('target-attached') + '-' + targetAttach.left);
}

var all = [];
sides.forEach(function (side) {
all.push('' + _this4.getClass('element-attached') + '-' + side);
all.push('' + _this4.getClass('target-attached') + '-' + side);
all.push(_this4.getClass('element-attached') + '-' + side);
all.push(_this4.getClass('target-attached') + '-' + side);
});

defer(function () {
Expand Down Expand Up @@ -1123,15 +1123,15 @@ var TetherClass = (function () {
}
} else {
if (_same.top) {
css.top = '' + _pos.top + 'px';
css.top = _pos.top + 'px';
} else {
css.bottom = '' + _pos.bottom + 'px';
css.bottom = _pos.bottom + 'px';
}

if (_same.left) {
css.left = '' + _pos.left + 'px';
css.left = _pos.left + 'px';
} else {
css.right = '' + _pos.right + 'px';
css.right = _pos.right + 'px';
}
}
};
Expand Down Expand Up @@ -1208,7 +1208,7 @@ var Tether = extend(TetherClass, TetherBase);

'use strict';

function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();

var _TetherBase$Utils = TetherBase.Utils;
var getBounds = _TetherBase$Utils.getBounds;
Expand Down Expand Up @@ -1302,7 +1302,7 @@ TetherBase.modules.push({

allClasses.forEach(function (cls) {
['left', 'top', 'right', 'bottom'].forEach(function (side) {
allClasses.push('' + cls + '-' + side);
allClasses.push(cls + '-' + side);
});
});

Expand Down Expand Up @@ -1527,7 +1527,7 @@ TetherBase.modules.push({

addClasses.push(pinnedClass);
pinned.forEach(function (side) {
addClasses.push('' + pinnedClass + '-' + side);
addClasses.push(pinnedClass + '-' + side);
});
})();
}
Expand All @@ -1543,7 +1543,7 @@ TetherBase.modules.push({

addClasses.push(oobClass);
oob.forEach(function (side) {
addClasses.push('' + oobClass + '-' + side);
addClasses.push(oobClass + '-' + side);
});
})();
}
Expand Down Expand Up @@ -1623,15 +1623,15 @@ TetherBase.modules.push({
var sides = ['left', 'top', 'right', 'bottom'];
allClasses.push(this.getClass('abutted'));
sides.forEach(function (side) {
allClasses.push('' + _this.getClass('abutted') + '-' + side);
allClasses.push(_this.getClass('abutted') + '-' + side);
});

if (abutted.length) {
addClasses.push(this.getClass('abutted'));
}

abutted.forEach(function (side) {
addClasses.push('' + _this.getClass('abutted') + '-' + side);
addClasses.push(_this.getClass('abutted') + '-' + side);
});

defer(function () {
Expand All @@ -1648,7 +1648,7 @@ TetherBase.modules.push({

'use strict';

function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();

TetherBase.modules.push({
position: function position(_ref) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tether.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tether",
"version": "1.0.2",
"version": "1.0.3",
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.",
"authors": [
"Zack Bloom <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function addClass(el, name) {
});
} else {
removeClass(el, name);
const cls = getClassName(el) + ` #{name}`;
const cls = getClassName(el) + ` ${name}`;
setClassName(el, cls);
}
}
Expand Down

0 comments on commit fad4137

Please sign in to comment.