Skip to content

Commit

Permalink
close worker
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed May 23, 2014
1 parent 39b249c commit 3de4fa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions leaflet.shpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ L.Shapefile =L.GeoJSON.extend({
self.worker.data(cw.makeUrl(file)).then(function(data){
self.addData(data);
self.fire('data:loaded');
self.worker.close();
});
}else{
shp(file).then(function(data){
Expand Down

0 comments on commit 3de4fa0

Please sign in to comment.