cleaner return 2

This commit is contained in:
Zixaphir 2013-06-01 06:29:17 -07:00
parent 3d2fc98544
commit c9b7ba0962
4 changed files with 7 additions and 12 deletions

View File

@ -14340,17 +14340,15 @@
return Style.dynamicCSS.textContent = Style.dynamic();
},
select: function() {
var hyphenated, option, _i, _len, _ref, _results;
var hyphenated, option, _i, _len, _ref;
$.cb.value.call(this);
_ref = this.options;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
option = _ref[_i];
hyphenated = ("" + this.name + " " + option.value).toLowerCase().replace(/^4/, 'four').replace(/\s+/g, '-');
_results.push((option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated));
(option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated);
}
return _results;
}
},
mascot: {

View File

@ -14336,17 +14336,15 @@
return Style.dynamicCSS.textContent = Style.dynamic();
},
select: function() {
var hyphenated, option, _i, _len, _ref, _results;
var hyphenated, option, _i, _len, _ref;
$.cb.value.call(this);
_ref = this.options;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
option = _ref[_i];
hyphenated = ("" + this.name + " " + option.value).toLowerCase().replace(/^4/, 'four').replace(/\s+/g, '-');
_results.push((option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated));
(option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated);
}
return _results;
}
},
mascot: {

View File

@ -14318,17 +14318,15 @@
return Style.dynamicCSS.textContent = Style.dynamic();
},
select: function() {
var hyphenated, option, _i, _len, _ref, _results;
var hyphenated, option, _i, _len, _ref;
$.cb.value.call(this);
_ref = this.options;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
option = _ref[_i];
hyphenated = ("" + this.name + " " + option.value).toLowerCase().replace(/^4/, 'four').replace(/\s+/g, '-');
_results.push((option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated));
(option.value === this.value ? $.addClass : $.rmClass)(doc, hyphenated);
}
return _results;
}
},
mascot: {

View File

@ -815,6 +815,7 @@ Settings =
for option in @options
hyphenated = "#{@name} #{option.value}".toLowerCase().replace(/^4/, 'four').replace /\s+/g, '-'
(if option.value is @value then $.addClass else $.rmClass) doc, hyphenated
return
mascot:
category: ->