MCPcopy
hub / github.com/imakewebthings/deck.js / createBeforeInitEvent

Function createBeforeInitEvent

core/deck.core.js:264–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 };
263
264 var createBeforeInitEvent = function() {
265 var event = $.Event(events.beforeInitialize);
266 event.locks = 0;
267 event.done = $.noop;
268 event.lockInit = function() {
269 ++event.locks;
270 };
271 event.releaseInit = function() {
272 --event.locks;
273 if (!event.locks) {
274 event.done();
275 }
276 };
277 return event;
278 };
279
280 var goByHash = function(str) {
281 var id = str.substr(str.indexOf("#") + 1);

Callers 1

deck.core.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected