Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

module.exports is empty when using browserify #74

Closed
rdsubhas opened this issue Apr 4, 2014 · 1 comment
Closed

module.exports is empty when using browserify #74

rdsubhas opened this issue Apr 4, 2014 · 1 comment

Comments

@rdsubhas
Copy link
Contributor

rdsubhas commented Apr 4, 2014

Hi, Thanks for the wonderful library! I'm using Browserify to package and running it in Chrome. But the FTScroller object is empty!

var FTScroller = require("ftscroller");
console.log(FTScroller); // empty object!

I believe this is because of the var module declaration in this line which could be messing up with the existing module object.

I've found your other excellent library ftlabs/FastClick to use a very nice way to define the module. I've tested with that and it works like a charm. Can we use that same approach here too?

Chrome v 33.0.1750.152, Browserify v 3.38.0, Node v 0.10.26, NPM v 1.4.3

@apaleslimghost
Copy link

Presumably fixed by your pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants