Skip to content

Instantly share code, notes, and snippets.

@meeech
Created September 8, 2012 19:31
Show Gist options
  • Save meeech/3678976 to your computer and use it in GitHub Desktop.
Save meeech/3678976 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript">
var Ti = Titanium;
Titanium.UI.getCurrentWindow().showInspector(true);
</script>
</head>
<body style="background-color:#ccc;margin:0">
</body>
</html>
<script type="text/ruby">
window.globalArray = [1, 2, 3, 4];
</script>
<script>
globalArray.push(5);
globalArray.push(6);
var elem = globalArray.pop(); // should be 6
alert(elem);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment