Open lichunqiang opened 9 years ago
Hi, I have one question.
In this line: https://github.com/toddmotto/echo/blob/master/dist/echo.js#L8
why not do module.exports = factory(root) ?
module.exports = factory(root)
By default , I will get a function , I should do call it to get the object.
this is by design?
Thanks!
+1 - To get around this one needs to invoke with var echo = require('echo')(window); and that does not seem to be be intended by the look of the documentation.
var echo = require('echo')(window);
Hi, I have one question.
In this line: https://github.com/toddmotto/echo/blob/master/dist/echo.js#L8
why not do
module.exports = factory(root)
?By default , I will get a function , I should do call it to get the object.
this is by design?
Thanks!