Skip to content

Conversation

@mweibel
Copy link

@mweibel mweibel commented Oct 30, 2013

Use it as follows:

var Opentip = require('path/to/lib/opentip');
var jQuery = require('path/to/jquery/shim');

require('path/to/lib/adapter-browserify')(Opentip, jQuery);
// jquery shim
require('path/to/jquery');
module.exports = $;

Basicly this adapter could also be used for component.js.
But as I don't know how you would
like to have it, I just created this as well.

Tests are not working with it as I didn't figure
out how the test for the component.js adapter works.
Could you please point me into the right direction?

  • Michael

Use it as follows:

```javascript
var Opentip = require('path/to/lib/opentip');
// jQuery shim can be done as follows:
// require('path/to/jquery');
// module.exports = $;
var jQuery = require('path/to/jquery/shim');

require('path/to/lib/adapter-browserify')(Opentip, jQuery);
```

Basicly this adapter could also be used for component.js etc.
But as I don't know how the original developer would
like to have it, I just created this as well.

Tests are not working with it as I didn't figure
out how the test for the component.js adapter works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant