Improve check of emptiness of function hint

parent d0aebdc1
Pipeline #640 failed with stages
in 5 minutes and 25 seconds
......@@ -53,7 +53,15 @@ pm.data.FunctionHint = pm.Hint.extend(/** @lends pm.data.FunctionHint# */{
empty: function()
{
return this.text.length === 0 && this.funcBlockHints.length === 0;
var emptyBlockHints = true;
for(var i = 0 ; i < this.funcBlockHints.length; ++i)
{
if(this.funcBlockHints[i].length !== 0)
emptyBlockHints = false;
}
return this.text.length === 0 && emptyBlockHints;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment