Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New riot

  • Loading branch information...
commit 7aa5e7215c9f6294bc0ed56dc265df15a903bd27 1 parent 1c662f4
Alex Young authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 riot.js
View
7 riot.js
@@ -42,7 +42,12 @@
if (document.loaded) return;
if (timer) window.clearTimeout(timer);
document.loaded = true;
- Riot.loadBrowserScripts(Riot.requiredFiles, tests);
+
+ if (Riot.requiredFiles.length > 0) {
+ Riot.loadBrowserScripts(Riot.requiredFiles, tests);
+ } else {
+ Riot.runAndReport(tests);
+ }
}
function checkReadyState() {
Please sign in to comment.
Something went wrong with that request. Please try again.