JavaScript mode examples updated for Processing 1.4.0

This commit is contained in:
fjenett
2012-08-03 18:39:49 +00:00
parent 6d4a1b941d
commit 99be4df137
13 changed files with 13 additions and 15 deletions
@@ -18,7 +18,7 @@ window.onload = function () {
var sendImage = null;
function tryFindSketch () {
var sketch = Processing.instances[0];
var sketch = Processing.getInstanceById(getProcessingSketchID());
if ( sketch == undefined )
return setTimeout(tryFindSketch, 200); //retry later
@@ -6,7 +6,7 @@ window.onload = function () {
var sendTweet = null;
function tryFindSketch () {
var sketch = Processing.instances[0];
var sketch = Processing.getInstanceById(getProcessingSketchID());
if ( sketch == undefined )
return setTimeout(tryFindSketch, 200); //retry later