src/ElementQueries.js
function queueQuery(selector, mode, property, value) {
            if (typeof(allQueries[selector]) === 'undefined') {
                allQueries[selector] = [];
                // add animation to trigger animationstart event, so we know exactly when a element appears in the DOM

                var id = idToSelectorMapping.length;
                cssStyleElement.innerHTML += '\n' + selector + ' {animation: 0.1s element-queries;}';
                cssStyleElement.innerHTML += '\n' + selector + ' > .resize-sensor {min-width: '+id+'px;}';
                idToSelectorMapping.push(selector);
            }

            allQueries[selector].push({
                mode: mode,
                property: property,
                value: value
            });
        }
function queueQuery(selector, mode, property, value) {
            if (typeof(allQueries[selector]) === 'undefined') {
                allQueries[selector] = [];
                // add animation to trigger animationstart event, so we know exactly when a element appears in the DOM

                var id = idToSelectorMapping.length;
                cssStyleElement.innerHTML += '\n' + selector + ' {animation: 0.1s element-queries;}';
                cssStyleElement.innerHTML += '\n' + selector + ' > .resize-sensor {min-width: '+id+'px;}';
                idToSelectorMapping.push(selector);
            }

            allQueries[selector].push({
                mode: mode,
                property: property,
                value: value
            });
        }
function queueQuery ( selector , mode , property , value ) { if ( typeof ( allQueries [ selector ] ) === 'undefined' ) { allQueries [ selector ] = [ ] ; // add animation to trigger animationstart event, so we know exactly when a element appears in the DOM var id = idToSelectorMapping . length ; cssStyleElement . innerHTML += '\n' + selector + ' {animation: 0.1s element-queries;}' ; cssStyleElement . innerHTML += '\n' + selector + ' > .resize-sensor {min-width: ' + id + 'px;}' ; idToSelectorMapping . push ( selector ) ; } allQueries [ selector ] . push ( { mode : mode , property : property , value : value } ) ; }
Stores rules to the selector that should be applied once resized.

@param {String} selector
@param {String} mode min|max
@param {String} property width|height
@param {String} value
Stores rules to the selector that should be applied once resized .