Sha256: 3f5f1e1768e24170fb98bc6ea358604d3e78a43421638ea6dc29f58a393f17ec
Contents?: true
Size: 1.2 KB
Versions: 19
Compression:
Stored size: 1.2 KB
Contents
(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.List.AddButton = (function(superClass) { extend(AddButton, superClass); function AddButton() { this.add = bind(this.add, this); return AddButton.__super__.constructor.apply(this, arguments); } AddButton.prototype.tagName = 'li'; AddButton.prototype.className = 'add button'; AddButton.prototype.events = { 'tap': 'add' }; AddButton.prototype.initialize = function(arg) { this.label = arg.label; return AddButton.__super__.initialize.apply(this, arguments); }; AddButton.prototype.add = function() { return this.trigger('add'); }; AddButton.prototype.render = function() { this.$el.html(this.label); return this; }; return AddButton; })(Backbone.Poised.View); }).call(this);
Version data entries
19 entries across 19 versions & 1 rubygems