MCPcopy Create free account
hub / github.com/select2/select2 / calledMethod

Function calledMethod

src/js/select2/utils.js:82–99  ·  view source on GitHub ↗
(methodName)

Source from the content-addressed store, hash-verified

80 }
81
82 var calledMethod = function (methodName) {
83 // Stub out the original method if it's not decorating an actual method
84 var originalMethod = function () {};
85
86 if (methodName in DecoratedClass.prototype) {
87 originalMethod = DecoratedClass.prototype[methodName];
88 }
89
90 var decoratedMethod = DecoratorClass.prototype[methodName];
91
92 return function () {
93 var unshift = Array.prototype.unshift;
94
95 unshift.call(arguments, originalMethod);
96
97 return decoratedMethod.apply(this, arguments);
98 };
99 };
100
101 for (var d = 0; d < decoratedMethods.length; d++) {
102 var decoratedMethod = decoratedMethods[d];

Callers 1

utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…