MCPcopy
hub / github.com/winjs/winjs / wrapAllMethods

Function wrapAllMethods

src/js/WinJS.intellisense.js:34–45  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

32 }
33
34 function wrapAllMethods(v) {
35 /// <param name="v" type="Object" />
36 if (v) {
37 Object.getOwnPropertyNames(v).forEach(function (name) {
38 var value = v[name];
39 if (typeof value === "function") {
40 v[name] = wrap(value);
41 }
42 });
43 }
44 return v;
45 }
46
47 if (this.WinJS) {
48 wrapAllMethods(WinJS.Namespace);

Callers 1

Calls 2

wrapFunction · 0.70
forEachMethod · 0.65

Tested by

no test coverage detected