├── .editorconfig ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .jshintrc ├── .npmignore ├── .npmrc ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── benchmark ├── benchmark.html └── benchmark.js ├── can-define.js ├── define-helpers └── define-helpers.js ├── docs ├── TypeConstructor.md ├── apis.json ├── default.md ├── defaultConstructor.md ├── define.md ├── define.types.md ├── deleteKey.md ├── identity.md ├── serialize.md ├── type.md ├── types.get.md ├── types.propDefinition.md ├── types.set.md ├── value.md └── valueOptions.md ├── ensure-meta.js ├── list ├── docs │ ├── define-list.md │ ├── events.add.md │ ├── events.length.md │ ├── events.propertyName.md │ ├── events.remove.md │ ├── prototype.assign.md │ ├── prototype.assignDeep.md │ ├── prototype.concat.md │ ├── prototype.every.md │ ├── prototype.filter.md │ ├── prototype.forEach.md │ ├── prototype.get.md │ ├── prototype.includes.md │ ├── prototype.indexOf.md │ ├── prototype.join.md │ ├── prototype.lastIndexOf.md │ ├── prototype.map.md │ ├── prototype.pop.md │ ├── prototype.push.md │ ├── prototype.reduce.md │ ├── prototype.reduceRight.md │ ├── prototype.replace.md │ ├── prototype.reverse.md │ ├── prototype.serialize.md │ ├── prototype.set.md │ ├── prototype.shift.md │ ├── prototype.slice.md │ ├── prototype.some.md │ ├── prototype.sort.md │ ├── prototype.splice.md │ ├── prototype.unshift.md │ ├── prototype.update.md │ ├── prototype.updateDeep.md │ ├── prototype.wildcard.md │ ├── prototype.wildcardItems.md │ └── static.extend.md ├── list-test.js ├── list.js └── test.html ├── map ├── docs │ ├── define-map.md │ ├── events.keys.md │ ├── events.propertyName.md │ ├── prototype.assign.md │ ├── prototype.assignDeep.md │ ├── prototype.forEach.md │ ├── prototype.get.md │ ├── prototype.serialize.md │ ├── prototype.set.md │ ├── prototype.update.md │ ├── prototype.updateDeep.md │ ├── prototype.wildcard.md │ ├── static.extend.md │ └── static.seal.md ├── map-test.js ├── map.js └── test.html ├── package.json └── test ├── test-define-only.js ├── test-list-and-map.js ├── test-type-events.js ├── test-value-resolve.js ├── test.html └── test.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | doc/ 3 | dist/ 4 | .idea/ 5 | package-lock.json 6 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/benchmark.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/benchmark/benchmark.html -------------------------------------------------------------------------------- /benchmark/benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/benchmark/benchmark.js -------------------------------------------------------------------------------- /can-define.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/can-define.js -------------------------------------------------------------------------------- /define-helpers/define-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/define-helpers/define-helpers.js -------------------------------------------------------------------------------- /docs/TypeConstructor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/TypeConstructor.md -------------------------------------------------------------------------------- /docs/apis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/apis.json -------------------------------------------------------------------------------- /docs/default.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/default.md -------------------------------------------------------------------------------- /docs/defaultConstructor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/defaultConstructor.md -------------------------------------------------------------------------------- /docs/define.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/define.md -------------------------------------------------------------------------------- /docs/define.types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/define.types.md -------------------------------------------------------------------------------- /docs/deleteKey.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/deleteKey.md -------------------------------------------------------------------------------- /docs/identity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/identity.md -------------------------------------------------------------------------------- /docs/serialize.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/serialize.md -------------------------------------------------------------------------------- /docs/type.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/type.md -------------------------------------------------------------------------------- /docs/types.get.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/types.get.md -------------------------------------------------------------------------------- /docs/types.propDefinition.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/types.propDefinition.md -------------------------------------------------------------------------------- /docs/types.set.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/types.set.md -------------------------------------------------------------------------------- /docs/value.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/value.md -------------------------------------------------------------------------------- /docs/valueOptions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/docs/valueOptions.md -------------------------------------------------------------------------------- /ensure-meta.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/ensure-meta.js -------------------------------------------------------------------------------- /list/docs/define-list.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/define-list.md -------------------------------------------------------------------------------- /list/docs/events.add.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/events.add.md -------------------------------------------------------------------------------- /list/docs/events.length.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/events.length.md -------------------------------------------------------------------------------- /list/docs/events.propertyName.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/events.propertyName.md -------------------------------------------------------------------------------- /list/docs/events.remove.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/events.remove.md -------------------------------------------------------------------------------- /list/docs/prototype.assign.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.assign.md -------------------------------------------------------------------------------- /list/docs/prototype.assignDeep.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.assignDeep.md -------------------------------------------------------------------------------- /list/docs/prototype.concat.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.concat.md -------------------------------------------------------------------------------- /list/docs/prototype.every.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.every.md -------------------------------------------------------------------------------- /list/docs/prototype.filter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.filter.md -------------------------------------------------------------------------------- /list/docs/prototype.forEach.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.forEach.md -------------------------------------------------------------------------------- /list/docs/prototype.get.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.get.md -------------------------------------------------------------------------------- /list/docs/prototype.includes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.includes.md -------------------------------------------------------------------------------- /list/docs/prototype.indexOf.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.indexOf.md -------------------------------------------------------------------------------- /list/docs/prototype.join.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.join.md -------------------------------------------------------------------------------- /list/docs/prototype.lastIndexOf.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.lastIndexOf.md -------------------------------------------------------------------------------- /list/docs/prototype.map.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.map.md -------------------------------------------------------------------------------- /list/docs/prototype.pop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.pop.md -------------------------------------------------------------------------------- /list/docs/prototype.push.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.push.md -------------------------------------------------------------------------------- /list/docs/prototype.reduce.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.reduce.md -------------------------------------------------------------------------------- /list/docs/prototype.reduceRight.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.reduceRight.md -------------------------------------------------------------------------------- /list/docs/prototype.replace.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.replace.md -------------------------------------------------------------------------------- /list/docs/prototype.reverse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.reverse.md -------------------------------------------------------------------------------- /list/docs/prototype.serialize.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.serialize.md -------------------------------------------------------------------------------- /list/docs/prototype.set.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.set.md -------------------------------------------------------------------------------- /list/docs/prototype.shift.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.shift.md -------------------------------------------------------------------------------- /list/docs/prototype.slice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.slice.md -------------------------------------------------------------------------------- /list/docs/prototype.some.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.some.md -------------------------------------------------------------------------------- /list/docs/prototype.sort.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.sort.md -------------------------------------------------------------------------------- /list/docs/prototype.splice.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.splice.md -------------------------------------------------------------------------------- /list/docs/prototype.unshift.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.unshift.md -------------------------------------------------------------------------------- /list/docs/prototype.update.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.update.md -------------------------------------------------------------------------------- /list/docs/prototype.updateDeep.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.updateDeep.md -------------------------------------------------------------------------------- /list/docs/prototype.wildcard.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.wildcard.md -------------------------------------------------------------------------------- /list/docs/prototype.wildcardItems.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/prototype.wildcardItems.md -------------------------------------------------------------------------------- /list/docs/static.extend.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/docs/static.extend.md -------------------------------------------------------------------------------- /list/list-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/list-test.js -------------------------------------------------------------------------------- /list/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/list.js -------------------------------------------------------------------------------- /list/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/list/test.html -------------------------------------------------------------------------------- /map/docs/define-map.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/define-map.md -------------------------------------------------------------------------------- /map/docs/events.keys.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/events.keys.md -------------------------------------------------------------------------------- /map/docs/events.propertyName.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/events.propertyName.md -------------------------------------------------------------------------------- /map/docs/prototype.assign.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.assign.md -------------------------------------------------------------------------------- /map/docs/prototype.assignDeep.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.assignDeep.md -------------------------------------------------------------------------------- /map/docs/prototype.forEach.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.forEach.md -------------------------------------------------------------------------------- /map/docs/prototype.get.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.get.md -------------------------------------------------------------------------------- /map/docs/prototype.serialize.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.serialize.md -------------------------------------------------------------------------------- /map/docs/prototype.set.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.set.md -------------------------------------------------------------------------------- /map/docs/prototype.update.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.update.md -------------------------------------------------------------------------------- /map/docs/prototype.updateDeep.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.updateDeep.md -------------------------------------------------------------------------------- /map/docs/prototype.wildcard.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/prototype.wildcard.md -------------------------------------------------------------------------------- /map/docs/static.extend.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/static.extend.md -------------------------------------------------------------------------------- /map/docs/static.seal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/docs/static.seal.md -------------------------------------------------------------------------------- /map/map-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/map-test.js -------------------------------------------------------------------------------- /map/map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/map.js -------------------------------------------------------------------------------- /map/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/map/test.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/package.json -------------------------------------------------------------------------------- /test/test-define-only.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test-define-only.js -------------------------------------------------------------------------------- /test/test-list-and-map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test-list-and-map.js -------------------------------------------------------------------------------- /test/test-type-events.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test-type-events.js -------------------------------------------------------------------------------- /test/test-value-resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test-value-resolve.js -------------------------------------------------------------------------------- /test/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test.html -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/canjs/can-define/HEAD/test/test.js --------------------------------------------------------------------------------