forked from pieterv/wire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dom.js
24 lines (20 loc) · 822 Bytes
/
dom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @license MIT License (c) copyright B Cavalier & J Hann */
/**
* wire/dom plugin
* wire plugin that provides a resource resolver for dom nodes, by id, in the
* current page. This allows easy wiring of page-specific dom references into
* generic components that may be page-independent, i.e. makes it easier to write
* components that can be used on multiple pages, but still require a reference
* to one or more nodes on the page.
*
* wire is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*/
define(['./lib/plugin-base/dom', './lib/dom/base', './domReady'], function(createDomPlugin, base, domReady) {
return createDomPlugin({
addClass: base.addClass,
removeClass: base.removeClass
});
});