Skip to content

Commit

Permalink
Compatibility for Google Closure Compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Oct 2, 2015
1 parent 598c31e commit 1c1540c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions cq-prolyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 1c1540c

Please # to comment.