diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-06-10 22:08:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-06-10 22:08:16 +0200 |
commit | 1e3d871c1e288b58dc486053cc7fa0f274c4cf31 (patch) | |
tree | 5f221cb283e5f4591a3764112569ee62220e6da2 /lib/models | |
parent | 50a132cb2c0b0666b3b067e32d37e10bfb9e50da (diff) | |
parent | 94a4310c1e4b9ee71def9cbd9efd8a4c491f4444 (diff) | |
download | gitbook-1e3d871c1e288b58dc486053cc7fa0f274c4cf31.zip gitbook-1e3d871c1e288b58dc486053cc7fa0f274c4cf31.tar.gz gitbook-1e3d871c1e288b58dc486053cc7fa0f274c4cf31.tar.bz2 |
Merge branch 'fix/plugins_loading'
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/plugin.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/models/plugin.js b/lib/models/plugin.js index c8bb2f7..acabba9 100644 --- a/lib/models/plugin.js +++ b/lib/models/plugin.js @@ -18,6 +18,9 @@ var Plugin = Immutable.Record({ // Depth of this plugin in the dependency tree depth: Number(0), + // Parent depending on this plugin + parent: String(), + // Content of the "package.json" package: Immutable.Map(), @@ -49,6 +52,10 @@ Plugin.prototype.getDepth = function() { return this.get('depth'); }; +Plugin.prototype.getParent = function() { + return this.get('parent'); +}; + /** * Return the ID on NPM for this plugin * @return {String} |