pax_global_header00006660000000000000000000000064124455457160014527gustar00rootroot0000000000000052 comment=2998e2dece6330d8141d0896bec1c116346831b8 ev-store-7.0.0/000077500000000000000000000000001244554571600132775ustar00rootroot00000000000000ev-store-7.0.0/.gitignore000066400000000000000000000002251244554571600152660ustar00rootroot00000000000000.DS_Store .monitor .*.swp .nodemonignore releases *.log *.err fleet.json public/browserify bin/*.json .bin build compile .lock-wscript node_modules ev-store-7.0.0/.jshintrc000066400000000000000000000010411244554571600151200ustar00rootroot00000000000000{ "maxdepth": 4, "maxstatements": 200, "maxcomplexity": 12, "maxlen": 80, "maxparams": 5, "curly": true, "eqeqeq": true, "immed": true, "latedef": false, "noarg": true, "noempty": true, "nonew": true, "undef": true, "unused": "vars", "trailing": true, "quotmark": true, "expr": true, "asi": true, "browser": false, "esnext": true, "devel": false, "node": false, "nonstandard": false, "predef": ["require", "module", "__dirname", "__filename"] } ev-store-7.0.0/LICENCE000066400000000000000000000020341244554571600142630ustar00rootroot00000000000000Copyright (c) 2012 Colingo. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ev-store-7.0.0/README.md000066400000000000000000000004651244554571600145630ustar00rootroot00000000000000# ev-store Stores event listeners and event handles on a DOM object ## Example ```js var EvStore = require('ev-store'); var elem = someElement var events = EvStore(elem) events.click = function () { /* ... */ }; ``` ## Installation `npm install ev-store` ## Contributors - Raynos ## MIT Licenced ev-store-7.0.0/index.js000066400000000000000000000005431244554571600147460ustar00rootroot00000000000000'use strict'; var OneVersionConstraint = require('individual/one-version'); var MY_VERSION = '7'; OneVersionConstraint('ev-store', MY_VERSION); var hashKey = '__EV_STORE_KEY@' + MY_VERSION; module.exports = EvStore; function EvStore(elem) { var hash = elem[hashKey]; if (!hash) { hash = elem[hashKey] = {}; } return hash; } ev-store-7.0.0/package.json000066400000000000000000000016101244554571600155630ustar00rootroot00000000000000{ "name": "ev-store", "version": "7.0.0", "description": "Stores event listeners and event handles on a DOM object", "keywords": [], "author": "Raynos ", "repository": "git://github.com/Raynos/ev-store.git", "main": "index", "homepage": "https://github.com/Raynos/ev-store", "contributors": [ { "name": "Raynos" } ], "bugs": { "url": "https://github.com/Raynos/ev-store/issues", "email": "raynos2@gmail.com" }, "dependencies": { "individual": "^3.0.0" }, "devDependencies": { "element": "~0.1.4", "global": "^4.3.0", "min-document": "^2.12.0", "run-browser": "^1.3.1", "tap-spec": "^0.1.9", "tape": "~2.12.0" }, "licenses": [ { "type": "MIT", "url": "http://github.com/Raynos/ev-store/raw/master/LICENSE" } ], "scripts": { "test": "run-browser test.js -b | tap-spec" } } ev-store-7.0.0/test.js000066400000000000000000000010771244554571600146210ustar00rootroot00000000000000'use strict'; var EvStore = require('./index.js'); var test = require('tape'); var document = require('global/document'); test('can fetch records out of DS', function t(assert) { var elem = document.body; var ds = EvStore(elem); ds.foo = 'bar'; var ds2 = EvStore(elem); assert.equal(ds2.foo, 'bar'); assert.end(); }); test('setting dash names', function t(assert) { var elem = document.createElement('div'); EvStore(elem)['foo-bar'] = 'baz'; var ds = EvStore(elem); assert.equal(ds['foo-bar'], 'baz'); assert.end(); });