From 1c1540c0ce1d023807f7376abe3f25c71992b1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Fri, 2 Oct 2015 16:54:37 +0200 Subject: [PATCH] Compatibility for Google Closure Compiler --- cq-prolyfill.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/cq-prolyfill.js b/cq-prolyfill.js index 79c56d6..1bf78f4 100644 --- a/cq-prolyfill.js +++ b/cq-prolyfill.js @@ -15,11 +15,13 @@ 'use strict'; // Public API -window.containerQueries = { - reprocess: reprocess, - reparse: reparse, - reevaluate: reevaluate, +/*eslint-disable dot-notation*/ +window['containerQueries'] = { + 'reprocess': reprocess, + 'reparse': reparse, + 'reevaluate': reevaluate, }; +/*eslint-enable dot-notation*/ // Reevaluate now setTimeout(reevaluate); @@ -44,12 +46,12 @@ var PSEUDO_ELEMENT_REGEXP = /::[^\s\[#+,.:>~]+/g; var PSEUDO_CLASS_REGEXP = /:[^\s\[#+,.:>~]+/g; var ELEMENT_REGEXP = /[a-z-]+/gi; var FIXED_UNIT_MAP = { - px: 1, - pt: 16 / 12, - pc: 16, - in: 96, - cm: 96 / 2.54, - mm: 96 / 25.4, + 'px': 1, + 'pt': 16 / 12, + 'pc': 16, + 'in': 96, + 'cm': 96 / 2.54, + 'mm': 96 / 25.4, }; var queries;