Add home login views tests

This commit is contained in:
Nicolas Le Goff
2013-06-11 15:13:25 +02:00
parent 39be3c7b1f
commit 1338475893
9 changed files with 183 additions and 6 deletions

View File

@@ -13,11 +13,11 @@ define([
"backbone",
"bootstrap",
"common/validator",
"apps/login/home/views/inputView"
"apps/login/home/views/input"
], function($, _, Backbone, bootstrap, Validator, InputView) {
var RegisterForm = Backbone.View.extend({
events: {
"submit": "onSubmit"
"submit": "_onSubmit"
},
initialize: function(options) {
var self = this;
@@ -36,7 +36,7 @@ define([
self._addInputView(input);
});
},
onSubmit: function (event) {
_onSubmit: function (event) {
var self = this;
// reset previous errors in the view