Commit f355f36d by carl bergquist

rename(phantomjs): improve variable naming

parent 5aa11b45
......@@ -36,8 +36,8 @@ page.open(params.url, function (status) {
var canvas = page.evaluate(function() {
var body = angular.element(document.body); // 1
var rootScope = body.scope().$root;
var panels = angular.element('div.panel').length;
return rootScope.performance.panelsRendered >= panels;
var panelsToLoad = angular.element('div.panel').length;
return rootScope.performance.panelsRendered >= panelsToLoad;
});
if (canvas || tries === 1000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment