[Build] Remove boilerplate from scripts
No longer necessary after JSHint configuration.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define([
|
||||
|
||||
@@ -28,7 +27,6 @@ define([
|
||||
|
||||
legacyRegistry
|
||||
) {
|
||||
"use strict";
|
||||
|
||||
legacyRegistry.register("platform/framework", {
|
||||
"name": "Open MCT Web Framework Component",
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
/**
|
||||
* Constants used by the framework layer.
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining FrameworkInitializer. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Responsible for managing the four stages of framework
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define, window, requirejs*/
|
||||
|
||||
define([
|
||||
'require',
|
||||
@@ -50,7 +49,6 @@ define([
|
||||
ExtensionSorter,
|
||||
ApplicationBootstrapper
|
||||
) {
|
||||
'use strict';
|
||||
|
||||
function FrameworkLayer($http, $log) {
|
||||
this.$http = $http;
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
// Log levels; note that these must be in order of
|
||||
// most-important-first for LogLevel to function correctly
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define, window, requirejs*/
|
||||
|
||||
/**
|
||||
* Implements the framework layer, which handles the loading of bundles
|
||||
@@ -40,7 +39,6 @@ define(
|
||||
FrameworkLayer,
|
||||
angular
|
||||
) {
|
||||
"use strict";
|
||||
|
||||
function Main() {
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining Bootstrapper. Created by vwoeltje on 11/4/14.
|
||||
@@ -29,7 +28,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* The application bootstrapper is responsible for issuing the
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
['../Constants', './Extension'],
|
||||
function (Constants, Extension) {
|
||||
"use strict";
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining BundleLoader.js. Created by vwoeltje on 10/31/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
['../Constants', './Bundle'],
|
||||
function (Constants, Bundle) {
|
||||
"use strict";
|
||||
|
||||
var INVALID_ARGUMENT_MESSAGE = "Malformed loadBundles argument; " +
|
||||
"expected string or array",
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* An extension's plain JSON definition.
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining CustomRegistrars. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
['../Constants', './ServiceCompositor'],
|
||||
function (Constants, ServiceCompositor) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Handles registration of a few specific extension types that are
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ExtensionRegistrar. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
['../Constants', './PartialConstructor'],
|
||||
function (Constants, PartialConstructor) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Responsible for registering extensions with Angular.
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
["../Constants"],
|
||||
function (Constants) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Responsible for applying priority order to extensions in a
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining PartialConstructor. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* A partial constructor is used to instantiate objects in two
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ServiceCompositor. Created by vwoeltje on 11/5/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Handles service compositing; that is, building up services
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining BundleResolver. Created by vwoeltje on 11/4/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Responsible for the extension resolution phase of framework
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ExtensionResolver. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* An ExtensionResolver is responsible for loading any implementation
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ImplementationLoader. Created by vwoeltje on 11/3/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Responsible for loading extension implementations
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Handles configuration of RequireJS to expose libraries
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,runs*/
|
||||
|
||||
/**
|
||||
* FrameworkInitializerSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../src/FrameworkInitializer"],
|
||||
function (FrameworkInitializer) {
|
||||
"use strict";
|
||||
|
||||
describe("The framework initializer", function () {
|
||||
var initializer;
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
||||
|
||||
define(
|
||||
['../src/LogLevel'],
|
||||
function (LogLevel) {
|
||||
"use strict";
|
||||
|
||||
var LOG_METHODS = [
|
||||
'error',
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach*/
|
||||
|
||||
/**
|
||||
* ApplicationBootstrapperSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/bootstrap/ApplicationBootstrapper"],
|
||||
function (ApplicationBootstrapper) {
|
||||
"use strict";
|
||||
|
||||
describe("The application bootstrapper", function () {
|
||||
// Test support variables
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,runs,jasmine*/
|
||||
|
||||
/**
|
||||
* BundleLoaderSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/load/BundleLoader"],
|
||||
function (BundleLoader) {
|
||||
"use strict";
|
||||
|
||||
describe("The bundle loader", function () {
|
||||
var loader,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach*/
|
||||
|
||||
/**
|
||||
* BundleSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/load/Bundle", "../../src/Constants"],
|
||||
function (Bundle, Constants) { // Verify against constants, too
|
||||
"use strict";
|
||||
|
||||
describe("A bundle", function () {
|
||||
var PATH = "some/path",
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach*/
|
||||
|
||||
/**
|
||||
* ExtensionSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/load/Extension", "../../src/load/Bundle"],
|
||||
function (Extension, Bundle) {
|
||||
"use strict";
|
||||
|
||||
describe("An extension", function () {
|
||||
var bundle;
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,jasmine,waitsFor*/
|
||||
|
||||
/**
|
||||
* CustomRegistrarsSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/register/CustomRegistrars"],
|
||||
function (CustomRegistrars) {
|
||||
"use strict";
|
||||
|
||||
describe("Custom registrars", function () {
|
||||
var mockLog,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
/**
|
||||
* ExtensionRegistrarSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/register/ExtensionRegistrar"],
|
||||
function (ExtensionRegistrar) {
|
||||
"use strict";
|
||||
|
||||
describe("The extension registrar", function () {
|
||||
var mockApp,
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,jasmine,waitsFor*/
|
||||
|
||||
define(
|
||||
["../../src/register/ExtensionSorter"],
|
||||
function (ExtensionSorter) {
|
||||
"use strict";
|
||||
|
||||
describe("The extension sorter", function () {
|
||||
var mockLog,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach*/
|
||||
|
||||
/**
|
||||
* PartialConstructorSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/register/PartialConstructor"],
|
||||
function (PartialConstructor) {
|
||||
"use strict";
|
||||
|
||||
describe("A partial constructor", function () {
|
||||
var result,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,jasmine*/
|
||||
|
||||
/**
|
||||
* ServiceCompositorSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/register/ServiceCompositor"],
|
||||
function (ServiceCompositor) {
|
||||
"use strict";
|
||||
|
||||
describe("The service compositor", function () {
|
||||
var registered,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine,runs*/
|
||||
|
||||
/**
|
||||
* BundleResolverSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/resolve/BundleResolver", "../../src/load/Bundle"],
|
||||
function (BundleResolver, Bundle) {
|
||||
"use strict";
|
||||
|
||||
describe("The bundle resolver", function () {
|
||||
var mockExtensionResolver,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,jasmine,waitsFor,runs*/
|
||||
|
||||
/**
|
||||
* ExtensionResolverSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/resolve/ExtensionResolver", "../../src/load/Bundle"],
|
||||
function (ExtensionResolver, Bundle) {
|
||||
"use strict";
|
||||
|
||||
describe("", function () {
|
||||
var mockLoader,
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,runs*/
|
||||
|
||||
/**
|
||||
* ImplementationLoaderSpec. Created by vwoeltje on 11/6/14.
|
||||
@@ -27,7 +26,6 @@
|
||||
define(
|
||||
["../../src/resolve/ImplementationLoader"],
|
||||
function (ImplementationLoader) {
|
||||
"use strict";
|
||||
|
||||
describe("The implementation loader", function () {
|
||||
var required,
|
||||
|
||||
@@ -19,12 +19,10 @@
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
/*global define,describe,it,expect,beforeEach,waitsFor,jasmine,runs*/
|
||||
|
||||
define(
|
||||
["../../src/resolve/RequireConfigurator", "../../src/load/Bundle"],
|
||||
function (RequireConfigurator, Bundle) {
|
||||
"use strict";
|
||||
|
||||
describe("The RequireJS configurator", function () {
|
||||
var mockRequire,
|
||||
|
||||
Reference in New Issue
Block a user