aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2017-03-08 11:54:56 +0530
committerseshukm <seshu.kumar.m@huawei.com>2017-03-08 11:54:56 +0530
commit80b299e8c4f290e3b16f35eea922cac989b6e767 (patch)
treeb99086734507728ae096349cca4d0258335dbf4f /vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js
parent5fa92b4eb456b5f4959c39578a3c6e3555c4ae7d (diff)
VnfMarket place refactor
IssueId : CLIENT-4 Change-Id: Ia1b076400f9c3bedf9db714099a608ece392aa59 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js')
-rw-r--r--vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js b/vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js
new file mode 100644
index 00000000..6dbdc852
--- /dev/null
+++ b/vnfmarket/src/main/webapp/common/thirdparty/jquery/src/deferred/exceptionHook.js
@@ -0,0 +1,21 @@
+define( [
+ "../core",
+ "../deferred"
+], function( jQuery ) {
+
+"use strict";
+
+// These usually indicate a programmer mistake during development,
+// warn about them ASAP rather than swallowing them by default.
+var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
+
+jQuery.Deferred.exceptionHook = function( error, stack ) {
+
+ // Support: IE 8 - 9 only
+ // Console exists when dev tools are open, which can happen at any time
+ if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
+ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
+ }
+};
+
+} );