enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Browserify adapter #86

Closed mweibel closed 10 years ago

mweibel commented 10 years ago

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?