//var LikeBtnContainerModel = Backbone.Model.extend({
//	defaults:{
//		name:'like container'
//	}
//})
//
//var LikeBtnModel = Backbone.Model.extend({
//	defaults:{
//        is_liker: false,
//        label: 'like',
//        html: '',
//        is_metoo: false,
//        object_id: ''
//	}
//});
//
//var LikeBtnContainer = Backbone.Collection.extend({
//	model: LikeBtnContainerModel
//});
//
//var LikeBtn = Backbone.Collection.extend({
//	model: LikeBtnModel
//});
//
//var LikeBtnContainerView = Backbone.View.extend({
//	el: 'li.like_btn_container',
//	events:{
//		'click body': 'addLikeBtn'
//	},
//	
//	initialize: function(){
//		_.bindAll(this, 'render', 'addLikeBtnContainer', 'appendLikeBtnContainer');
//		
//		this.collection = new LikeBtnContainerModel();
//		this.collection.bind('add', 'appendLikeBtn');
//		this.render();
//		//Add like button for all the like container
//		
//
//		var likeBtn = new LikeBtn();
//		likeBtn.set({
//			is_liker: false,
//	        label: 'like',
//	        html: '',
//	        is_metoo: false,
//	        object_id: ''
//		});
//		this.collection.add(likeBtn);
//	},
//	
//	//Add like button container into collection
//	addLikeBtnContainer: function(){
//		var likeBtnContainer = new LikeButtonContainer();
//		likeBtnContainer.set({
//			name: 'test container'
//		});
//		this.collection.add(likeBtnContainer);
//	},
//	
//	//Render the like button container
//	appendLikeButtonContainer: function(likeBtn){
//		var likeButtonView = new LikeButtonView();
//	},
////	addLikeBtn: function(){
////		
////		var likeBtn = new LikeBtn();
////		likeBtn.set({
////			is_liker: false,
////	        label: 'like',
////	        html: '',
////	        is_metoo: false,
////	        object_id: ''
////		});
////		this.collection.add(likeBtn);
////	},
////	
////	appendLikeBtn: function(likeBtn){
////		alert(111);
////		var likeBtnView = new LikeBtnView({model: likeBtn});
//////		this.$('li').append(likeBtnView.render().el);
////	},
////	
////	render: function(){
//////		$(this.el).append('<a>test</a>');
////		_(this.collection.models).each(function(likeBtn){
////			alert('in like btn loop');
////			this.appendLikeBtn(likeBtn);
////		}, this);
////	}
//});
//
//var LikeBtnView = Backbone.View.extend({
//	tagName: 'a.like_btn',
//	
//	initialize: function(){
//		_.bindAll(this, 'render', 'toggleLike', 'updateLikeInfo');
//	},
//	
//	toggleLike: function(){
//		/*
//		if label='like':
//			label='unlike'
//		else:
//			label='like
//		*/
//		console.log('toggled');
//	},
//	
//	updateLikeInfo: function(){
//		console.log('update like info triggered');
//	},
//	
//	render: function(){
//		var compiled = _.template($('#like_btn_template').html());
//		var context = {item: this.model};
//		$(this.el).html(compiled(context));
//		return this;
//	}
//});

var LikeBtnModel = Backbone.Model.extend({
	defaults:{
        is_liker: false,
        label: 'like',
        html: '',
        is_metoo: false,
        object_id: ''
	}
});




