diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-04 15:28:25 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-04 15:28:25 -0400 |
| commit | 1671bec66825fe28e131fe5094af035ee6cf8d44 (patch) | |
| tree | 87ef058dca76e4e6f8ce1a9ce4cd19180fef85c5 | |
| parent | 4edb1ae335ad4a18ee51e6d4610a01988dac08c8 (diff) | |
Added a check to make sure querySelector is invoked only if getActive body is not null - gets rid of pesky exception
| -rw-r--r-- | www/external/ionic.content.banner.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/external/ionic.content.banner.js b/www/external/ionic.content.banner.js index 575b0978..900b96a6 100644 --- a/www/external/ionic.content.banner.js +++ b/www/external/ionic.content.banner.js @@ -153,8 +153,9 @@ angular.module('jett.ionic.content.banner', ['ionic']); if (scope.removed) { return; } - - getActiveView(body).querySelector('.scroll-content').appendChild(element[0]); + // PP: get rid of querySelector + if (getActiveView(body) !== undefined) + getActiveView(body).querySelector('.scroll-content').appendChild(element[0]); ionic.requestAnimationFrame(function () { $timeout(function () { |
