StarlingGraphics/Starling-Extension-Graphics — pull request #85 by Peregrin05 (2013-11-29 15:15:08+00:00)
Title: Objects using Graphics are testable

added a check if Starling.current is not null before accessing it in Graphics constructor. It's needed only for testing purposes. When writing integration tests for some objects that use Graphic object it always throws an exception because Staring instance is not defined due to the fact that it's mocked. So this check allows to prevent that exception and write tests.