MCPcopy Create free account
hub / github.com/cujojs/poly / useNativeForDom

Function useNativeForDom

object.js:350–355  ·  view source on GitHub ↗
(orig, shim)

Source from the content-addressed store, hash-verified

348 }
349
350 function useNativeForDom (orig, shim) {
351 return function (obj) {
352 if (base.isElement(obj)) return orig.apply(this, arguments);
353 else return shim.apply(this, arguments);
354 };
355 }
356
357 function failIfShimmed (failTest) {
358 var shouldThrow;

Callers 1

object.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected