Created
February 6, 2013 20:36
-
-
Save WebReflection/4725577 to your computer and use it in GitHub Desktop.
JUST LOL JSLINT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a, b; // JUST LOL JSLINT ! | |
| // tell me how less confusing this is ^_^ | |
| // a can do async stuff | |
| // then b is needed | |
| function a() { | |
| setTimeout(b, 1); | |
| } | |
| // b can be used regardless a() | |
| // if repeat is true | |
| // a() might be needed | |
| function b(repeat) { | |
| if (repeat) { | |
| a(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment