Permalink
Browse files

Removing old-fashioned imports

  • Loading branch information...
tmcw committed Feb 1, 2012
1 parent 222291a commit a6322ae998713f4e135e8af8ef00262d0178badc
@@ -155,7 +155,6 @@
})(com.modestmaps);
-var MM = com.modestmaps;
var map;
function initMap() {
@@ -5,8 +5,6 @@
<script type="text/javascript">
// <!--
- var MM = com.modestmaps;
-
function initMap()
{
var mm = com.modestmaps,
@@ -5,8 +5,6 @@
<script type="text/javascript" src="../../modestmaps.js"></script>
<script type="text/javascript">
-var MM = com.modestmaps;
-
function MarkerClip(map) {
this.map = map;
@@ -5,9 +5,6 @@
<script type='text/javascript' src='../../modestmaps.js'></script>
<script type='text/javascript'>
window.onload = function() {
- // "import" namespace
- var MM = com.modestmaps;
-
// grab elements once for convenience
var parent = document.getElementById('map_div'),
toggle = document.getElementById('toggle');
@@ -20,9 +20,6 @@ <h1>Modest Maps JS</h1>
</div>
<p>The above div is a map initialized like so:</p>
<pre id="src">
-// "import" the namespace
-var MM = com.modestmaps;
-
var layer = new MM.Layer(new MM.MapProvider(function(coord) {
var img = parseInt(coord.zoom) +'-r'+ parseInt(coord.row) +'-c'+ parseInt(coord.column) + '.jpg';
return 'http://osm-bayarea.s3.amazonaws.com/' + img;
@@ -6,8 +6,7 @@
<script type="text/javascript" src="modestmaps.markers.js"></script>
<script type="text/javascript" src="spotlight.js"></script>
<script type="text/javascript">
- var MM = com.modestmaps,
- map,
+ var map,
markers,
spotlight,
locationsByType = {};
@@ -6,7 +6,6 @@
<script type="text/javascript" src="follower.js"></script>
<script type="text/javascript">
-var MM = com.modestmaps;
var map;
function initMap() {
@@ -5,7 +5,6 @@
<script type="text/javascript" src="../../modestmaps.js"></script>
<script type="text/javascript">
-var MM = com.modestmaps;
var leftMap, rightMap;
function initMaps() {
@@ -2,7 +2,7 @@ describe('Coordinate', function() {
var coordinate;
beforeEach(function() {
- coordinate = new com.modestmaps.Coordinate(0, 0, 2);
+ coordinate = new MM.Coordinate(0, 0, 2);
});
it('generates a key', function() {

0 comments on commit a6322ae

Please sign in to comment.