File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9595 this . operation . then ( function ( ) {
9696 var wrk = new Worker ( that . options . path ) ;
9797 wrk . postMessage ( Thread . getWorkerSource ( cb ) ) ;
98- wrk . postMessage ( that . data ) ;
9998 wrk . onmessage = function ( msg ) {
10099 wrk . terminate ( ) ;
101100 that . data = msg . data ;
102101 newOp . resolve ( null , that . data ) ;
103102 } ;
103+ wrk . postMessage ( that . data ) ;
104104 } ) ;
105105 this . operation = newOp ;
106106 return this ;
110110 var that = this ;
111111 var wrk = new Worker ( that . options . path ) ;
112112 wrk . postMessage ( Thread . getWorkerSource ( cb ) ) ;
113- wrk . postMessage ( that . data [ i ] ) ;
114113 wrk . onmessage = function ( msg ) {
115114 wrk . terminate ( ) ;
116115 that . data [ i ] = msg . data ;
117116 done ( ) ;
118117 } ;
118+ wrk . postMessage ( that . data [ i ] ) ;
119119 } ;
120120
121121 Thread . prototype . map = function ( cb ) {
148148 var that = this ;
149149 var wrk = new Worker ( that . options . path ) ;
150150 wrk . postMessage ( Thread . getWorkerSource ( cb ) ) ;
151- wrk . postMessage ( data ) ;
152151 wrk . onmessage = function ( msg ) {
153152 wrk . terminate ( ) ;
154153 that . data [ that . data . length ] = msg . data ;
155154 done ( ) ;
156155 } ;
156+ wrk . postMessage ( data ) ;
157157 } ;
158158
159159 Thread . prototype . reduce = function ( cb ) {
You can’t perform that action at this time.
0 commit comments