dan-eyles/sculejs — pull request #40 by lis186 (2014-05-17 17:05:01+00:00)
Title: Fix platform check android device problem

Use typeof Titanium.API to check Titanium environment to prevent crash on some Android devices.

Tested device:
* Samsung Galaxy Note II
* Samsung Galaxy 7

Error log before fix:
[ERROR] JNIUtil: Couldn't find Java class: ti/modules/titanium/platform/PlatformModule

Signed-off-by: Justin Lee