diff --git a/.versions b/.versions index 6d08807..ff7dec6 100644 --- a/.versions +++ b/.versions @@ -1,18 +1,18 @@ -babel-compiler@7.0.4 +babel-compiler@7.0.8 babel-runtime@1.2.2 -caching-compiler@1.1.11 +caching-compiler@1.1.12 dynamic-import@0.3.0 -ecmascript@0.10.0 +ecmascript@0.10.8 ecmascript-runtime@0.5.0 ecmascript-runtime-client@0.6.2 ecmascript-runtime-server@0.5.0 -gantrim:materialize-stylus@1.1.3 -http@1.4.0 -jquery@1.11.10 -meteor@1.8.2 -modules@0.11.4 +gantrim:materialize-stylus@1.1.8 +http@1.4.1 +jquery@1.11.11 +meteor@1.8.6 +modules@0.11.6 modules-runtime@0.9.2 -promise@0.10.1 +promise@0.10.2 random@1.1.0 stylus@2.513.14 url@1.2.0 diff --git a/lib/js/bin/materialize.js b/lib/js/bin/materialize.js index 81601c8..260fa1b 100644 --- a/lib/js/bin/materialize.js +++ b/lib/js/bin/materialize.js @@ -1210,7 +1210,9 @@ $(document).ready(function(){ $index = 0; } - $content = $($active[0].hash); + if ($active[0] !== undefined) { + $content = $($active[0].hash); + } // append indicator then set indicator width to tab width $this.append('
'); @@ -1249,7 +1251,10 @@ $(document).ready(function(){ // Make the old tab inactive. $active.removeClass('active'); - $content.hide(); + + if ($content !== undefined) { + $content.hide(); + } // Update the variables with the new link and content $active = $(this); diff --git a/lib/js/tabs.js b/lib/js/tabs.js index 538de5a..fabf0ed 100644 --- a/lib/js/tabs.js +++ b/lib/js/tabs.js @@ -32,7 +32,9 @@ $index = 0; } - $content = $($active[0].hash); + if ($active[0] !== undefined) { + $content = $($active[0].hash); + } // append indicator then set indicator width to tab width $this.append(''); @@ -71,7 +73,9 @@ // Make the old tab inactive. $active.removeClass('active'); - $content.hide(); + if ($content !== undefined) { + $content.hide(); + } // Update the variables with the new link and content $active = $(this); diff --git a/package.js b/package.js index 3ca2252..4d2054c 100644 --- a/package.js +++ b/package.js @@ -3,14 +3,14 @@ Package.describe({ name: 'gantrim:materialize-stylus', // http://atmospherejs.com/materialize/materialize summary: 'Materialize (official): A modern responsive front-end framework based on Material Design', - version: '1.1.3', + version: '1.1.8', git: 'https://github.com/gantrim/meteor-materialize-stylus' }); Package.onUse(function (api) { - api.versionsFrom('METEOR@1.2.1'); + api.versionsFrom('METEOR@1.6.0.1'); - api.use('stylus@2.513.14'); + api.use('stylus@2.513.13'); api.use('jquery', 'client'); api.imply('jquery', 'client');