diff --git a/demo/boot.js b/demo/boot.js index d21535de..d932871e 100644 --- a/demo/boot.js +++ b/demo/boot.js @@ -47,9 +47,9 @@ var setupPlugins = function(config, callback) { config.pluginDirs["../plugins"] = { packages: ["pilot"] }; - + var knownPlugins = []; - + var pluginPackageInfo = { "../lib": [ { @@ -58,11 +58,11 @@ var setupPlugins = function(config, callback) { } ] }; - + var paths = {}; var i; var location; - + // we need to ensure that the core plugin directory is loaded first var pluginDirs = []; var pluginDir; @@ -76,13 +76,13 @@ var setupPlugins = function(config, callback) { return 1; } else if (a < b) { return -1; - } else if (b < a) { + } else if (b < a) { return 1; } else { return 0; } }); - + // set up RequireJS to know that our plugins all have a main module called "index" for (var dirNum = 0; dirNum < pluginDirs.length; dirNum++) { pluginDir = pluginDirs[dirNum]; @@ -109,7 +109,7 @@ var setupPlugins = function(config, callback) { } } } - + require({ packagePaths: pluginPackageInfo, paths: paths diff --git a/plugins/pilot/lib/types.js b/plugins/pilot/lib/types.js index 52a5381a..984d0f75 100644 --- a/plugins/pilot/lib/types.js +++ b/plugins/pilot/lib/types.js @@ -1,7 +1,3 @@ -// TODO this file can likely be deleted. The useful functionality has moved to -// index.js - - /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * @@ -44,7 +40,7 @@ define(function(require, exports, module) { * Most of our types are 'static' e.g. there is only one type of 'text', however * some types like 'selection' and 'deferred' are customizable. The basic * Type type isn't useful, but does provide documentation about what types do. - * + * */ function Type() { }; @@ -77,7 +73,7 @@ Type.prototype = { * extra data, however this function returns only the name, not the extra * data. */ - name: "unknown", + name: "unknown" // Methods from the original type system that we might need, but not now. @@ -111,14 +107,14 @@ var types = {}; */ exports.registerType = function(type) { types[type.name] = type; -} +}; /** * Remove a type from the list available to the system */ exports.deregisterType = function(type) { delete types[type.name]; -} +}; /** * Find a type, previously registered using #registerType() @@ -144,6 +140,6 @@ exports.getType = function(typeSpec) { if (typeof type === 'function') { return type(typeSpec); } -} +}; });