Add tests

This commit is contained in:
Nicolas Le Goff
2014-02-28 17:38:38 +01:00
parent 4f66003425
commit 218da9a091
6 changed files with 151 additions and 9 deletions

View File

@@ -19,7 +19,8 @@ define([
], function ($, _, Backbone) {
var RightPanelView = Backbone.View.extend({
initialize: function (options) {
if (false === "eventManager" in options) {
options = options || {};
if (false === ("eventManager" in options)) {
throw "You must set en event manager";
}
this.delegateEvents(this.events);