0.0.1 • Published 11 years ago

dev-component v0.0.1

Weekly downloads
1
License
-
Repository
-
Last release
11 years ago

dev

Inspect objects associated to DOM elements in web inspector.

npm.io

Installation

$ component install component/dev

Usage

When enabled via localStorage.dev = true the object is assigned as _ on the element for inspection in the "properties" panel. This means when the element is selected $._ is also available. A name may be passed instead of "" however "" is nice as it will display early in the properties list.

API

inspect(el, obj, name)

Associate obj with el as name defaulting to "_".

License

MIT