<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -344,6 +344,8 @@ function buildProcessing( curElement ){
   // The height/width of the canvas
   p.width = curElement.width - 0;
   p.height = curElement.height - 0;
+  
+  p.online = true;
 
   // The current animation frame
   p.frameCount = 0;
@@ -514,6 +516,33 @@ function buildProcessing( curElement ){
     return ary;
   };
   
+  p.splitToken = function ( str, tokens ) {
+    if (arguments.length == 1) {
+        tokens = &quot;\n\t\r\f &quot;;
+    }
+    tokens = &quot;[&quot; + tokens + &quot;]&quot;;
+    var ary = new Array();
+    var index = 0;
+    var pos = str.search(tokens);
+    while (pos &gt;= 0) {
+        if (pos == 0) {
+            str = str.substring(1);
+        } else {
+            ary[index] = str.substring(0, pos);
+            index++;
+            str = str.substring(pos);
+        }
+        pos = str.search(tokens);
+    }
+    if (str.length &gt; 0) {
+       ary[index] = str;
+    }
+    if (ary.length == 0) {
+        ary = undefined;
+    }
+    return ary;
+  }
+  
   p.trim = function( str ) {
 	var	str = str.replace(/^\s\s*/, ''),
 		ws = /\s/,</diff>
      <filename>processing.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6f0ba75d8d0c7620336134f883ffb10eea13873d</id>
    </parent>
  </parents>
  <author>
    <name>MinyXO</name>
    <login>MinyXO</login>
    <email>minyxo@hotmail.com</email>
  </author>
  <url>http://github.com/MinyXO/processing-js/commit/2551f75d68d6780554769994873bbde814a2ca14</url>
  <id>2551f75d68d6780554769994873bbde814a2ca14</id>
  <committed-date>2009-10-23T21:26:15-07:00</committed-date>
  <authored-date>2009-10-23T21:26:15-07:00</authored-date>
  <message>added online function</message>
  <tree>cec476dc765e80978b0ab8a3f6393de9d4fec49f</tree>
  <committer>
    <name>MinyXO</name>
    <login>MinyXO</login>
    <email>minyxo@hotmail.com</email>
  </committer>
</commit>
