Commits

Cat's Eye Technologies  committed 7407ad9

Kill -> stop.

  • Participants
  • Parent commits e99e8a8

Comments (0)

Files changed (2)

File impl/pixley.js/demo/pixley.html

 #info { float: right; }
 #program { display: none; }
 #load { display: none; }
-#stop { display: none; }
 #step { display: none; }
 #speed { display: none; }
 #display {
 
 <h1>Pixley</h1>
 
+<p><i>Note: this implementation uses Web Workers, and thus this page should be
+served from a web server (rather than loaded as a local file in your browser)
+to avoid security restrictions.</i></p>
+
 <button id="load">Load</button>
 <button id="edit">Edit</button>
 <button id="start">Start</button>
-<button id="kill">Kill</button>
 <button id="stop">Stop</button>
 <button id="step">Step</button>
 <button onclick="c.wrapIt();">Wrap it!</button>
   c.depictor = new PixleyDepictor();
   c.depictor.init(document.getElementById('canvas'));
   c.click_load();
-
-  document.getElementById('kill').onclick = function(e) {
-    c.kill();
-  };
-
-
 </script>

File impl/pixley.js/src/pixley-controller.js

         this.worker.postMessage(["eval", depict(this.ast)]);
     };
 
-    this.kill = function() {
+    this.stop = function() {
         if (this.worker) {
             this.worker.terminate();
             this.worker = undefined;