|
@@ -141,7 +141,6 @@ exports.module = function(phantomas) {
|
|
phantomas.once('init', function() {
|
|
phantomas.once('init', function() {
|
|
phantomas.evaluate(function(jQueryFunctions, jQueryTraversalFunctions) {
|
|
phantomas.evaluate(function(jQueryFunctions, jQueryTraversalFunctions) {
|
|
(function(phantomas) {
|
|
(function(phantomas) {
|
|
- var jQuery;
|
|
|
|
var oldJQuery;
|
|
var oldJQuery;
|
|
|
|
|
|
phantomas.spyGlobalVar('jQuery', function(jQuery) {
|
|
phantomas.spyGlobalVar('jQuery', function(jQuery) {
|
|
@@ -371,14 +370,6 @@ exports.module = function(phantomas) {
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
- // store the last resource that was received
|
|
|
|
- // try to report where given jQuery version was loaded from
|
|
|
|
- phantomas.on('recv', function(entry) {
|
|
|
|
- if (entry.isJS) {
|
|
|
|
- lastUrl = entry.url;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
phantomas.on('jQueryLoaded', function(version) {
|
|
phantomas.on('jQueryLoaded', function(version) {
|
|
phantomas.log('jQuery: loaded v' + version);
|
|
phantomas.log('jQuery: loaded v' + version);
|
|
phantomas.setMetric('jQueryVersion', version);
|
|
phantomas.setMetric('jQueryVersion', version);
|
|
@@ -386,7 +377,5 @@ exports.module = function(phantomas) {
|
|
// report multiple jQuery "instances" (issue #435)
|
|
// report multiple jQuery "instances" (issue #435)
|
|
phantomas.incrMetric('jQueryVersionsLoaded');
|
|
phantomas.incrMetric('jQueryVersionsLoaded');
|
|
phantomas.addOffender('jQueryVersionsLoaded', 'v%s', version);
|
|
phantomas.addOffender('jQueryVersionsLoaded', 'v%s', version);
|
|
-
|
|
|
|
- phantomas.log('jQuery: v%s (probably loaded from <%s>)', version, lastUrl);
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|