diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
| commit | d25ff2bddd44b9dac1ceb248424109d1782dd211 (patch) | |
| tree | 34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/tether/src/js/shift.js | |
| parent | a2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff) | |
| download | meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip | |
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/tether/src/js/shift.js')
| -rw-r--r-- | minionlivesmatter/templates/assets/tether/src/js/shift.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/minionlivesmatter/templates/assets/tether/src/js/shift.js b/minionlivesmatter/templates/assets/tether/src/js/shift.js deleted file mode 100644 index ecc872d..0000000 --- a/minionlivesmatter/templates/assets/tether/src/js/shift.js +++ /dev/null @@ -1,32 +0,0 @@ -/* globals TetherBase */ - -TetherBase.modules.push({ - position({top, left}) { - if (!this.options.shift) { - return; - } - - let shift = this.options.shift; - if (typeof this.options.shift === 'function') { - shift = this.options.shift.call(this, {top, left}); - } - - let shiftTop, shiftLeft; - if (typeof shift === 'string') { - shift = shift.split(' '); - shift[1] = shift[1] || shift[0]; - - ([shiftTop, shiftLeft] = shift); - - shiftTop = parseFloat(shiftTop, 10); - shiftLeft = parseFloat(shiftLeft, 10); - } else { - ([shiftTop, shiftLeft] = [shift.top, shift.left]); - } - - top += shiftTop; - left += shiftLeft; - - return {top, left}; - } -}); |
