Skip to content

Commit

Permalink
Merge pull request #26 from ziveo/master
Browse files Browse the repository at this point in the history
Update esri-loader.ts
  • Loading branch information
tomwayson committed Jul 24, 2017
2 parents faca9e1 + 94f345c commit ff9989b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ esriLoader.bootstrap((err) => {
console.error(err);
} else {
// optionall execute any code once it's preloaded
createMap();
}
}, {
// use a specific version instead of latest 4.x
Expand Down
2 changes: 1 addition & 1 deletion src/esri-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function isLoaded() {
export function bootstrap(callback: Function, options = {} as any) {
// default options
if (!options.url) {
options.url = 'https://js.arcgis.com/4.3/';
options.url = 'https://js.arcgis.com/4.4/';
}

// don't reload API if it is already loaded or in the process of loading
Expand Down
2 changes: 1 addition & 1 deletion test/esri-loader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('esri-loader', function () {
esriLoader.bootstrap();
});
it('should default to latest version', function () {
expect(scriptEl.src).toEqual('https://js.arcgis.com/4.3/');
expect(scriptEl.src).toEqual('https://js.arcgis.com/4.4/');
});
});
describe('with different API version', function () {
Expand Down

0 comments on commit ff9989b

Please sign in to comment.