]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Change init order to fix deeptab deeplink TypeError 6278/head
authorakodde <mail@adrikodde.nl>
Tue, 10 Feb 2015 08:03:56 +0000 (09:03 +0100)
committerakodde <mail@adrikodde.nl>
Tue, 10 Feb 2015 08:03:56 +0000 (09:03 +0100)
js/foundation/foundation.tab.js

index 24e779a284f8667bf0dc3049c1fff26c7ec738b8..ea15e85ae3e0a9481d5935ca05ca8b2b90a6adc1 100644 (file)
       var self = this,
           S = this.S;
 
-      this.bindings(method, options);
+         // Store the default active tabs which will be referenced when the
+         // location hash is absent, as in the case of navigating the tabs and
+         // returning to the first viewing via the browser Back button.
+         S('[' + this.attr_name() + '] > .active > a', this.scope).each(function () {
+           self.default_tab_hashes.push(this.hash);
+         });
 
       // store the initial href, which is used to allow correct behaviour of the
       // browser back button when deep linking is turned on.
       self.entry_location = window.location.href;
 
+      this.bindings(method, options);
       this.handle_location_hash_change();
-
-      // Store the default active tabs which will be referenced when the
-      // location hash is absent, as in the case of navigating the tabs and
-      // returning to the first viewing via the browser Back button.
-      S('[' + this.attr_name() + '] > .active > a', this.scope).each(function () {
-        self.default_tab_hashes.push(this.hash);
-      });
     },
 
     events : function () {