Skip to content

Instantly share code, notes, and snippets.

@steida steida/gist:969246
Created May 12, 2011

Embed
What would you like to do?
// Javascript
Toolbar.prototype.getDecoratedSliders = function() {
var el, slider, _i, _len, _ref, _results;
_ref = this.getElement().querySelectorAll(goog.getCssName('goog-slider'));
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
el = _ref[_i];
slider = new goog.ui.Slider;
slider.decorate(el);
_results.push(slider);
}
return _results;
};
// Coffeescript
Toolbar::getDecoratedSliders = ->
for el in @getElement().querySelectorAll goog.getCssName 'goog-slider'
slider = new goog.ui.Slider
slider.decorate el
slider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.