Skip to content

Commit

Permalink
Merge pull request ballerina-platform#897 from nadeeshaan/master
Browse files Browse the repository at this point in the history
Fixing the action invocation delete issue
  • Loading branch information
nadeeshaan authored Jan 21, 2017
2 parents a0e0035 + e91179f commit 294495c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/editor/web/js/ballerina/ast/assignment-statement.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@ define(['lodash', './statement'], function (_, Statement) {
});
};

/**
* Override the removeChild function
* @param {ASTNode} child - child node
*/
AssignmentStatement.prototype.removeChild = function (child) {
this.getParent().removeChild(this);
};

return AssignmentStatement;
});
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ define(['lodash', './statement'], function(_, Statement){
this._right_operand_expression_string = rightOperandExpStr;
};

/**
* Override the removeChild function
* @param {ASTNode} child - child node
*/
RightOperandExpression.prototype.removeChild = function (child) {
this.getParent().removeChild(this);
};

/**
* setting parameters from json
* @param jsonNode
Expand Down

0 comments on commit 294495c

Please sign in to comment.