Skip to content

Commit

Permalink
Merge pull request #5 from calvinmetcalf/close-worker
Browse files Browse the repository at this point in the history
close worker
  • Loading branch information
calvinmetcalf committed May 23, 2014
2 parents 39b249c + 3de4fa0 commit e8a6682
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 e8a6682

Please sign in to comment.