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

Version Path
ela-4.1.6 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.5 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.4 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.3 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.2 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.1 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.1.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-4.0.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.4.3 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.4.2 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.4.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.3.1 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.3.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.2.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.1.1 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.1.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-3.0.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-2.0.0 dist/app_js/vendor/backbone.poised/list/add_button.js
ela-1.1.0 dist/app_js/vendor/backbone.poised/list/add_button.js