diff --git a/lib/nodes/block.js b/lib/nodes/block.js index a3af8bda..fd7ef34f 100644 --- a/lib/nodes/block.js +++ b/lib/nodes/block.js @@ -25,17 +25,15 @@ registry.decl(BlockNodeName, MagicNode, { // Lazy level initialization for the cases when level config is not exists // at the time node object created var level; - this.__defineGetter__('level', { - get: function() { - if (!level) { - level = typeof o.level === 'string' ? - createLevel(PATH.resolve(o.root, o.level), { - projectRoot: o.root - }) : - o.level; - } - return level; + this.__defineGetter__('level', function() { + if (!level) { + level = typeof o.level === 'string' ? + createLevel(PATH.resolve(o.root, o.level), { + projectRoot: o.root + }) : + o.level; } + return level; }); /* jshint +W106 */