]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Calc points on init in magellan so it doesn't break when loaded after window load 9491/head
authorKevin Ball <kmball11@gmail.com>
Mon, 12 Dec 2016 19:55:34 +0000 (11:55 -0800)
committerKevin Ball <kmball11@gmail.com>
Mon, 12 Dec 2016 19:55:34 +0000 (11:55 -0800)
js/foundation.magellan.js

index eb63366c4df3228a1a12240404e5994d984ffb96..4613b5960d5b30bc64a6bac0f1638828ce89db4a 100644 (file)
@@ -20,6 +20,7 @@ class Magellan {
     this.options  = $.extend({}, Magellan.defaults, this.$element.data(), options);
 
     this._init();
+    this.calcPoints();
 
     Foundation.registerPlugin(this, 'Magellan');
   }