Updated JS mode examples, changed convenience function to have same camel case as Processing.getInstanceById()

This commit is contained in:
fjenett
2012-11-03 17:35:06 +00:00
parent 3e360ccc5f
commit 9ee4b78e7e
30 changed files with 19 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ window.onload = function () {
video['loop'] = true;
function tryFindSketch () {
var sketch = Processing.getInstanceById(getProcessingSketchID());
var sketch = Processing.getInstanceById(getProcessingSketchId());
if ( sketch == undefined )
return setTimeout(tryFindSketch, 200); // retry in 0.2 secs

View File

@@ -4,7 +4,7 @@ window.onload = function () {
// try to find the Processing sketch instance, or retry
function tryFindSketch () {
var sketch = Processing.getInstanceById(getProcessingSketchID());
var sketch = Processing.getInstanceById(getProcessingSketchId());
if ( sketch == undefined )
setTimeout(tryFindSketch, 200); // retry in 0.2 secs
else