aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2017-03-06 10:23:16 +0530
committerseshukm <seshu.kumar.m@huawei.com>2017-03-06 10:23:16 +0530
commit663394f188c4460ad889b70a82557db0f9754032 (patch)
tree09d5bea2b0684b5752f5cd8f74e1f3f4ffaa740a /vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js
parent194d6e19da729265130123b6638e0f57589c9367 (diff)
thirdparty files updated for the vnf market place
IssueId : CLIENT-4 Change-Id: Id58c2d11985bda35dc482b122dc404aea2e477da Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js')
-rw-r--r--vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js b/vnfmarket/common/thirdparty/jquery/src/deferred/exceptionHook.js
new file mode 100644
index 00000000..6dbdc852
--- /dev/null
+++ b/vnfmarket/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 );
+ }
+};
+
+} );