mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
* tools/packages.js: change an array to an object, since that's how it's used.
This commit is contained in:
@@ -794,7 +794,7 @@ _.extend(Package.prototype, {
|
||||
// 'handler' is a function that takes a single argument, a
|
||||
// CompileStep (#CompileStep)
|
||||
registerSourceHandler: function (extension, handler) {
|
||||
if (extension in self.sourceHandlers) {
|
||||
if (_.has(self.sourceHandlers, extension)) {
|
||||
buildmessage.error("duplicate handler for '*." +
|
||||
extension + "'; may only have one per Plugin",
|
||||
{ useMyCaller: true });
|
||||
@@ -806,7 +806,7 @@ _.extend(Package.prototype, {
|
||||
}
|
||||
};
|
||||
|
||||
self.sourceHandlers = [];
|
||||
self.sourceHandlers = {};
|
||||
_.each(self.plugins, function (plugin, name) {
|
||||
buildmessage.enterJob({
|
||||
title: "loading plugin `" + name +
|
||||
|
||||
Reference in New Issue
Block a user