Fix JS codestyle

This commit is contained in:
Romain Neutron
2013-11-12 12:49:23 +01:00
parent 51fb364d13
commit 9fa95db23c
78 changed files with 5184 additions and 6309 deletions

View File

@@ -13,10 +13,10 @@ define([
"backbone",
"common/forms/views/error",
"common/multiviews"
], function($, _, Backbone, ErrorView, MultiViews) {
], function ($, _, Backbone, ErrorView, MultiViews) {
var InputView = Backbone.View.extend(_.extend({}, MultiViews, {
initialize: function(options) {
options = options || {};
initialize: function (options) {
options = options || {};
if (false === "name" in options) {
throw "Missing name attribute in input view";
@@ -35,7 +35,7 @@ define([
});
},
render: function () {
this._assignView({".error-view" : this.errorView});
this._assignView({".error-view": this.errorView});
},
showErrors: function (errors) {
this.render();