aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2015-08-24 13:15:58 -0300
committerSilvio <silvio@socioambiental.org>2015-08-24 13:15:58 -0300
commita02b0977d7096d989266d2b65ac633bf81cd1e8b (patch)
tree1b111ae7425d737e89e038a58542e1319ed42325
parentfbadaebf419485659774ce52d7c8c89d08c7cd81 (diff)
downloadgmap_arcgis_js-a02b0977d7096d989266d2b65ac633bf81cd1e8b.tar.gz
gmap_arcgis_js-a02b0977d7096d989266d2b65ac633bf81cd1e8b.tar.bz2
Fix jQuery slider checks
-rw-r--r--gmap_arcgis.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 81f4f44..9e59f15 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -566,7 +566,7 @@ function gmapArcgis(config) {
var max = (self.config.sliders[slider].max != undefined) ? self.config.sliders[slider].max : 1;
var step = (self.config.sliders[slider].step != undefined) ? self.config.sliders[slider].step : 1;
- if (type == 'selectToUISlider' && jQuery.selectToUISlider) {
+ if (type == 'selectToUISlider' && jQuery.fn.selectToUISlider != undefined) {
jQuery(element).selectToUISlider({
sliderOptions: {
slide: function(event, ui) {
@@ -575,7 +575,7 @@ function gmapArcgis(config) {
}
}).hide();
}
- else if (jQuery.slider) {
+ else if (jQuery.fn.slider != undefined) {
// Max is the number of layers in the service
jQuery(element).slider({
value: value,