Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DocumentJS generates properly with new Steal

  • Loading branch information...
commit e91e1c25eef10d97143d5e82088e87244e438ba4 1 parent a4d48b9
David Luecke daffl authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  documentjs.js
  2. +1 −1  types/script.js
2  documentjs.js
View
@@ -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
})
}
2  types/script.js
View
@@ -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) ) {
Please sign in to comment.
Something went wrong with that request. Please try again.