Skip to content

Commit

Permalink
Only allow proper values for run-at, otherwise default.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Jul 20, 2011
1 parent e4f5949 commit 724e200
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/config.js
Expand Up @@ -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;
Expand Down

0 comments on commit 724e200

Please sign in to comment.