Skip to content

Instantly share code, notes, and snippets.

@emilioicai
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save emilioicai/170469fee4325c1f6f6d to your computer and use it in GitHub Desktop.

Select an option

Save emilioicai/170469fee4325c1f6f6d to your computer and use it in GitHub Desktop.
Adding/Retrieving a Spy in Titanium
/****** TiShadow Spies (Make sure it doesn't to go production) ******/
if(Titanium.App.deployType === 'development') addSpy("$", $);
//retrieving
var $ = getSpy("$");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment