SelectorsOptimizer.prototype.process = function (data) {
var tokens = new Tokenizer(this.context).toTokens(data);
- new SimpleOptimizer(this.options, this.context).optimize(tokens);
+ new SimpleOptimizer(this.options).optimize(tokens);
if (!this.options.noAdvanced)
new AdvancedOptimizer(this.options, this.context).optimize(tokens);
-var PropertyOptimizer = require('../../properties/optimizer');
var CleanUp = require('./clean-up');
var Splitter = require('../../utils/splitter');
var CHARSET_TOKEN = '@charset';
var CHARSET_REGEXP = new RegExp('^' + CHARSET_TOKEN, 'i');
-function SimpleOptimizer(options, context) {
+function SimpleOptimizer(options) {
this.options = options;
- this.propertyOptimizer = new PropertyOptimizer(this.options.compatibility, this.options.aggressiveMerging, context);
var units = ['px', 'em', 'ex', 'cm', 'mm', 'in', 'pt', 'pc', '%'];
if (['ie7', 'ie8'].indexOf(options.compatibility) == -1)