Menu icon Foundation
F6 - Syntax errors in IE9-11

Getting syntax errors that break javascript functionality when included some individual foundation "util" libraries. It seems to only happen in IE browsers.

To reproduce:

  • Include the foundation.util.mediaQuery.js file in your project.
  • Open up for your site in Internet Explorer
  • Open the browser's console and you'll see an error similar to SCRIPT1003: Expected ':'

If you click on the error, you'll be taken to the line in the code that is causing the issue, which is the "_init() {" line in the code below:

var MediaQuery = {
  queries: [],

  current: '',

  /**
   * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher.
   * @function
   * @private
   */
  _init() {

 

IE also has issues with the ` character used in these individual libraries as well. Only way around it for me was to find and replace all of these characters with a normal quote. Please fix.

F6syntax errorIE

Getting syntax errors that break javascript functionality when included some individual foundation "util" libraries. It seems to only happen in IE browsers.

To reproduce:

  • Include the foundation.util.mediaQuery.js file in your project.
  • Open up for your site in Internet Explorer
  • Open the browser's console and you'll see an error similar to SCRIPT1003: Expected ':'

If you click on the error, you'll be taken to the line in the code that is causing the issue, which is the "_init() {" line in the code below:

var MediaQuery = {
  queries: [],

  current: '',

  /**
   * Initializes the media query helper, by extracting the breakpoint list from the CSS and activating the breakpoint watcher.
   * @function
   * @private
   */
  _init() {

 

IE also has issues with the ` character used in these individual libraries as well. Only way around it for me was to find and replace all of these characters with a normal quote. Please fix.