This commit is contained in:
Gaël Métais
2015-05-12 11:43:09 +02:00
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
</div>
<div ng-if="policyName === 'jQueryFunctionsUsed'">
Function <b>{{offender.functionName}}</b> used {{offender.count}} times
function <b>{{offender.functionName}}</b> used {{offender.count}} times
</div>
<div ng-if="policyName === 'jQueryNotDelegatedEvents'">
+3 -4
View File
@@ -7,7 +7,6 @@ var jsExecutionTransformer = function() {
this.transform = function(data) {
var javascriptExecutionTree = {};
var scrollExecutionTree = {};
var jQueryFunctionsCollection = new Collection();
var metrics = {
@@ -120,9 +119,9 @@ var jsExecutionTransformer = function() {
debug('Starting scroll execution transformation');
offenders.scrollExecutionTree = JSON.parse(data.toolsResults.phantomas.offenders.scrollExecutionTree[0]);
if (offenders.scrollExecutionTree.children) {
offenders.scrollExecutionTree.children.forEach(function(node) {
offenders.DOMaccessesOnScroll = JSON.parse(data.toolsResults.phantomas.offenders.scrollExecutionTree[0]);
if (offenders.DOMaccessesOnScroll.children) {
offenders.DOMaccessesOnScroll.children.forEach(function(node) {
// Mark a event flag
if (['documentScroll', 'windowScroll', 'window.onscroll'].indexOf(node.data.type) >= 0) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "yellowlabtools",
"version": "1.5.0",
"version": "1.5.1",
"description": "Online tool to audit a webpage for performance and front-end quality issues",
"repository": {
"type": "git",