Permalink
Browse files

Reuse the same file to avoid generation of garbage.

  • Loading branch information...
1 parent c5f9762 commit b5aea14cd81030d5661ed18c54d55c36f06eb86a @Gozala committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 phantomify.js
View
@@ -143,7 +143,7 @@ function phantomify(main) {
bundle.addEntry(main)
var source = bundle.bundle()
var directory = path.dirname(main)
- var file = path.join(directory, "./.phantomify-" + Date.now() + ".js")
+ var file = path.join(directory, "./.phantomify.js")
var bootstrap = path.join(path.dirname(module.filename),
"phantom-bootstrap.js")

0 comments on commit b5aea14

Please sign in to comment.