@microsoft/applicationinsights-core-js 2.8.11-nightly.2302-04 → 2.8.11-nightly.2302-05
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/browser/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +10 -10
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +58 -10
- package/dist/applicationinsights-core-js.api.md +3 -3
- package/dist/applicationinsights-core-js.d.ts +7 -4
- package/dist/applicationinsights-core-js.js +10 -10
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +7 -4
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +12 -9
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/InstrumentHooks.ts +11 -8
- package/types/JavaScriptSDK/InstrumentHooks.d.ts +6 -3
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.34.
|
|
4
|
+
"toolVersion": "7.34.4",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -16583,7 +16583,7 @@
|
|
|
16583
16583
|
{
|
|
16584
16584
|
"kind": "Function",
|
|
16585
16585
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentEvent:function(1)",
|
|
16586
|
-
"docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16586
|
+
"docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16587
16587
|
"excerptTokens": [
|
|
16588
16588
|
{
|
|
16589
16589
|
"kind": "Content",
|
|
@@ -16618,6 +16618,14 @@
|
|
|
16618
16618
|
"kind": "Content",
|
|
16619
16619
|
"text": "boolean"
|
|
16620
16620
|
},
|
|
16621
|
+
{
|
|
16622
|
+
"kind": "Content",
|
|
16623
|
+
"text": ", checkParentProto?: "
|
|
16624
|
+
},
|
|
16625
|
+
{
|
|
16626
|
+
"kind": "Content",
|
|
16627
|
+
"text": "boolean"
|
|
16628
|
+
},
|
|
16621
16629
|
{
|
|
16622
16630
|
"kind": "Content",
|
|
16623
16631
|
"text": "): "
|
|
@@ -16634,8 +16642,8 @@
|
|
|
16634
16642
|
],
|
|
16635
16643
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16636
16644
|
"returnTypeTokenRange": {
|
|
16637
|
-
"startIndex":
|
|
16638
|
-
"endIndex":
|
|
16645
|
+
"startIndex": 11,
|
|
16646
|
+
"endIndex": 12
|
|
16639
16647
|
},
|
|
16640
16648
|
"releaseTag": "Public",
|
|
16641
16649
|
"overloadIndex": 1,
|
|
@@ -16671,6 +16679,14 @@
|
|
|
16671
16679
|
"endIndex": 8
|
|
16672
16680
|
},
|
|
16673
16681
|
"isOptional": true
|
|
16682
|
+
},
|
|
16683
|
+
{
|
|
16684
|
+
"parameterName": "checkParentProto",
|
|
16685
|
+
"parameterTypeTokenRange": {
|
|
16686
|
+
"startIndex": 9,
|
|
16687
|
+
"endIndex": 10
|
|
16688
|
+
},
|
|
16689
|
+
"isOptional": true
|
|
16674
16690
|
}
|
|
16675
16691
|
],
|
|
16676
16692
|
"name": "InstrumentEvent"
|
|
@@ -16678,7 +16694,7 @@
|
|
|
16678
16694
|
{
|
|
16679
16695
|
"kind": "Function",
|
|
16680
16696
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFunc:function(1)",
|
|
16681
|
-
"docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16697
|
+
"docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16682
16698
|
"excerptTokens": [
|
|
16683
16699
|
{
|
|
16684
16700
|
"kind": "Content",
|
|
@@ -16713,6 +16729,14 @@
|
|
|
16713
16729
|
"kind": "Content",
|
|
16714
16730
|
"text": "boolean"
|
|
16715
16731
|
},
|
|
16732
|
+
{
|
|
16733
|
+
"kind": "Content",
|
|
16734
|
+
"text": ", checkParentProto?: "
|
|
16735
|
+
},
|
|
16736
|
+
{
|
|
16737
|
+
"kind": "Content",
|
|
16738
|
+
"text": "boolean"
|
|
16739
|
+
},
|
|
16716
16740
|
{
|
|
16717
16741
|
"kind": "Content",
|
|
16718
16742
|
"text": "): "
|
|
@@ -16729,8 +16753,8 @@
|
|
|
16729
16753
|
],
|
|
16730
16754
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16731
16755
|
"returnTypeTokenRange": {
|
|
16732
|
-
"startIndex":
|
|
16733
|
-
"endIndex":
|
|
16756
|
+
"startIndex": 11,
|
|
16757
|
+
"endIndex": 12
|
|
16734
16758
|
},
|
|
16735
16759
|
"releaseTag": "Public",
|
|
16736
16760
|
"overloadIndex": 1,
|
|
@@ -16766,6 +16790,14 @@
|
|
|
16766
16790
|
"endIndex": 8
|
|
16767
16791
|
},
|
|
16768
16792
|
"isOptional": true
|
|
16793
|
+
},
|
|
16794
|
+
{
|
|
16795
|
+
"parameterName": "checkParentProto",
|
|
16796
|
+
"parameterTypeTokenRange": {
|
|
16797
|
+
"startIndex": 9,
|
|
16798
|
+
"endIndex": 10
|
|
16799
|
+
},
|
|
16800
|
+
"isOptional": true
|
|
16769
16801
|
}
|
|
16770
16802
|
],
|
|
16771
16803
|
"name": "InstrumentFunc"
|
|
@@ -16773,7 +16805,7 @@
|
|
|
16773
16805
|
{
|
|
16774
16806
|
"kind": "Function",
|
|
16775
16807
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFuncs:function(1)",
|
|
16776
|
-
"docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16808
|
+
"docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16777
16809
|
"excerptTokens": [
|
|
16778
16810
|
{
|
|
16779
16811
|
"kind": "Content",
|
|
@@ -16808,6 +16840,14 @@
|
|
|
16808
16840
|
"kind": "Content",
|
|
16809
16841
|
"text": "boolean"
|
|
16810
16842
|
},
|
|
16843
|
+
{
|
|
16844
|
+
"kind": "Content",
|
|
16845
|
+
"text": ", checkParentProto?: "
|
|
16846
|
+
},
|
|
16847
|
+
{
|
|
16848
|
+
"kind": "Content",
|
|
16849
|
+
"text": "boolean"
|
|
16850
|
+
},
|
|
16811
16851
|
{
|
|
16812
16852
|
"kind": "Content",
|
|
16813
16853
|
"text": "): "
|
|
@@ -16828,8 +16868,8 @@
|
|
|
16828
16868
|
],
|
|
16829
16869
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16830
16870
|
"returnTypeTokenRange": {
|
|
16831
|
-
"startIndex":
|
|
16832
|
-
"endIndex":
|
|
16871
|
+
"startIndex": 11,
|
|
16872
|
+
"endIndex": 13
|
|
16833
16873
|
},
|
|
16834
16874
|
"releaseTag": "Public",
|
|
16835
16875
|
"overloadIndex": 1,
|
|
@@ -16865,6 +16905,14 @@
|
|
|
16865
16905
|
"endIndex": 8
|
|
16866
16906
|
},
|
|
16867
16907
|
"isOptional": true
|
|
16908
|
+
},
|
|
16909
|
+
{
|
|
16910
|
+
"parameterName": "checkParentProto",
|
|
16911
|
+
"parameterTypeTokenRange": {
|
|
16912
|
+
"startIndex": 9,
|
|
16913
|
+
"endIndex": 10
|
|
16914
|
+
},
|
|
16915
|
+
"isOptional": true
|
|
16868
16916
|
}
|
|
16869
16917
|
],
|
|
16870
16918
|
"name": "InstrumentFuncs"
|
|
@@ -812,13 +812,13 @@ export interface INotificationManager {
|
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
// @public
|
|
815
|
-
export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
815
|
+
export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
816
816
|
|
|
817
817
|
// @public
|
|
818
|
-
export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
818
|
+
export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
819
819
|
|
|
820
820
|
// @public
|
|
821
|
-
export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
|
|
821
|
+
export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
|
|
822
822
|
|
|
823
823
|
// @public
|
|
824
824
|
export type InstrumentorHooksCallback = (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 2.8.11-nightly.2302-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 2.8.11-nightly.2302-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1842,8 +1842,9 @@ declare namespace ApplicationInsights {
|
|
|
1842
1842
|
* @param evtName - The name of the event
|
|
1843
1843
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1844
1844
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1845
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1845
1846
|
*/
|
|
1846
|
-
function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
1847
|
+
function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
1847
1848
|
|
|
1848
1849
|
/**
|
|
1849
1850
|
* Intercept the named prototype functions for the target class / object
|
|
@@ -1851,8 +1852,9 @@ declare namespace ApplicationInsights {
|
|
|
1851
1852
|
* @param funcName - The function name
|
|
1852
1853
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1853
1854
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1855
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1854
1856
|
*/
|
|
1855
|
-
function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
1857
|
+
function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
1856
1858
|
|
|
1857
1859
|
/**
|
|
1858
1860
|
* Intercept the named functions for the target class / object
|
|
@@ -1860,8 +1862,9 @@ declare namespace ApplicationInsights {
|
|
|
1860
1862
|
* @param funcNames - The function names to intercept and call
|
|
1861
1863
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1862
1864
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1865
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1863
1866
|
*/
|
|
1864
|
-
function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
|
|
1867
|
+
function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
|
|
1865
1868
|
|
|
1866
1869
|
/**
|
|
1867
1870
|
* A callback function that will be called for the wrapped instrumentation function
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 2.8.11-nightly.2302-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 2.8.11-nightly.2302-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
1698
|
var _objDefineProperty = ObjDefineProperty;
|
|
1699
|
-
var version = "2.8.11-nightly.2302-
|
|
1699
|
+
var version = "2.8.11-nightly.2302-05";
|
|
1700
1700
|
var instanceName = "." + newId(6);
|
|
1701
1701
|
var _dataUid = 0;
|
|
1702
1702
|
function _createAccessor(target, prop, value) {
|
|
@@ -4284,14 +4284,14 @@
|
|
|
4284
4284
|
return funcArgs.rslt;
|
|
4285
4285
|
};
|
|
4286
4286
|
}
|
|
4287
|
-
function _getOwner(target, name, checkPrototype) {
|
|
4287
|
+
function _getOwner(target, name, checkPrototype, checkParentProto) {
|
|
4288
4288
|
var owner = null;
|
|
4289
4289
|
if (target) {
|
|
4290
4290
|
if (hasOwnProperty(target, name)) {
|
|
4291
4291
|
owner = target;
|
|
4292
4292
|
}
|
|
4293
4293
|
else if (checkPrototype) {
|
|
4294
|
-
owner = _getOwner(_getObjProto$1(target), name, false);
|
|
4294
|
+
owner = _getOwner(_getObjProto$1(target), name, checkParentProto, false);
|
|
4295
4295
|
}
|
|
4296
4296
|
}
|
|
4297
4297
|
return owner;
|
|
@@ -4338,10 +4338,10 @@
|
|
|
4338
4338
|
aiHook.h[_DYN_PUSH ](theHook);
|
|
4339
4339
|
return theHook;
|
|
4340
4340
|
}
|
|
4341
|
-
function InstrumentFunc(target, funcName, callbacks, checkPrototype) {
|
|
4341
|
+
function InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto) {
|
|
4342
4342
|
if (checkPrototype === void 0) { checkPrototype = true; }
|
|
4343
4343
|
if (target && funcName && callbacks) {
|
|
4344
|
-
var owner = _getOwner(target, funcName, checkPrototype);
|
|
4344
|
+
var owner = _getOwner(target, funcName, checkPrototype, checkParentProto);
|
|
4345
4345
|
if (owner) {
|
|
4346
4346
|
var fn = owner[funcName];
|
|
4347
4347
|
if (typeof fn === strShimFunction) {
|
|
@@ -4351,11 +4351,11 @@
|
|
|
4351
4351
|
}
|
|
4352
4352
|
return null;
|
|
4353
4353
|
}
|
|
4354
|
-
function InstrumentFuncs(target, funcNames, callbacks, checkPrototype) {
|
|
4354
|
+
function InstrumentFuncs(target, funcNames, callbacks, checkPrototype, checkParentProto) {
|
|
4355
4355
|
if (checkPrototype === void 0) { checkPrototype = true; }
|
|
4356
4356
|
var hooks = null;
|
|
4357
4357
|
_arrLoop(funcNames, function (funcName) {
|
|
4358
|
-
var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype);
|
|
4358
|
+
var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto);
|
|
4359
4359
|
if (hook) {
|
|
4360
4360
|
if (!hooks) {
|
|
4361
4361
|
hooks = [];
|
|
@@ -4365,9 +4365,9 @@
|
|
|
4365
4365
|
});
|
|
4366
4366
|
return hooks;
|
|
4367
4367
|
}
|
|
4368
|
-
function InstrumentEvent(target, evtName, callbacks, checkPrototype) {
|
|
4368
|
+
function InstrumentEvent(target, evtName, callbacks, checkPrototype, checkParentProto) {
|
|
4369
4369
|
if (target && evtName && callbacks) {
|
|
4370
|
-
var owner = _getOwner(target, evtName, checkPrototype) || target;
|
|
4370
|
+
var owner = _getOwner(target, evtName, checkPrototype, checkParentProto) || target;
|
|
4371
4371
|
if (owner) {
|
|
4372
4372
|
return _createInstrumentHook(owner, evtName, owner[evtName], callbacks);
|
|
4373
4373
|
}
|