Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "pubsub-js", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Dependency free publish/subscribe library", | ||
@@ -5,0 +5,0 @@ "main": "./src/pubsub.js", |
function reportError(message) { | ||
if (typeof console !== 'undefined'){ | ||
console.error(new Error(errorMessage)); | ||
return; | ||
} | ||
if ($.error) { | ||
$.error(errorMessage); | ||
} | ||
} | ||
if ( $.pubsub ){ | ||
$.error( 'pubsub is already defined on jQuery, skipping integration of PubSubJS' ); | ||
reportError('pubsub is already defined on jQuery, skipping integration of PubSubJS'); | ||
return false; | ||
@@ -10,5 +21,5 @@ } | ||
return PubSub[ method ].apply( self, Array.prototype.slice.call( arguments, 1 ) ); | ||
} else { | ||
$.error( 'Method ' + method + ' does not exist on jQuery.pubsub' ); | ||
} | ||
reportError('Method ' + method + ' does not exist on jQuery.pubsub'); | ||
} | ||
@@ -15,0 +26,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304397