text: var StoreTemplate = require('./Template');
  var DataService = require('../services/data');
  var AppDispatcher = require('../dispatcher/AppDispatcher.js');
  var Constants = require('../constants/blog');
  
  var Store = new StoreTemplate(DataService.blog);
  
  AppDispatcher.register(function(action) {
  	switch(action.actionType) {
  
  		case Constants.BLOG_CREATE:
  			Store.insert(action.doc, function(data) {
  				Store.emitChange();
  			});
  			break;
  
  		case Constants.BLOG_UPDATE:
  			Store.update(action.doc, function(data) {
  				Store.emitChange();
  			});
  			break;
  
  		case Constants.BLOG_DESTROY:
  			Store.delete(action.doc, function(data) {
  				Store.emitChange();
  			});
  			break;
  	}
  });
  
  module.exports = Store;
  