https://github.com/scriptype/person
Mother of all person classes.
https://github.com/scriptype/person
Last synced: 9 months ago
JSON representation
Mother of all person classes.
- Host: GitHub
- URL: https://github.com/scriptype/person
- Owner: scriptype
- License: mit
- Created: 2013-10-14T07:58:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-16T10:06:24.000Z (over 12 years ago)
- Last Synced: 2025-03-25T21:11:36.742Z (about 1 year ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Person
======
Mother of all person classes.
Create a new instance of Person with console like:
```javascript
var x = new Person("scriptyper",20,"m","istanbul");
```
Your instance must now appear in DOM. This is provided with using localStorage as a temporary database. When an instance created, it's passed to localStorage and after generation of it, view function is triggered. View function checks for any new data in localStorage, turns any new data into DOM contents.
You can edit/add informations about your person and as soon as data added DOM will immediately update itself.
To see what methods and properties your instance has, simply console:
```javascript
x;
```
Once created, instance objects will always be in DOM as their data is stored in localStorage.
Currently, editing instances belongs to older sessions is a challange. This feature may or may not be included in later versions.