From 49e6ed13bad093644f27edaee4b288facad9ac55 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 13 Jul 2014 09:07:58 -0700 Subject: [PATCH] Fixed LatestVersionReferenceNode's collection initialization. --- app/treema-ext.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/treema-ext.coffee b/app/treema-ext.coffee index c7b6fac65..d5fda7677 100644 --- a/app/treema-ext.coffee +++ b/app/treema-ext.coffee @@ -249,9 +249,9 @@ class JavaScriptTreema extends CodeTreema class InternationalizationNode extends TreemaNode.nodeMap.object findLanguageName: (languageCode) -> # to get around mongoose emtpy object bug, there's a prop in the object which needs to be ignored - return '' if languageCode is '-' + return '' if languageCode is '-' locale[languageCode]?.nativeDescription or "#{languageCode} Not Found" - + getChildren: -> res = super(arguments...) res = (r for r in res when r[0] isnt '-') @@ -322,7 +322,7 @@ class LatestVersionReferenceNode extends TreemaNode return unless term @lastTerm = term @getSearchResultsEl().empty().append('Searching') - @collection = new LatestVersionCollection() + @collection = new LatestVersionCollection([], model: @model) # HACK while search is broken # @collection.url = "#{@url}?term=#{term}&project=true"