Small optimization

This commit is contained in:
Zixaphir 2014-01-04 14:52:04 -07:00
parent 22bedd63e0
commit 691f3e89d7
3 changed files with 5 additions and 8 deletions

View File

@ -13063,14 +13063,12 @@
var fn;
root || (root = d.body);
fn = function(items, type) {
var func, item, _i, _len, _results;
var func, item, _i, _len;
func = Rice[type];
_results = [];
for (_i = 0, _len = items.length; _i < _len; _i++) {
item = items[_i];
_results.push(func(item));
func(item);
}
return _results;
};
fn($$('[type=checkbox]:not(.riced)', root), 'checkbox');
return fn($$('select:not(.riced)', root), 'select');

View File

@ -13068,14 +13068,12 @@
var fn;
root || (root = d.body);
fn = function(items, type) {
var func, item, _i, _len, _results;
var func, item, _i, _len;
func = Rice[type];
_results = [];
for (_i = 0, _len = items.length; _i < _len; _i++) {
item = items[_i];
_results.push(func(item));
func(item);
}
return _results;
};
fn($$('[type=checkbox]:not(.riced)', root), 'checkbox');
return fn($$('select:not(.riced)', root), 'select');

View File

@ -68,6 +68,7 @@ Rice =
fn = (items, type) ->
func = Rice[type]
func item for item in items
return
fn $$('[type=checkbox]:not(.riced)', root), 'checkbox'
fn $$('select:not(.riced)', root), 'select'