summaryrefslogtreecommitdiffstats
path: root/lib/models/plugin.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-27 16:22:17 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-27 16:22:17 +0200
commite50422bce588ec5a0b5581bf3963b0995138de4c (patch)
tree5128b5759c2bed3d9cac21fa8de5ccc1b3ead7bb /lib/models/plugin.js
parent999882e72327e06dd2fd346ca13eccb1c7e8781f (diff)
downloadgitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.zip
gitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.tar.gz
gitbook-e50422bce588ec5a0b5581bf3963b0995138de4c.tar.bz2
Use code TemplateBlock to highlight code
Diffstat (limited to 'lib/models/plugin.js')
-rw-r--r--lib/models/plugin.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/models/plugin.js b/lib/models/plugin.js
index 909ca0b..dd7bc90 100644
--- a/lib/models/plugin.js
+++ b/lib/models/plugin.js
@@ -100,7 +100,7 @@ Plugin.prototype.getFilters = function() {
/**
Return map of blocks
- @return {List<TemplateBlock>}
+ @return {Map<String:TemplateBlock>}
*/
Plugin.prototype.getBlocks = function() {
var blocks = this.getContent().get('blocks');
@@ -109,9 +109,7 @@ Plugin.prototype.getBlocks = function() {
return blocks
.map(function(block, blockName) {
return TemplateBlock.create(blockName, block);
- })
- .valueSeq()
- .toList();
+ });
};
/**