Browse files

DocumentJS generates properly with new Steal

  • Loading branch information...
1 parent a4d48b9 commit e91e1c25eef10d97143d5e82088e87244e438ba4 @daffl daffl committed Jun 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 documentjs.js
  2. +1 −1 types/script.js
View
2 documentjs.js
@@ -328,7 +328,7 @@ steal( 'steal/generate/ejs.js',
scripts.each(function(script, text){
if (text && script.src) {
collection.push({
- src: script.rootSrc,
+ src: script.rootSrc.toString ? script.rootSrc.toString() : script.rootSrc,
text: text
})
}
View
2 types/script.js
@@ -101,7 +101,7 @@ steal.then(function() {
}
}
- var source = docScript.text || readFile(docScript.src);
+ var source = readFile(docScript.src);
//check if the source has @documentjs-ignore
if ( ignoreCheck.test(source) ) {

0 comments on commit e91e1c2

Please sign in to comment.