Просмотр исходного кода

Fixes 267, Functions without params (like integral) now causes graph to update correctly

Torkel Ödegaard 11 лет назад
Родитель
Сommit
18e0a60b9e
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      CHANGELOG.md
  2. 1 1
      src/app/controllers/graphiteTarget.js

+ 1 - 1
CHANGELOG.md

@@ -1,7 +1,7 @@
 # vNext
 # vNext
 - More graphite functions
 - More graphite functions
 - Fix for Text panel, now changes take effect directly (Issue #251)
 - 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)
 # 1.5.2 (2013-03-24)
 ### New Features and improvements
 ### New Features and improvements

+ 1 - 1
src/app/controllers/graphiteTarget.js

@@ -234,7 +234,7 @@ function (angular, _, config, gfunc, Parser) {
       $scope.moveAliasFuncLast();
       $scope.moveAliasFuncLast();
       $scope.smartlyHandleNewAliasByNode(newFunc);
       $scope.smartlyHandleNewAliasByNode(newFunc);
 
 
-      if (!funcDef.params && newFunc.added) {
+      if (!funcDef.params.length && newFunc.added) {
         $scope.targetChanged();
         $scope.targetChanged();
       }
       }
     };
     };