Skip to content

component/dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev

Inspect objects associated to DOM elements in web inspector.

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

About

Associate objects with DOM elements in development for easy inspection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •