Changes between Version 3 and Version 4 of Ticket #11750, comment 6


Ignore:
Timestamp:
Feb 7, 2013, 3:08:59 PM (8 years ago)
Author:
simpo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11750, comment 6

    v3 v4  
    1 Not sure if this is helpful but I did wrote something that does this in v1.8 (see: [https://bitbucket.org/ssimpo/simpo/src/ca70bde44a0cc2c68b80683ef94f12b264690247/webworker.js?at=default Dojo Webworker]).  Am happy for any of the Dojo people out there to re-use it, break it, better it, ...etc.  The component handles workers; creating the worker, loading dojo into it, loading the file you request into it and then handling console messages, emitting messages from the worker, ...etc.
     1Not sure if this is helpful but I did write something that does this in v1.8 (see: [https://bitbucket.org/ssimpo/simpo/src/ca70bde44a0cc2c68b80683ef94f12b264690247/webworker.js?at=default Dojo Webworker]).  Am happy for any of the Dojo people out there to re-use it, break it, better it, ...etc.  The component handles workers; creating the worker, loading dojo into it, loading the file you request into it and then handling console messages, emitting messages from the worker, ...etc.
    22
    33The diff file ([https://bitbucket.org/ssimpo/simpo/src/ca70bde44a0cc2c68b80683ef94f12b264690247/dojo-webworker.diff?at=default Diff File]) details some small additions to the dojo.js and adds an extra configWebworker.js file to go in the dojo/_base directory (in the same vain as the one for Node and Rhino).  I don't know the procedure for making official contributions to the Dojo project (ie. supplying patch suggestions).