Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusmaso/jquery.lifecycle
jQuery plugin for handling DOM 4 lifecycle events with Mutation Observers
https://github.com/mateusmaso/jquery.lifecycle
javascript jquery jquery-plugin lifecycle lifecycle-events mutationobserver
Last synced: 2 months ago
JSON representation
jQuery plugin for handling DOM 4 lifecycle events with Mutation Observers
- Host: GitHub
- URL: https://github.com/mateusmaso/jquery.lifecycle
- Owner: mateusmaso
- License: mit
- Created: 2013-03-11T06:36:24.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T01:56:30.000Z (over 9 years ago)
- Last Synced: 2024-10-06T04:21:22.190Z (3 months ago)
- Topics: javascript, jquery, jquery-plugin, lifecycle, lifecycle-events, mutationobserver
- Language: JavaScript
- Homepage:
- Size: 262 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
jquery.lifecycle [![Build Status](https://travis-ci.org/mateusmaso/jquery.lifecycle.svg?branch=master)](https://travis-ci.org/mateusmaso/jquery.lifecycle)
================This library is an extension for jQuery which allows observing mutation changes.
## Features
* Support for DOM 4 Mutation Observer API.
* Listen to ```insert```, ```remove```, ```change``` and ```subtreeChange``` events.## Dependencies
* jquery.js (>= 2.1.0)
## Examples
### Start observing mutation events
```javascript
$(element).lifecycle({
insert: function() { ... },
remove: function() { ... },
change: function(attribute, value) { ... },
subtreeChange: function(node) { ... }
});
```### Stop observing mutation events
```javascript
$(element).unlifecycle();
```## License
Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.