From 451a768f8e90ca82d2041bc2b0587b4336a36990 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 8 Jun 2016 00:11:03 +0200 Subject: [PATCH] Fixed buffer/caching of own changes. --- app/assets/javascripts/app/controllers/widget/link.coffee | 2 +- app/assets/javascripts/app/controllers/widget/tag.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/widget/link.coffee b/app/assets/javascripts/app/controllers/widget/link.coffee index 595533aaf..be77e8144 100644 --- a/app/assets/javascripts/app/controllers/widget/link.coffee +++ b/app/assets/javascripts/app/controllers/widget/link.coffee @@ -36,7 +36,7 @@ class App.WidgetLink extends App.Controller render: => return if @lastLinks && _.isEqual(@lastLinks, @links) - lastLinks = @links + @lastLinks = @links list = {} for item in @links if !list[ item['link_type'] ] diff --git a/app/assets/javascripts/app/controllers/widget/tag.coffee b/app/assets/javascripts/app/controllers/widget/tag.coffee index 41f89fbb9..bbe4f535b 100644 --- a/app/assets/javascripts/app/controllers/widget/tag.coffee +++ b/app/assets/javascripts/app/controllers/widget/tag.coffee @@ -45,7 +45,7 @@ class App.WidgetTag extends App.Controller render: -> return if @lastTags && _.isEqual(@lastTags, @tags) - lastTags = @tags + @lastTags = @tags @html App.view('widget/tag')( tags: @tags || [], )