From 18e0a60b9e6a8d0f679adef2795534cbcdd724b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 1 Apr 2014 12:38:36 +0200 Subject: [PATCH] Fixes 267, Functions without params (like integral) now causes graph to update correctly --- CHANGELOG.md | 2 +- src/app/controllers/graphiteTarget.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e03c6017b70..14860efa5ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # vNext - More graphite functions - Fix for Text panel, now changes take effect directly (Issue #251) - +- Fix when adding functions without params that did not cause graph to update (issue #267) # 1.5.2 (2013-03-24) ### New Features and improvements diff --git a/src/app/controllers/graphiteTarget.js b/src/app/controllers/graphiteTarget.js index a9617079bd2..a589cd5a293 100644 --- a/src/app/controllers/graphiteTarget.js +++ b/src/app/controllers/graphiteTarget.js @@ -234,7 +234,7 @@ function (angular, _, config, gfunc, Parser) { $scope.moveAliasFuncLast(); $scope.smartlyHandleNewAliasByNode(newFunc); - if (!funcDef.params && newFunc.added) { + if (!funcDef.params.length && newFunc.added) { $scope.targetChanged(); } };