Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hojberg/ignite
JavaScript init loader
https://github.com/hojberg/ignite
Last synced: about 1 month ago
JSON representation
JavaScript init loader
- Host: GitHub
- URL: https://github.com/hojberg/ignite
- Owner: hojberg
- Created: 2010-10-27T12:14:05.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-28T13:21:49.000Z (about 14 years ago)
- Last Synced: 2024-10-16T04:43:12.570Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
* add init functions on with a condition
ignite.add({condition: true, func: function () { /* ... */ }});
* can also just be the boolean as the first argument
ignite.add(true, function () { /* ... */ });* always run the init function
ignite.add(function () { /* ... */ });* run the init function if #myid exists in the dom
* you can pass a selector engine to the self executing function
* that ignite is wrapped in to use jquery or similar
ignite.add("#myid", function () { /* ... */ });* run with:
$(document).ready(ignite.spark);