some js cleanup.

This commit is contained in:
kay.one 2013-03-29 12:17:03 -07:00
parent e29c07c4a5
commit c7776f74e1
9 changed files with 127 additions and 126 deletions

View File

@ -115,6 +115,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-wrap');
// Default task(s). // Default task(s).
grunt.registerTask('default', ['copy','less:bootstrap','handlebars', 'watch']); grunt.registerTask('default', ['copy','less:bootstrap','handlebars', 'watch']);

View File

@ -1,5 +1,4 @@
'use strict'; 'use strict';
define([ define([
'app', 'AddSeries/RootFolders/RootFolderCollection', 'Quality/QualityProfileCollection', 'Shared/NotificationCollection', 'AddSeries/Existing/UnmappedFolderModel', 'AddSeries/SearchResultCollection', 'Series/SeriesModel'], function (app, rootFolders, qualityProfileCollection, notificationCollection) { 'app', 'AddSeries/RootFolders/RootFolderCollection', 'Quality/QualityProfileCollection', 'Shared/NotificationCollection', 'AddSeries/Existing/UnmappedFolderModel', 'AddSeries/SearchResultCollection', 'Series/SeriesModel'], function (app, rootFolders, qualityProfileCollection, notificationCollection) {

View File

@ -1,5 +1,4 @@
'use strict'; 'use strict';
define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfiles) { define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfiles) {

View File

@ -1,4 +1,5 @@
define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/SearchResultView', 'Shared/SpinnerView'], function () { "use strict";
define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/SearchResultView', 'Shared/SpinnerView'], function () {
NzbDrone.AddSeries.New.AddNewSeriesView = Backbone.Marionette.Layout.extend({ NzbDrone.AddSeries.New.AddNewSeriesView = Backbone.Marionette.Layout.extend({
template: 'AddSeries/New/AddNewSeriesTemplate', template: 'AddSeries/New/AddNewSeriesTemplate',
route: 'Series/add/new', route: 'Series/add/new',

View File

@ -1,5 +1,4 @@
'use strict'; 'use strict';
define(['app', 'Shared/NotificationCollection', 'AddSeries/SearchResultCollection', 'AddSeries/SearchResultModel', 'Series/SeriesCollection'], function (app, notificationCollection) { define(['app', 'Shared/NotificationCollection', 'AddSeries/SearchResultCollection', 'AddSeries/SearchResultModel', 'Series/SeriesCollection'], function (app, notificationCollection) {
NzbDrone.AddSeries.New.SearchItemView = Backbone.Marionette.ItemView.extend({ NzbDrone.AddSeries.New.SearchItemView = Backbone.Marionette.ItemView.extend({

View File

@ -1,4 +1,5 @@
define(['app', 'AddSeries/RootFolders/RootFolderModel'], function () { "use strict";
define(['app', 'AddSeries/RootFolders/RootFolderModel'], function () {
var rootFolderCollection = Backbone.Collection.extend({ var rootFolderCollection = Backbone.Collection.extend({
url: NzbDrone.Constants.ApiRoot + '/rootfolder', url: NzbDrone.Constants.ApiRoot + '/rootfolder',

View File

@ -1,3 +1,4 @@
"use strict";
define(['app'], function () { define(['app'], function () {
NzbDrone.AddSeries.RootFolders.RootFolderModel = Backbone.Model.extend({ NzbDrone.AddSeries.RootFolders.RootFolderModel = Backbone.Model.extend({
mutators: { mutators: {

View File

@ -1,8 +1,7 @@
'use strict;' "use strict";
define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Mixins/AutoComplete'], function (app,rootFolders) { define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Mixins/AutoComplete'], function (app,rootFolders) {
NzbDrone.AddSeries.RootFolderItemView = Backbone.Marionette.ItemView.extend({ NzbDrone.AddSeries.RootFolderItemView = Backbone.Marionette.ItemView.extend({
template: 'AddSeries/RootFolders/RootFolderItemTemplate', template: 'AddSeries/RootFolders/RootFolderItemTemplate',

View File

@ -23,6 +23,7 @@
"grunt-contrib-less": "*", "grunt-contrib-less": "*",
"grunt-contrib-concat": "*", "grunt-contrib-concat": "*",
"grunt-contrib-copy": "*", "grunt-contrib-copy": "*",
"grunt-wrap": "*",
"grunt-curl": "*" "grunt-curl": "*"
} }
} }