MCPcopy
hub / github.com/enyojs/enyo / getScreenTypeObject

Function getScreenTypeObject

src/resolution.js:13–21  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

11 _oldScreenType;
12
13var getScreenTypeObject = function (type) {
14 type = type || _screenType;
15 if (_screenTypeObject && _screenTypeObject.name == type) {
16 return _screenTypeObject;
17 }
18 return _screenTypes.filter(function (elem) {
19 return (type == elem.name);
20 })[0];
21};
22
23/**
24* Resolution independence methods

Callers 1

resolution.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected