Skip to content

Commit

Permalink
Support bones-mixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
makara committed Nov 23, 2012
1 parent 8c858b1 commit 7be4460
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Expand Up @@ -20,5 +20,13 @@ plugin.load = _(plugin.load).wrap(function(parent, dir) {
return self;
});

// Support bones-mixin.
// TODO: maybe drop the custom plugin above and use bones-mixin.
try {
var bonesMixin = require('bones-mixin');
bonesMixin(Bones.Resource);
bonesMixin(Bones.Resource.prototype);
} catch (err) {}

// Load me.
Bones.load(__dirname);

0 comments on commit 7be4460

Please sign in to comment.