<commit_before>[lightbox]({{ git.io-URL }})
========================

> An implementation comprising chainable operations, each representing a lightbox customisation, resulting .

## API ##

### .attach(id) ###
    @id {String} The ID of the content that the lightbox will encapsulate

### .open([emitter]) ###
    emitter {String}, Optional, Default: system

### .close([emitter]) ###
### .on(eventType, callback) ###
### .settings() ###

## Examples ##

### Basic, single instance ###
* can be activated by an element
* includes a boolean flag describing bookmarkable state
* includes a callback that's fired when the lightbox is opened
* attaches to a DOM node with an ID attribute value of 'demo-one'

      lightbox
        .settings({ toggle: true, loadPersist: true })
        .on('open', function() {
          console.log('it has opened!')
        })
        .attach('demo-one')

### Instance composition ###
It's easy to compose lightbox from another predefined instance.
* includes a callback that's fired when the lightbox becomes attached to it's DOM node

      var lightbox
        .on('attach', function() {
          console.log('it has become attached!');
        })
* compose instance from `lightbox`
* includes a callback that's fired when the lightbox becomes attached to it's DOM node
* opens upon instantiation

      var contextSpecificLightbox = lightbox
        .on('attach', function() {
          console.log('the new instance has become attach!');
        })
        .open()<commit_msg>Improved documentation<commit_after>[lightbox]({{ git.io-URL }})
========================

> An implementation comprising chainable operations, each representing a lightbox customisation, resulting .

## API ##

### .attach(id) ###
    @id {String} The ID of the content that the lightbox will encapsulate

### .open([emitter]) ###
    emitter {String}, Optional, Default: system

### .close([emitter]) ###
### .on(eventType, callback) ###
### .settings() ###

## Examples ##

### Basic, single instance ###
* can be activated by an element
* includes a boolean flag describing bookmarkable state
* includes a callback that's fired when the lightbox is opened
* attaches to a DOM node with an ID attribute value of 'demo-one'
        lightbox
          .settings({ toggle: true, loadPersist: true })
          .on('open', function() {
            console.log('it has opened!')
          })
          .attach('demo-one')

### Instance composition ###
It's easy to compose lightbox from another predefined instance.
* includes a callback that's fired when the lightbox becomes attached to it's DOM node

      var lightbox
        .on('attach', function() {
          console.log('it has become attached!');
        })
* compose instance from `lightbox`
* includes a callback that's fired when the lightbox becomes attached to it's DOM node
* opens upon instantiation

      var contextSpecificLightbox = lightbox
        .on('attach', function() {
          console.log('the new instance has become attach!');
        })
        .open()
{'fraction_non_alphanumeric': 0.13639344262295083, 'fraction_numerical': 0.0, 'mean_word_length': 3.279102384291725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3760655', 'n_tokens_mistral': 807, 'n_tokens_neox': 780, 'n_words': 308}