single mandatory root element in presentation tree

There is either stable or not stable. More stable doesn’t exist. ;-)


On Aug 4, 2014, at 1:02 PM, Dennis Knochenwefel <notifications@github.com> wrote:

> In app/modules/report-model.js:
> 
> > @@ -837,28 +841,9 @@ angular
> >          var source = '';
> >          var network = report.getNetwork('Presentation');
> >          if(network !== undefined && network.Trees !== undefined && network.Trees.length !== undefined && network.Trees.length > 0){
> length is undefined if it is an Object (not an Array).
> It can be 0 on initialization (https://github.com/28msec/nolap-report-editor/blob/mandatory-root-element/app/modules/report-model.js#L180) or if the report was not created by the report editor. Its to make the code more stable.
> 
> —
> Reply to this email directly or view it on GitHub.
>