args[1].forEachValue(function(v) { if (!set.contains(v)) { result = false; return true; } }); return new Exhibit.Expression._Collection([ result ? "true" : "false" ], "boolean"); } }; SimileAjax.jQuery(document).ready(function() { <?php $needGeocoding = false; if (isset($exhibits_to_show) && count($exhibits_to_show) > 0) { foreach ($exhibits_to_show as $exhibit_to_show) { if (WpExhibitGeocoder::doesExhibitContainGeocodedData($exhibit_to_show->get('id'))) { $needGeocoding = true; } } } ?> window.database = Exhibit.Database.create(); // If we don't need geocoding, load data links with onAllDataLoaded callback. // IF we do need geocoding, load data links with updateGeocode callback <?php if ($needGeocoding) { ?> window.database.loadDataLinks(updateGeocode); <?php