Don't use jQuery, simplify

with-route-provider
Lorenz Hübschle-Schneider 12 years ago committed by David Cormier
parent e48fe29cf8
commit 2e963da581
  1. 12
      js/glowingbear.js

@ -812,13 +812,11 @@ weechat.directive('plugin', function() {
$scope.plugin.visible = true; $scope.plugin.visible = true;
// Scroll embed content into view // Scroll embed content into view
var elems = $("." + $scope.plugin.$$hashKey); var scroll = function() {
if (elems.length == 1) { var embed = document.querySelector("." + $scope.plugin.$$hashKey);
var scroll = function() { embed.scrollIntoViewIfNeeded();
elems[0].scrollIntoViewIfNeeded(); };
}; setTimeout(scroll, 100);
setTimeout(scroll, 100);
}
}; };
} }

Loading…
Cancel
Save