(function() { var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, 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; Backbone.Poised.ValueControl = (function(superClass) { extend(ValueControl, superClass); function ValueControl() { this.render = bind(this.render, this); return ValueControl.__super__.constructor.apply(this, arguments); } ValueControl.prototype.initialize = function(options) { if (options == null) { options = {}; } ValueControl.__super__.initialize.apply(this, arguments); return this.options = _.chain(options).pick('model', 'attribute', 'unit', 'precision').value(); }; ValueControl.prototype.render = function() { var view; ValueControl.__super__.render.apply(this, arguments); this.subviews.value = view = new Backbone.Poised.Value(this.options); this.$info.append(view.render().el); return this; }; return ValueControl; })(Backbone.Poised.BaseControl); }).call(this);