mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Updated JS mode examples, changed convenience function to have same camel case as Processing.getInstanceById()
This commit is contained in:
@@ -18,7 +18,7 @@ window.onload = function () {
|
||||
var sendImage = null;
|
||||
|
||||
function tryFindSketch () {
|
||||
var sketch = Processing.getInstanceById(getProcessingSketchID());
|
||||
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.getInstanceById(getProcessingSketchID());
|
||||
var sketch = Processing.getInstanceById(getProcessingSketchId());
|
||||
if ( sketch == undefined )
|
||||
return setTimeout(tryFindSketch, 200); //retry later
|
||||
|
||||
|
||||
Reference in New Issue
Block a user