func editor starting to work

This commit is contained in:
Torkel Ödegaard
2013-12-21 09:53:28 +01:00
parent 089b1f5395
commit 3059870b48
3 changed files with 76 additions and 3 deletions
+3 -2
View File
@@ -132,11 +132,12 @@ function (angular, _, config) {
$scope.functions = _.without($scope.functions, func);
};
$scope.functionParmsChanged = function(func) {
func.text = func.name + '(';
$scope.functionParamsChanged = function(func) {
func.text = func.def.name + '(';
_.each(func.def.params, function(param) {
func.text += func.params[param.name];
});
func.text += ')';
};
$scope.addFunction = function() {