FOSSEE/xcos_on_cloud

incorrect call to get() method

sunilshetye opened this issue · 0 comments

The set() blocks are having incorrect calls to the get() method.

For example, BARXY.prototype.set() calls BARXY.get() on error.

There is no BARXY.get() method, even though there is a BARXY.prototype.get() method.

So, the code throws an exception and there is no further action in the code.

  1. If intention was to throw an exception, then this call must be replaced with something like:

throw "incorrect";

  1. Proper coding would involve no throwing of exception. Return a value (like false) and ensure that the properties window is not closed.