MCPcopy
hub / github.com/winjs/winjs / makeArray

Function makeArray

src/js/WinJS/Animations.js:80–88  ·  view source on GitHub ↗
(elements)

Source from the content-addressed store, hash-verified

78 }
79
80 function makeArray(elements) {
81 if (Array.isArray(elements) || elements instanceof _Global.NodeList || elements instanceof _Global.HTMLCollection) {
82 return elements;
83 } else if (elements) {
84 return [elements];
85 } else {
86 return [];
87 }
88 }
89
90 function collectOffsetArray(elemArray) {
91 var offsetArray = [];

Callers 3

animRotationTransformFunction · 0.70
layoutTransitionFunction · 0.70
Animations.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected