Skip to content

Commit

Permalink
Support node.js < 6 when run with '--harmony_proxies'
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarizu committed Nov 14, 2016
1 parent 9d276c6 commit c7cd289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/L.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ if (typeof L !== 'undefined') {
L_ = L;
} else {
let N = () => {};

L_ = new Proxy({}, {
let handler = {
get() {
return N;
}
});
};

L_ = Proxy.create ? Proxy.create(handler) : new Proxy({}, handler);
L_.Icon.Default = {};
L_.tileLayer.wms = N;
}
Expand Down

0 comments on commit c7cd289

Please sign in to comment.