Skip to content

Commit

Permalink
Clean up code after the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukejagodzinski committed Sep 30, 2015
1 parent 4a2f8d6 commit 8863c80
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
3 changes: 0 additions & 3 deletions lib/modules/fields/modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ proto._getModifiers = function(nested) {
var nestedDocs = doc[fieldName];
_.each(nestedDocs, function(nestedDoc, nestedDocIndex) {
// Get a modifier for a nested document.
if (!nestedDoc._getModifiers) {
console.log(doc, fieldName, nestedDocs);
}
var nestedDocModifier = nestedDoc._getModifiers();
// We have to loop through modifiers list and check if some modifiers
// already exist in the parent modifier. If so, then we will try to
Expand Down
4 changes: 0 additions & 4 deletions lib/modules/indexes/init_definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ Astro.eventManager.on(
}

if (_.size(indexesDefinitions) > 0) {
if (Class.getName()) {
console.log(subSchema);
}

var Collection = Class.getCollection();
if (!Collection) {
return;
Expand Down
7 changes: 4 additions & 3 deletions lib/modules/storage/init_definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ Astro.eventManager.on(
_id: {
type: 'string'
}
},
events: {}
}
};

// Add the "type" field, to distinguish to what class we have to cast a
Expand All @@ -295,7 +294,9 @@ Astro.eventManager.on(
};

// Add the "afterInit" event handler that sets a type field.
extendDefinition.events.afterInit = [events.afterInit];
extendDefinition.events = {
afterInit: [events.afterInit]
};
}

// Extend the current schema definition.
Expand Down
16 changes: 0 additions & 16 deletions lib/modules/storage/init_schema.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ Package.onUse(function(api) {
// Storage module.
api.addFiles([
'lib/modules/storage/init_class.js',
'lib/modules/storage/init_definition.js',
'lib/modules/storage/init_schema.js'
'lib/modules/storage/init_definition.js'
], ['client', 'server']);

// Behaviors module.
Expand Down

0 comments on commit 8863c80

Please sign in to comment.