Skip to content

Commit

Permalink
final 1.0 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Jul 10, 2015
1 parent 0d31933 commit 7bb4cc7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ module.exports = function(grunt) {
},
dev: {
options: {
data: 'site/data/*.json',
data: ['site/data/*.json', 'package.json'],
assets: 'site/build/'
},
files: [{
Expand Down Expand Up @@ -402,4 +402,4 @@ module.exports = function(grunt) {
// Require all grunt modules
require('load-grunt-tasks')(grunt, {pattern: ['grunt-*', 'assemble']});

};
};
5 changes: 2 additions & 3 deletions site/source/layouts/example.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ layout: page.hbs
<script src="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.js"></script>

<!-- Load Esri Leaflet from CDN -->
<!-- we encourage you to replace 'latest' with a hardcoded version number (like '1.0.0-rc.8') in production applications -->
<script src="//cdn.jsdelivr.net/leaflet.esri/latest/esri-leaflet.js"></script>
<script src="//cdn.jsdelivr.net/leaflet.esri/{{package.version}}/esri-leaflet.js"></script>

<style>
body { margin:0; padding:0; }
Expand All @@ -44,4 +43,4 @@ layout: page.hbs
<div class="wrap">
<p><a href="http://github.com/esri/esri-leaflet/edit/master/{{page.src}}">Edit this sample on GitHub</a></p>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion site/source/pages/examples/arcgis-online-auth.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ layout: example.hbs
// make a new map and basemap
var map = L.map('map').setView([39.36, -96.19], 4);
L.esri.basemapLayer('Gray').addTo(map);
</script>
11 changes: 6 additions & 5 deletions site/source/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@

<!-- require combined leaflet, esri leaflet and jsdelivr-rum -->
<script src="//cdn.jsdelivr.net/leaflet/latest/leaflet.js"></script>
<script src="//cdn.jsdelivr.net/leaflet.esri/latest/esri-leaflet.js"></script>
<script src="//cdn.jsdelivr.net/leaflet.esri/{{package.version}}/esri-leaflet.js"></script>
<script src="//cdn.jsdelivr.net/jsdelivr-rum/latest/jsdelivr-rum.min.js"></script>
{{#if siteData.isDev}}
<!-- 'livereload' for development -->
<script src="//localhost:35729/livereload.js"></script>
{{/if}}

{{#if siteData.isDev}}
<!-- 'livereload' for development -->
<script src="//localhost:35729/livereload.js"></script>
{{/if}}

<!-- Google Analytics -->
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/FeatureLayer/FeatureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
mostRecentError = error;
}

if(!featureCollection && featureCollection.features.length){
if(featureCollection){
for (var i = featureCollection.features.length - 1; i >= 0; i--) {
newSnapshot.push(featureCollection.features[i].id);
}
Expand Down

0 comments on commit 7bb4cc7

Please sign in to comment.