]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update rtl imports to use 'rtl as Rtl'
authorKevin Ball <kmball11@gmail.com>
Wed, 26 Apr 2017 20:01:23 +0000 (13:01 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 26 Apr 2017 20:01:23 +0000 (13:01 -0700)
js/foundation.dropdownMenu.js
js/foundation.slider.js
js/foundation.util.box.js
js/foundation.util.keyboard.js

index b0e9cb9c9c0180ef8d99742392c0bf6cf8f8bf4e..8895ff396e04f1362867ce4917a07381921fcd73 100644 (file)
@@ -4,10 +4,9 @@ import $ from 'jquery';
 import { Keyboard } from './foundation.util.keyboard';
 import { Nest } from './foundation.util.nest';
 import { Box } from './foundation.util.box';
-import { rtl } from './foundation.util.core';
+import { rtl as Rtl } from './foundation.util.core';
 import { Plugin } from './foundation.plugin';
 
-const Rtl = rtl;
 
 /**
  * DropdownMenu module.
index 06bce99b455b232d26f816aadea65a9d9dfe9ffb..d80ef018179fdce82bef7c1a08c2f2d43d553c57 100644 (file)
@@ -3,8 +3,7 @@
 import $ from 'jquery';
 import { Keyboard } from './foundation.util.keyboard';
 import { Move } from './foundation.util.motion';
-import { GetYoDigits, rtl } from './foundation.util.core';
-let Rtl = rtl;
+import { GetYoDigits, rtl as Rtl } from './foundation.util.core';
 
 import { Plugin } from './foundation.plugin';
 
index de8b5d99cced8c2a8c07f2d28dfd6d02e944011a..d1f220928e985135632b84173af9a164326b2b2b 100644 (file)
@@ -1,9 +1,7 @@
 'use strict';
 
 
-import { rtl } from "./foundation.util.core";
-
-var Rtl = rtl;
+import { rtl as Rtl } from "./foundation.util.core";
 
 var Box = {
   ImNotTouchingYou: ImNotTouchingYou,
index 48d064517a5d4585cc86c4775006ca4e3d9d5e14..3c1acdc15d737f7549c7cb13cc71d77cebcda94f 100644 (file)
@@ -9,7 +9,7 @@
 'use strict';
 
 import $ from 'jquery';
-import { rtl } from './foundation.util.core';
+import { rtl as Rtl } from './foundation.util.core';
 
 const keyCodes = {
   9: 'TAB',
@@ -80,7 +80,7 @@ var Keyboard = {
     if (typeof commandList.ltr === 'undefined') { // this component does not differentiate between ltr and rtl
         cmds = commandList; // use plain list
     } else { // merge ltr and rtl: if document is rtl, rtl overwrites ltr and vice versa
-        if (rtl()) cmds = $.extend({}, commandList.ltr, commandList.rtl);
+        if (Rtl()) cmds = $.extend({}, commandList.ltr, commandList.rtl);
 
         else cmds = $.extend({}, commandList.rtl, commandList.ltr);
     }