o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1392321407.990209: @value"§{I" class:EFI"BundledAsset;FI"logical_path;FI"0iugu-ux/components/usecode/iugu-ui-radio.js;TI" pathname;FI"r/Users/nkr/Projetos/Iugu/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-radio.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2014-01-14T09:59:34-02:00;FI" length;Fi™I" digest;F"%0784023195b1e40cac09d77d511b8a8dI" source;FI"™(function() { IuguUI.Radio = (function() { Radio.prototype.defaults = { none: false }; Radio.prototype.el = void 0; Radio.load = function(context) { var elements, selector; selector = "[data-type='iux.form.radio']"; if (context) { elements = context.find(selector); } else { elements = $(selector); } if (elements.length === 0) { return; } return elements.each(function() { if ($(this).data("iux.initialized") === true) { return; } new IuguUI.Radio({ el: this }); return $(this).data("iux.initialized", true); }); }; function Radio(options) { this.initialize(options); } Radio.prototype.initialize = function(options) { var radio_classes; _.bindAll(this); this.options = _.extend({}, this.defaults, options); if (!this.options.el) { return null; } if (this.options.el) { this.el = $(this.options.el); } radio_classes = "radio"; this.decorator = $('', { "class": radio_classes + (this.el.is(":checked") ? ' selected' : ''), html: '
', "data-mode": "toggle", "data-input": this.el.attr("id"), "data-group": this.el.attr("name") }); this.decorator.insertAfter(this.el); return new IuguUI.Button({ el: this.decorator, context: this.el }); }; return Radio; })(); this.IuguUI.Radio = IuguUI.Radio; $(function() { return IuguUI.Radio.load(); }); }).call(this); ;FI"required_assets_digest;F"%6d2db7e7f672df5bced53f1d74ae04b0I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862