diff --git a/build/build.py b/build/build.py index ebb07d358f..0ca2a74a0e 100755 --- a/build/build.py +++ b/build/build.py @@ -51,10 +51,14 @@ def build(config_file = None, output_file = None, options = None): outputFilename = output_file print "Merging libraries." - if use_compressor == "closure": - sourceFiles = mergejs.getNames(sourceDirectory, configFilename) - else: - merged = mergejs.run(sourceDirectory, None, configFilename) + try: + if use_compressor == "closure": + sourceFiles = mergejs.getNames(sourceDirectory, configFilename) + else: + merged = mergejs.run(sourceDirectory, None, configFilename) + except mergejs.MissingImport, E: + print "\nAbnormal termination." + sys.exit("ERROR: %s" % E) print "Compressing using %s" % use_compressor if use_compressor == "jsmin": diff --git a/examples/mapbox.js b/examples/mapbox.js index c22116d126..ee57d66e0c 100644 --- a/examples/mapbox.js +++ b/examples/mapbox.js @@ -18,7 +18,6 @@ var streets = new OpenLayers.Layer.XYZ( var map = new OpenLayers.Map({ div: "map", - projeciton: "EPSG:900913", layers: [streets], controls: [ new OpenLayers.Control.Attribution(), diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index 50274d5c2d..d28e40a76b 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -685,7 +685,9 @@ OpenLayers.Popup = OpenLayers.Class({ // 'img' properties in the context. // var onImgLoad = function() { - + if (this.popup.id === null) { // this.popup has been destroyed! + return; + } this.popup.updateSize(); if ( this.popup.visible() && this.popup.panMapIfOutOfView ) { diff --git a/readme.md b/readme.md index 074556beb6..edcd4e9dcd 100644 --- a/readme.md +++ b/readme.md @@ -48,7 +48,7 @@ As an example, using bash (with the release files in ~/openlayers): The [examples directory](http://openlayers.org/dev/examples/) is full of useful examples. Documentation is available at http://trac.osgeo.org/openlayers/wiki/Documentation. -You can generate the API documentation with http://www.naturaldocs.org/: +You can generate the API documentation with http://www.naturaldocs.org/ As an example, using bash (with the release files in ~/openlayers): $ cd ~/openlayers/ diff --git a/tests/Test.AnotherWay.baseadditions.js b/tests/Test.AnotherWay.baseadditions.js index 01887bfb88..2354b34361 100644 --- a/tests/Test.AnotherWay.baseadditions.js +++ b/tests/Test.AnotherWay.baseadditions.js @@ -141,7 +141,7 @@ Test.AnotherWay.quicksearch = function(){ Test.AnotherWay.filterTestList = function(str){ Test.AnotherWay.unfilterTestList(); var re = new RegExp(str, 'i'); - var candidates = document.querySelectorAll('#testtable tr td:nth-child(2) a'); + var candidates = document.querySelectorAll('#testtable tr a'); for (var idx = 0, len = candidates.length; idx