o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357730062.578707 :@value"{I" class:EFI"BundledAsset; FI"logical_path; FI"/iugu-ux/components/usecode/iugu-ui-view.js; FI" pathname; FI"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-view.js.coffee; FI"content_type; FI"application/javascript; FI" mtime; FI"2013-01-09T08:39:47-02:00; FI"length; FijI"digest; F"%05b7140b08a325eeb354f20fb460556dI"source; FI"j(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; IuguUI.View = (function(_super) { __extends(View, _super); function View() { return View.__super__.constructor.apply(this, arguments); } View.prototype.layout = "iugu-ui-view"; View.prototype.initialize = function() { if (this.model) { Backbone.Validation.bind(this, { forceUpdate: true, valid: function(view, attr, selector) { return view.valid(view, attr, selector); }, invalid: function(view, attr, error, selector) { return view.invalid(view, attr, error, selector); } }); return this.model.on('error', this.addErrors, this); } }; View.prototype.valid = function(view, attr, selector) { var control, ctrlGroup, group, list; control = view.$('[' + selector + '=\"' + attr + '\"]'); group = control.parents(".form-group"); ctrlGroup = control.parents(".control-group"); list = group.find(".error-list"); if (view.model.preValidate(attr, control.val())) { return; } list.find(".error-" + attr).remove(); ctrlGroup.removeClass("error"); if (list.find(".error").length === 0) { return list.parent().remove(); } }; View.prototype.invalid = function(view, attr, error, selector) { var control, ctrlGroup, group, list; control = view.$('[' + selector + '=\"' + attr + '\"]'); group = control.parents(".form-group"); ctrlGroup = control.parents(".control-group"); list = group.find(".error-list"); ctrlGroup.addClass("error"); if (list.length === 0) { group.prepend('