enyo/opentip — pull request #105 by lagden (2014-04-16 19:55:07+00:00)
Title: Universal Module Definition patterns for JavaScript modules that work eve...

UMD ok!

**Usage:**
``` javascript
requirejs.config({
baseUrl: 'js/lib',
paths: {
'opentip': 'opentip/opentip',
'opentip-adapter': 'opentip'
}
});

define(function(require) {

'use strict';

// Tooltip
var Opentip = require('opentip');
var Adapter = require('opentip-adapter/opentip-adapter-native');

// Tooltip setup
Opentip.styles.example = {
'showOn': 'click',
'tipJoint': 'top',
'target': true,
'fixed': true,
'hideTrigger': 'closeButton'
};

function Tooltip(el, txt) {
new Opentip(el, txt, {
style: 'example'
});
}

return Tooltip;
});
```