Created
June 1, 2015 15:46
-
-
Save odoe/3285fd37ec5405599cf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// original AMD version | |
define([ | |
'views/MapView', | |
'views/LocatorView' | |
], function( | |
MapView, LocatorView | |
) { | |
var node = document.getElementById('map-area'); | |
var node2 = document.getElementById('locator-area'); | |
var mapView = new MapView(null, node); | |
var locatorView = new LocatorView(null, node2); | |
}); | |
// ES6 syntax | |
import MapView from 'views/MapView'; | |
import LocatorView from 'views/LocatorView'; | |
var node = document.getElementById('map-area'); | |
var node2 = document.getElementById('locator-area'); | |
var mapView = new MapView(null, node); | |
var locatorView = new LocatorView(null, node2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment