Permalink
Browse files

Only allow proper values for run-at, otherwise default.

Refs: #1103
  • Loading branch information...
1 parent e4f5949 commit 724e2004066d0ddeafb73728b8ed586bd5c3279c @arantius arantius committed Jul 20, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 content/config.js
View
@@ -252,7 +252,9 @@ Config.prototype.parse = function(source, uri, updateScript) {
if (!script._namespace && uri) script._namespace = uri.host;
if (!script._description) script._description = "";
if (!script._version) script._version = "";
- if (!script._runAt) script._runAt = "document-end";
+ if ("document-start" != script._runAt && "document-end" != script._runAt) {
+ script._runAt = "document-end";
+ }
if (script._includes.length == 0) script._includes.push("*");
return script;

0 comments on commit 724e200

Please sign in to comment.