Sha256: bcbfae3666aaac4cfda407b89fd9ed3fdc1ac9324ee82e321ee1ef11c37ce466
Contents?: true
Size: 1.09 KB
Versions: 50
Compression:
Stored size: 1.09 KB
Contents
I"P(function() { var extend = 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; }, hasProp = {}.hasOwnProperty; Quby.Views.QuestionOptionView = (function(superClass) { extend(QuestionOptionView, superClass); function QuestionOptionView() { return QuestionOptionView.__super__.constructor.apply(this, arguments); } QuestionOptionView.prototype.tagName = "option"; QuestionOptionView.prototype.initialize = function() { return this.model.set("view", this); }; QuestionOptionView.prototype.events = { "click": "clicked" }; QuestionOptionView.prototype.clicked = function() { return this.model.trigger("clicked", this.model); }; QuestionOptionView.prototype.chosen = function() { return this.$el.is(":selected, :checked"); }; return QuestionOptionView; })(Backbone.View); }).call(this); :ET
Version data entries
50 entries across 29 versions & 1 rubygems