TridionCommunity / tridion-powertools

Tridion PowerTools adds additional functionality to the SDL Tridion user interface, that are particularly useful to developers and power users.
http://tridioncommunity.github.io/tridion-powertools
4 stars 4 forks source link

getTridionGroups method can sometimes return 'context' var before it is declared #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Invoke the getTridionGroups method
2. Invoke it a second time without setting the 'reload' parameter to true
3. The 'if' block defined on line 275 will be skipped, meaning the 'context' is 
not declared.  The else block then attempts to return the context, but it 
doesn't know about the context.

What is the expected output? What do you see instead?
Expect it not to error.

What version of the product are you using? On what operating system?
r956

Please provide any additional information below.
svn/  trunk/ PowerTools.Editor/ PowerTools/ Client/ Shared/ Scripts/ utils.js

Original issue reported on code.google.com by m.si...@contentbloom.com on 18 Sep 2013 at 8:19