Commit 297c9935 authored by Ryan LeFevre's avatar Ryan LeFevre

Merge pull request #55 from arcanis/patch-1

Fix the root() function
parents 86b97f70 dc2ec02a
......@@ -2,7 +2,7 @@ _ = require 'lodash'
module.exports =
root: ->
return @ if isRoot()
return @ if @isRoot()
return @parent.root()
isRoot: -> @depth() is 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment