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 440b2d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ Think of your map as a set of layers inside a container. Your main container wil
* `ember test`
* `ember test --server`

## Fastboot support

There's rudimentary support for fastboot right now. Node.js 6.0 an up work out of the box. For node.js < 6.0 you have to start the fastboot server with `--harmony_proxies` like `node --harmony_proxies node_modules/.bin/ember fastboot`.

## Building

* `ember build`
Expand Down
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 440b2d7

Please sign in to comment.