Small optimization
This commit is contained in:
parent
22bedd63e0
commit
691f3e89d7
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user