Bläddra i källkod

js nullchecks

tags/v1.0.0
Stefano Chiodino 6 år sedan
förälder
incheckning
3fe31ae856
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5
    2
      static/js/script.js

+ 5
- 2
static/js/script.js Visa fil

@@ -63,7 +63,8 @@ jQuery(function ($) {
/* Portfolio Filtering Hook
/* ========================================================================= */

var mixer = mixitup('.portfolio-items-wrapper');
if ($('.portfolio-items-wrapper').length)
mixitup('.portfolio-items-wrapper');

/* ========================================================================= */
/* Testimonial Carousel
@@ -305,4 +306,6 @@ function initialize() {
map.setMapTypeId('roadatlas');
}

google.maps.event.addDomListener(window, "load", initialize);
// Check init google maps only if "google" has been defined.
if("google" in window)
google.maps.event.addDomListener(window, "load", initialize);

Laddar…
Avbryt
Spara