ready: function() {
	var handler = this;
	this.$('.buttons > a').each(function() {
		$(this).click(function() {
			var name = $(this).attr('class');
			handler.$('.containers div:not(.' + name + ')').hide();
			handler.$('.containers div.' + name).toggle();
		});
	});
	this.$('.clearCache').click(function() {
		handler.ajax('clearCache', {
			'CM_Cache': handler.$('#CM_Cache').is(':checked'),
			'CM_CacheLocal': handler.$('#CM_CacheLocal').is(':checked')
		}, {
			success: function() {
				location.reload();
			}
		});
	});

	_.each(cm.model.types, function(modelType, modelName) {
		_.each(cm.action.types, function(actionType, actionName) {
			handler.bindAction(actionType, modelType, function(action, model, data) {
				var msg = "ACTION: <[ACTOR:" + action.actor.id + "] , " + actionName + " , " + "[" + modelName + ":" + JSON.stringify(model._id) + "]>";
				msg += " (" + JSON.stringify(data) + ")";
				handler.alert(msg);
			});
		});
	});
},

alert: function(msg) {
	var $msg = $("<li>" + msg + "</li>");
	this.$(".alerts").append($msg);
	$msg.delay(8000).slideUp(200, function() {
		$(this).remove();
	});
}

ready: function() {
	var handler = this;
	this.$('.buttons > a').each(function() {
		$(this).click(function() {
			var name = $(this).attr('class');
			handler.$('.containers div:not(.' + name + ')').hide();
			handler.$('.containers div.' + name).toggle();
		});
	});
	this.$('.clearCache').click(function() {
		handler.ajax('clearCache', {
			'CM_Cache': handler.$('#CM_Cache').is(':checked'),
			'CM_CacheLocal': handler.$('#CM_CacheLocal').is(':checked')
		}, {
			success: function() {
				location.reload();
			}
		});
	});

	_.each(cm.model.types, function(modelType, modelName) {
		_.each(cm.action.types, function(actionType, actionName) {
			handler.bindAction(actionType, modelType, function(action, model, data) {
				var msg = "ACTION: <[ACTOR:" + (action.actor ? action.actor.id : null) + "] , " + actionName + " , " + "[" + modelName + ":" + JSON.stringify(model._id) + "]>";
				msg += " (" + JSON.stringify(data) + ")";
				handler.alert(msg);
			});
		});
	});
},

alert: function(msg) {
	var $msg = $("<li>" + msg + "</li>");
	this.$(".alerts").append($msg);
	$msg.delay(8000).slideUp(200, function() {
		$(this).remove();
	});
}

Debug cmp should allow empty action-actor