From d25ff2bddd44b9dac1ceb248424109d1782dd211 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 25 Mar 2017 13:13:57 +0100 Subject: add minionlivesmatter as submodule --- .../templates/assets/tether/src/js/shift.js | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 minionlivesmatter/templates/assets/tether/src/js/shift.js (limited to 'minionlivesmatter/templates/assets/tether/src/js/shift.js') 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}; - } -}); -- cgit v1.3.1