6ElmRuntime.guid = function() { return ElmRuntime.counter++; }
8ElmRuntime.use = function(M) {
9 if (typeof M === 'function') M = M();
13function isAlive(input) {
14 if (!('defaultNumberOfKids' in input)) return true;
15 var len = input.kids.length;
16 if (len == 0) return false;
17 if (len > input.defaultNumberOfKids) return true;
19 for (var i = len; i--; ) {
20 alive = alive || isAlive(input.kids[i]);
25ElmRuntime.filterDeadInputs = function(inputs) {
27 for (var i = inputs.length; i--; ) {
28 if (isAlive(inputs[i])) temp.push(inputs[i]);
33// define the draw function
34var vendors = ['ms', 'moz', 'webkit', 'o'];
35for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {
36 window.requestAnimationFrame = window[vendors[i]+'RequestAnimationFrame'];
37 window.cancelAnimationFrame = window[vendors[i]+'CancelAnimationFrame']
38 || window[vendors[i]+'CancelRequestAnimationFrame'];
41if (window.requestAnimationFrame && window.cancelAnimationFrame) {
43 ElmRuntime.draw = function(callback) {
44 window.cancelAnimationFrame(previous);
45 previous = window.requestAnimationFrame(callback);
48 ElmRuntime.draw = function(callback) { callback(); };
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list