Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.    global.views.CounterView = Backbone.View.extend({
  2.         tagName: 'div',
  3.         className: 'counter',
  4.  
  5.         initialize: function(opts) {
  6.             this.tasks = opts.tasks;
  7.         },
  8.  
  9.         render: function() {
  10.             console.dir(this.el);
  11.             this.$el.html( this.template( { count: this.tasks.length }));
  12.             return this;
  13.         },
  14.  
  15.         template: Handlebars.compile( $('#counter-template').html() )
  16.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top