From ecfef4a560dece9dd911017efdfc63fcc04bedfc Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jun 2013 16:08:59 +0200 Subject: adapted to jshint config --- module/web/app/scripts/views/dashboard/dashboardView.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/web/app/scripts/views/dashboard/dashboardView.js') diff --git a/module/web/app/scripts/views/dashboard/dashboardView.js b/module/web/app/scripts/views/dashboard/dashboardView.js index 0ae9110d7..e7adba475 100644 --- a/module/web/app/scripts/views/dashboard/dashboardView.js +++ b/module/web/app/scripts/views/dashboard/dashboardView.js @@ -1,6 +1,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', './packageView', './fileView', 'hbs!tpl/dashboard/layout', 'select2'], - function($, Backbone, _, App, TreeCollection, packageView, fileView, template) { + function($, Backbone, _, App, TreeCollection, PackageView, FileView, template) { + 'use strict'; // Renders whole dashboard return Backbone.Marionette.ItemView.extend({ @@ -58,7 +59,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', }); }}); - this.$('.input').select2({tags: ["a", "b", "sdf"]}); + this.$('.input').select2({tags: ['a', 'b', 'sdf']}); }, update: function() { @@ -87,12 +88,12 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', // TODO sorting ?! // Append a package to the list, index, animate it appendPackage: function(pack, i, animation) { - var el = new packageView({model: pack}).render().el; + var el = new PackageView({model: pack}).render().el; $(this.ui.packages).appendWithAnimation(el, animation); }, appendFile: function(file, i, animation) { - var el = new fileView({model: file}).render().el; + var el = new FileView({model: file}).render().el; $(this.ui.files).appendWithAnimation(el, animation); }, -- cgit v1.2.3