Re: git commit: [flex-tlf] [refs/heads/develop] - FLEX-34807

2015-09-21 Thread Mihai Chira
Cool, thanks for the explanation. On 21 September 2015 at 11:57, Harbs wrote: > Yes. It’s a coding style I picked up quite some time ago. It assigns the > value to itself if destinationLeaf is null. > > It avoids writing an extra “if” (and keeps everything in one line while > keeping the declar

Re: git commit: [flex-tlf] [refs/heads/develop] - FLEX-34807

2015-09-21 Thread Harbs
Yes. It’s a coding style I picked up quite some time ago. It assigns the value to itself if destinationLeaf is null. It avoids writing an extra “if” (and keeps everything in one line while keeping the declaration at the beginning of the line). It might be a bit confusing the first time you see

Re: git commit: [flex-tlf] [refs/heads/develop] - FLEX-34807

2015-09-21 Thread Mihai Chira
Is this line only confusing for me? var destinationParagraph:ParagraphElement = destinationLeaf ? destinationLeaf.getParagraph() : destinationParagraph; Is this the intention? if (destinationLeaf) destinationParagraph = destinationLeaf.getParagraph(); On 19 September 2015 at 21:52, wrote: > Rep