MCPcopy
hub / github.com/aosabook/500lines / hotCreateModule

Function hotCreateModule

spreadsheet/code/as-react-livescript/main.js:100–159  ·  view source on GitHub ↗
(moduleId)

Source from the content-addressed store, hash-verified

98/******/ }
99/******/
100/******/ function hotCreateModule(moduleId) {
101/******/ var hot = {
102/******/ // private stuff
103/******/ _acceptedDependencies: {},
104/******/ _declinedDependencies: {},
105/******/ _selfAccepted: false,
106/******/ _selfDeclined: false,
107/******/ _disposeHandlers: [],
108/******/
109/******/ // Module API
110/******/ active: true,
111/******/ accept: function(dep, callback) {
112/******/ if(typeof dep === "undefined")
113/******/ hot._selfAccepted = true;
114/******/ else if(typeof dep === "function")
115/******/ hot._selfAccepted = dep;
116/******/ else if(typeof dep === "number")
117/******/ hot._acceptedDependencies[dep] = callback;
118/******/ else for(var i = 0; i < dep.length; i++)
119/******/ hot._acceptedDependencies[dep[i]] = callback;
120/******/ },
121/******/ decline: function(dep) {
122/******/ if(typeof dep === "undefined")
123/******/ hot._selfDeclined = true;
124/******/ else if(typeof dep === "number")
125/******/ hot._declinedDependencies[dep] = true;
126/******/ else for(var i = 0; i < dep.length; i++)
127/******/ hot._declinedDependencies[dep[i]] = true;
128/******/ },
129/******/ dispose: function(callback) {
130/******/ hot._disposeHandlers.push(callback);
131/******/ },
132/******/ addDisposeHandler: function(callback) {
133/******/ hot._disposeHandlers.push(callback);
134/******/ },
135/******/ removeDisposeHandler: function(callback) {
136/******/ var idx = hot._disposeHandlers.indexOf(callback);
137/******/ if(idx >= 0) hot._disposeHandlers.splice(idx, 1);
138/******/ },
139/******/
140/******/ // Management API
141/******/ check: hotCheck,
142/******/ apply: hotApply,
143/******/ status: function(l) {
144/******/ if(!l) return hotStatus;
145/******/ hotStatusHandlers.push(l);
146/******/ },
147/******/ addStatusHandler: function(l) {
148/******/ hotStatusHandlers.push(l);
149/******/ },
150/******/ removeStatusHandler: function(l) {
151/******/ var idx = hotStatusHandlers.indexOf(l);
152/******/ if(idx >= 0) hotStatusHandlers.splice(idx, 1);
153/******/ },
154/******/
155/******/ //inherit from previous dispose call
156/******/ data: hotCurrentModuleData[moduleId]
157/******/ };

Callers 1

__webpack_require__Function · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected