TradeMe / bootup.js

Cache and load static files from local storage.
MIT License
820 stars 46 forks source link

Rename key used from "cache" to something bootup specific #15

Open jwlrs opened 11 years ago

jwlrs commented 11 years ago

Considering that bootup may live alongside other code that wants to use localStorage, it would be a good idea to use a less generic name for your key on localStorage.setItem, in order to avoid accidental collisions. Maybe "bootupjs.cache" or something.

Otherwise, great idea!

djmc commented 11 years ago

Good point! Maybe being able to specify what the key is will also allow a bit of control if even that is a collision for whatever reason.