ende 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/build/build.css +112 -0
- data/build/build.js +36465 -0
- data/component.json +11 -15
- data/components/chaijs/assertion-error/1.0.0/component.json +18 -0
- data/components/chaijs/chai/1.9.1/.gitignore +22 -0
- data/components/chaijs/chai/1.9.1/.mailmap +1 -0
- data/components/chaijs/chai/1.9.1/.npmignore +14 -0
- data/components/chaijs/chai/1.9.1/.travis.yml +14 -0
- data/components/chaijs/chai/1.9.1/CONTRIBUTING.md +173 -0
- data/components/chaijs/chai/1.9.1/History.md +895 -0
- data/components/chaijs/chai/1.9.1/Makefile +93 -0
- data/components/chaijs/chai/1.9.1/README.md +99 -0
- data/components/chaijs/chai/1.9.1/ReleaseNotes.md +482 -0
- data/components/chaijs/chai/1.9.1/bower.json +27 -0
- data/components/chaijs/chai/1.9.1/chai.js +4782 -0
- data/components/chaijs/chai/1.9.1/component.json +50 -0
- data/components/chaijs/chai/1.9.1/karma.conf.js +28 -0
- data/components/chaijs/chai/1.9.1/karma.sauce.js +41 -0
- data/components/chaijs/chai/1.9.1/lib/chai/assertion.js +130 -0
- data/components/chaijs/chai/1.9.1/lib/chai/config.js +50 -0
- data/components/chaijs/chai/1.9.1/lib/chai/core/assertions.js +1314 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/assert.js +1056 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/expect.js +12 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/should.js +78 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addChainableMethod.js +111 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addMethod.js +43 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addProperty.js +40 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/flag.js +32 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getActual.js +18 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getEnumerableProperties.js +25 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getMessage.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getName.js +20 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getPathValue.js +102 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getProperties.js +35 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/index.js +114 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/objDisplay.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteChainableMethod.js +53 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteMethod.js +51 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteProperty.js +54 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/test.js +26 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/transferFlags.js +44 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/type.js +45 -0
- data/components/chaijs/chai/1.9.1/lib/chai.js +87 -0
- data/components/chaijs/chai/1.9.1/package.json +42 -0
- data/components/chaijs/chai/1.9.1/sauce.browsers.js +128 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_block.sh +7 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_setup.sh +53 -0
- data/components/chaijs/chai/1.9.1/test/assert.js +638 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/index.js +22 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/karma.js +22 -0
- data/components/chaijs/chai/1.9.1/test/configuration.js +133 -0
- data/components/chaijs/chai/1.9.1/test/display/errors.js +14 -0
- data/components/chaijs/chai/1.9.1/test/display/message.js +47 -0
- data/components/chaijs/chai/1.9.1/test/expect.js +814 -0
- data/components/chaijs/chai/1.9.1/test/globalShould.js +15 -0
- data/components/chaijs/chai/1.9.1/test/plugins.js +24 -0
- data/components/chaijs/chai/1.9.1/test/should.js +744 -0
- data/components/chaijs/chai/1.9.1/test/utilities.js +309 -0
- data/components/chaijs/deep-eql/0.1.3/component.json +20 -0
- data/components/chaijs/deep-eql/0.1.3/lib/eql.js +257 -0
- data/components/chaijs/type-detect/0.1.1/component.json +18 -0
- data/components/chaijs/type-detect/0.1.1/lib/type.js +142 -0
- data/{vendor/components/indefinido-indemma/components/component-bind → components/component/bind/0.0.1}/component.json +1 -1
- data/{vendor/components/component-classes → components/component/classes/1.1.2}/component.json +1 -1
- data/components/component/classes/1.2.1/component.json +19 -0
- data/components/component/classes/1.2.1/index.js +184 -0
- data/{vendor/components/component-css → components/component/css/0.0.2}/component.json +2 -2
- data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/component.json +2 -2
- data/components/component/dialog/0.2.0/component.json +35 -0
- data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/index.js +74 -40
- data/components/component/dialog/0.2.0/template.html +9 -0
- data/{vendor/components/component-dom → components/component/dom/0.7.1}/component.json +6 -4
- data/{vendor/components/component-domify → components/component/domify/1.0.0}/component.json +6 -4
- data/components/component/domify/1.2.2/component.json +22 -0
- data/components/component/domify/1.2.2/index.js +87 -0
- data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/component.json +1 -1
- data/{vendor/components/component-event → components/component/event/0.1.0}/component.json +3 -3
- data/components/component/event/0.1.0/index.js +40 -0
- data/components/component/event/0.1.3/component.json +13 -0
- data/{vendor/components/component-event → components/component/event/0.1.3}/index.js +3 -5
- data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-jquery → components/component/jquery/1.9.1}/component.json +1 -1
- data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/component.json +6 -4
- data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/component.json +1 -1
- data/{vendor/components/component-query → components/component/query/0.0.1}/component.json +6 -4
- data/components/component/query/0.0.3/component.json +23 -0
- data/components/component/query/0.0.3/index.js +21 -0
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/component.json +4 -3
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/index.js +26 -2
- data/{vendor/components/component-sort → components/component/sort/0.0.3}/component.json +2 -2
- data/{vendor/components/component-trim → components/component/trim/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-type → components/component/type/1.0.0}/component.json +4 -2
- data/{vendor/components/component-value → components/component/value/1.1.0}/component.json +6 -4
- data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/component.json +2 -3
- data/{vendor/components/indefinido-indemma/components/indefinido-advisable → components/indefinido/advisable/master}/component.json +2 -2
- data/components/indefinido/indemma/master/History.md +0 -0
- data/components/indefinido/indemma/master/build/build.js +26288 -0
- data/components/indefinido/indemma/master/build/development.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/build/release.js +264 -273
- data/components/indefinido/indemma/master/build/test.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/component.json +6 -6
- data/components/indefinido/indemma/master/components/chaijs-assertion-error/index.js +110 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/index.js +1 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/associable.js +2 -14
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/rest.js +2 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/restfulable.js +9 -33
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/scopable.js +45 -16
- data/components/indefinido/indemma/master/lib/record/validatable.js +1100 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/associable_spec.js +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/scopable_spec.js +53 -83
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/cpf_spec.js +6 -5
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/associable.coffee +0 -6
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/persistable.coffee +0 -2
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/queryable.coffee +2 -1
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/resource.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/rest.coffee +1 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/restfulable.coffee +8 -34
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/scopable.coffee +31 -32
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validatable.coffee +1 -12
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/associable_spec.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/scopable_spec.coffee +43 -76
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/cpf_spec.coffee +4 -3
- data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/component.json +2 -2
- data/{vendor/components/paulmillr-es6-shim → components/paulmillr/es6-shim/0.10.1}/component.json +11 -4
- data/components/paulmillr/es6-shim/0.10.1/es6-shim.js +1833 -0
- data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/component.json +3 -3
- data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/component.json +3 -3
- data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +14 -14
- data/lib/assets/javascripts/aura/extensions/rivets/accounting.js.coffee +1 -1
- data/lib/assets/javascripts/aura/extensions/rivets.js.coffee +3 -3
- data/lib/assets/javascripts/aura/extensions/stamps/stampit.js +568 -242
- data/lib/assets/javascripts/aura/extensions/widget/#composable.js.coffee# +135 -0
- data/lib/assets/javascripts/aura/extensions/widget/composable.js.coffee +2 -2
- data/lib/assets/javascripts/config/load_components.js.coffee +10 -10
- data/lib/assets/javascripts/ende.js.coffee +21 -18
- data/lib/assets/javascripts/widgets/support/adapters/olark.js +1 -4
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +8 -4
- data/lib/assets/javascripts/widgets/viewer/plugins/scopable.js.coffee +6 -7
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/build.css +4 -3
- data/vendor/assets/components/ende_build.js +29772 -21943
- metadata +284 -217
- data/vendor/components/KapIT-observe-utils/component.json +0 -16
- data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +0 -780
- data/vendor/components/component-dialog/component.json +0 -23
- data/vendor/components/component-dialog/template.js +0 -1
- data/vendor/components/indefinido-indemma/build/development.js +0 -343
- data/vendor/components/indefinido-indemma/build/test.js +0 -343
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +0 -224
- data/vendor/components/indefinido-observable/component.json +0 -24
- data/vendor/components/indefinido-observable/index.js +0 -1
- data/vendor/components/indefinido-observable/lib/adapters/rivets.js +0 -28
- data/vendor/components/indefinido-observable/lib/observable.js +0 -390
- data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
- data/vendor/components/indefinido-observable/vendor/shims/accessors.js +0 -248
- data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
- data/vendor/components/indefinido-observable/vendor/shims/object.create.js +0 -77
- data/vendor/components/paulmillr-es6-shim/es6-shim.js +0 -996
- /data/{vendor/components/indefinido-indemma/components/chaijs-assertion-error → components/chaijs/assertion-error/1.0.0}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/lib/chai/utils/inspect.js +0 -0
- /data/{vendor/components/indefinido-indemma/History.md → components/chaijs/chai/1.9.1/test/auth/.gitkeep} +0 -0
- /data/{vendor/components/component-bind → components/component/bind/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-classes → components/component/classes/1.1.2}/index.js +0 -0
- /data/{vendor/components/component-css → components/component/css/0.0.2}/index.js +0 -0
- /data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/index.js +0 -0
- /data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/dialog.css +0 -0
- /data/{vendor/components/component-dom → components/component/dom/0.7.1}/index.js +0 -0
- /data/{vendor/components/component-domify → components/component/domify/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-jquery → components/component/jquery/1.9.1}/index.js +0 -0
- /data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/overlay.css +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/template.js +0 -0
- /data/{vendor/components/component-query → components/component/query/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-sort → components/component/sort/0.0.3}/index.js +0 -0
- /data/{vendor/components/component-trim → components/component/trim/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-type → components/component/type/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-value → components/component/value/1.1.0}/index.js +0 -0
- /data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/modernizr.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/index.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.gitignore +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-gemset +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-version +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Gemfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Guardfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Readme.md +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-assertion-error/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/assertion.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/core/assertions.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/assert.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/expect.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/should.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/eql.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/flag.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getActual.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getName.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/test.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-bind/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-bind/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-jquery/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-jquery/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-type/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-type/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/indefinido-advisable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/adapters/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/observable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/object.create.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/kapit-observe-utils/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/es6-shim.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/dist/assimilate.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/karma.conf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/extensions/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/errors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/maid.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/persistable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/queryable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/resource.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/storable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/associated.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/confirmation.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/cpf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/presence.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/remote.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/validatorable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/package.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/persistable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/queryable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/resource_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/rest_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/restfulable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/storable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validatable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/associated_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/confirmation_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/presence_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/remote_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/type_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/spec_helper.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/support/value_objects/phone.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/extensions/rivets.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/errors.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/maid.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/storable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/associated.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/confirmation.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/cpf.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/presence.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/remote.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/type.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/validatorable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/persistable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/queryable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/resource_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/rest_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/restfulable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/storable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validatable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/associated_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/confirmation_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/presence_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/remote_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/type_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/spec_helper.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/support/value_objects/phone.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/object/mixin.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/owl/pluralize.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/stampit.js +0 -0
- /data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/dist/rivets.js +0 -0
- /data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/dist/assimilate.js +0 -0
- /data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/index.js +0 -0
@@ -1,92 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Xccessors Legacy: Cross-browser legacy non-standard accessors
|
3
|
-
* http://github.com/eligrey/Xccessors
|
4
|
-
*
|
5
|
-
* 2010-03-21
|
6
|
-
*
|
7
|
-
* By Elijah Grey, http://eligrey.com
|
8
|
-
*
|
9
|
-
* A shim that implements __defineGetter__, __defineSetter__, __lookupGetter__,
|
10
|
-
* and __lookupSetter__
|
11
|
-
* in browsers that have ECMAScript 5 accessor support but not the legacy methods.
|
12
|
-
*
|
13
|
-
* Public Domain.
|
14
|
-
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
15
|
-
*/
|
16
|
-
|
17
|
-
/*global Element, Window, HTMLDocument */
|
18
|
-
|
19
|
-
/*jslint white: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, regexp: true,
|
20
|
-
strict: true, newcap: true, immed: true, maxlen: 90 */
|
21
|
-
|
22
|
-
/*! @source http://purl.eligrey.com/github/Xccessors/blob/master/xccessors-legacy.js*/
|
23
|
-
|
24
|
-
"use strict";
|
25
|
-
|
26
|
-
(function () {
|
27
|
-
var
|
28
|
-
defineProp = Object.defineProperty,
|
29
|
-
getProp = Object.getOwnPropertyDescriptor,
|
30
|
-
|
31
|
-
// methods being implemented
|
32
|
-
methods = [
|
33
|
-
"__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"
|
34
|
-
],
|
35
|
-
|
36
|
-
// objects to implement legacy methods onto their prototypes
|
37
|
-
// Object.prototype[method] doesn't work on everything for IE
|
38
|
-
extend = [Object, String, Array, Function, Boolean, Number,
|
39
|
-
RegExp, Date, Error],
|
40
|
-
len = extend.length,
|
41
|
-
proto = "prototype",
|
42
|
-
extendMethod = function (method, fun) {
|
43
|
-
var i = len;
|
44
|
-
if (!(method in {})) {
|
45
|
-
while (i--) {
|
46
|
-
defineProp(extend[i][proto], method, {value: fun, enumerable: false})
|
47
|
-
}
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
|
-
// IE8 Does not support enumerable key so we abort!
|
52
|
-
// TODO Fix this without cluttering the prototype
|
53
|
-
try {defineProp({}, 'domo', {value: true, enumerable: false})} catch (e) {return;}
|
54
|
-
|
55
|
-
// IE7 Does not have Element, Window defined, so we check here
|
56
|
-
if (typeof Element != 'undefined') extend.push(Element);
|
57
|
-
if (typeof Window != 'undefined') extend.push(Window);
|
58
|
-
|
59
|
-
// IE9 Does not have html document defined, so we check here
|
60
|
-
if (typeof HTMLDocument != 'undefined') extend.push(HTMLDocument);
|
61
|
-
|
62
|
-
|
63
|
-
if (defineProp) {
|
64
|
-
extendMethod(methods[0], function (prop, fun) { // __defineGetter__
|
65
|
-
defineProp(this, prop, { get: fun });
|
66
|
-
});
|
67
|
-
|
68
|
-
extendMethod(methods[1], function (prop, fun) { // __defineSetter__
|
69
|
-
defineProp(this, prop, { set: fun });
|
70
|
-
});
|
71
|
-
}
|
72
|
-
|
73
|
-
if (getProp && !defineProp.requiresDomElement) {
|
74
|
-
extendMethod(methods[2], function (prop) { // __lookupGetter__
|
75
|
-
var descriptor = getProp(this, prop);
|
76
|
-
if (descriptor && descriptor.get) return descriptor.get;
|
77
|
-
|
78
|
-
// look in prototype too
|
79
|
-
descriptor = getProp(this.constructor[proto], prop);
|
80
|
-
if (descriptor && descriptor.get) return descriptor.get;
|
81
|
-
});
|
82
|
-
|
83
|
-
extendMethod(methods[3], function (prop) { // __lookupSetter__
|
84
|
-
var descriptor = getProp(this, prop);
|
85
|
-
if (descriptor && descriptor.set) return descriptor.set;
|
86
|
-
|
87
|
-
// look in prototype too
|
88
|
-
descriptor = getProp(this.constructor[proto], prop);
|
89
|
-
if (descriptor && descriptor.set) return descriptor.set;
|
90
|
-
});
|
91
|
-
}
|
92
|
-
}());
|
@@ -1,248 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
(function () {
|
4
|
-
// Cache native objects for better performacy and easy to use
|
5
|
-
// references
|
6
|
-
var ObjectProto = Object.prototype,
|
7
|
-
hasOwnProp = ObjectProto.hasOwnProperty,
|
8
|
-
getProp = Object.getOwnPropertyDescriptor,
|
9
|
-
defineProp = Object.defineProperty,
|
10
|
-
objectCreate = Object.create,
|
11
|
-
toStrings = [],
|
12
|
-
features = null,
|
13
|
-
stack = [], detach,
|
14
|
-
fixedOwnProperty,
|
15
|
-
prototypeBase = [Object, String, Array, Function, Boolean, Number, RegExp, Date, Error];
|
16
|
-
|
17
|
-
// IE7 Does not have Element and Window defined, so only add them if
|
18
|
-
// they exists check here
|
19
|
-
if (typeof Element != 'undefined') prototypeBase.push(Element);
|
20
|
-
if (typeof Window != 'undefined') prototypeBase.push(Window);
|
21
|
-
|
22
|
-
features = {
|
23
|
-
allowsNonEnumerableProperty: function () {
|
24
|
-
var broken = false;
|
25
|
-
try {
|
26
|
-
defineProp({}, 'x', {})
|
27
|
-
} catch(e) {
|
28
|
-
broken = true;
|
29
|
-
}
|
30
|
-
|
31
|
-
return (!broken) && (!!defineProp);
|
32
|
-
},
|
33
|
-
supportsOnPropertyChangeEvent: function () {
|
34
|
-
var test = document.createElement('domo');
|
35
|
-
return 'onpropertychange' in test
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
if (!features.allowsNonEnumerableProperty() && features.supportsOnPropertyChangeEvent()) {
|
40
|
-
|
41
|
-
// Check if node is on document
|
42
|
-
var inDocument = function inDocument (node) {
|
43
|
-
var curr = node;
|
44
|
-
while (curr != null) {
|
45
|
-
curr = curr.parentNode;
|
46
|
-
if (curr == document) return true;
|
47
|
-
}
|
48
|
-
return false;
|
49
|
-
},
|
50
|
-
|
51
|
-
// Generate property event handler for setting some property
|
52
|
-
generate_setter = function generate_setter (object, property, descriptor) {
|
53
|
-
var setter = function object_define_property_shim_change_listener (event) {
|
54
|
-
var current_value, changed_value;
|
55
|
-
if (
|
56
|
-
// if we are setting this property
|
57
|
-
event.propertyName == property
|
58
|
-
|
59
|
-
// prevent firing setters again
|
60
|
-
// by checking callstack
|
61
|
-
&& stack.indexOf(property) === -1
|
62
|
-
) {
|
63
|
-
// Remove the event so it doesn't fire again and
|
64
|
-
// create a loop
|
65
|
-
object.detachEvent("onpropertychange", setter);
|
66
|
-
|
67
|
-
// If detaching the current setter
|
68
|
-
// just remove the event listener
|
69
|
-
if (detach) return;
|
70
|
-
|
71
|
-
// get the changed value, run it through the set function
|
72
|
-
changed_value = object[property];
|
73
|
-
descriptor.set.call(object, changed_value);
|
74
|
-
|
75
|
-
// Restore get function if:
|
76
|
-
// it was mentioned on definition
|
77
|
-
// there's no falsey value, in that case we just need to return falsey value
|
78
|
-
// current toString is not the getter, to prevent further unecessary redefinitions
|
79
|
-
if (descriptor.get && descriptor.value && descriptor.value.toString != descriptor.bound_getter) {
|
80
|
-
// TODO if (descriptor.get + '' === 'undefined') descriptor.get = ''; // Handle undefined getter
|
81
|
-
descriptor.value.toString = descriptor.bound_getter
|
82
|
-
}
|
83
|
-
|
84
|
-
// Update stored values
|
85
|
-
object[property] = descriptor.value = changed_value;
|
86
|
-
|
87
|
-
// restore the event handler
|
88
|
-
object.attachEvent("onpropertychange", setter);
|
89
|
-
|
90
|
-
// stack.pop();
|
91
|
-
return false;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
return setter;
|
96
|
-
};
|
97
|
-
|
98
|
-
// Shim define property with apropriated fail cases exceptions
|
99
|
-
Object.defineProperty = function (obj, prop, descriptor) {
|
100
|
-
var fix;
|
101
|
-
|
102
|
-
if (!prop)
|
103
|
-
|
104
|
-
if (descriptor.set) {
|
105
|
-
if (!obj.attachEvent) throw new TypeError('Object.defineProperty: First parameter must be a dom element. When descriptor has \'set\' property.');
|
106
|
-
|
107
|
-
if (!fix && !inDocument(obj)) throw new TypeError('Object.defineProperty: Dom element must be attached in document.');
|
108
|
-
}
|
109
|
-
|
110
|
-
if (!descriptor) throw new TypeError('Object.defineProperty (object, property, descriptor): Descriptor must be an object, was \'' + descriptor + '\'.');
|
111
|
-
|
112
|
-
// Store current value in descriptor
|
113
|
-
// TODO only try to set descriptor value if it was passed as parameter
|
114
|
-
descriptor.value = descriptor.value || (descriptor.get && descriptor.get.call(obj)) || obj[prop];
|
115
|
-
|
116
|
-
if (descriptor.set) {
|
117
|
-
// Detach old listeners if any
|
118
|
-
detach = true;
|
119
|
-
obj[prop] = 'detaching';
|
120
|
-
detach = false;
|
121
|
-
|
122
|
-
if (descriptor.get) {
|
123
|
-
// TODO remove jquery dependency
|
124
|
-
descriptor.bound_getter = $.extend($.proxy(descriptor.get, obj), descriptor.get);
|
125
|
-
|
126
|
-
// Why? we only bind the getter when we have a non falsey value
|
127
|
-
if (descriptor.value) descriptor.value.toString = descriptor.bound_getter;
|
128
|
-
|
129
|
-
// Although its not allowed for convention to have getters
|
130
|
-
// and setters with the descriptor value, here we just reuse
|
131
|
-
// the descriptor stored value
|
132
|
-
obj[prop] = descriptor.value;
|
133
|
-
}
|
134
|
-
|
135
|
-
(fix || obj).attachEvent("onpropertychange", generate_setter(obj, prop, descriptor));
|
136
|
-
|
137
|
-
} else if (descriptor.get) {
|
138
|
-
descriptor.bound_getter = $.extend($.proxy(descriptor.get, obj), descriptor.get);
|
139
|
-
|
140
|
-
// Why? we only bind the getter when we have a non falsey value
|
141
|
-
if (descriptor.value) descriptor.value.toString = descriptor.bound_getter;
|
142
|
-
|
143
|
-
// Although its not allowed for convention to have getters
|
144
|
-
// and setters with the descriptor value, here we just reuse
|
145
|
-
// the descriptor stored value
|
146
|
-
obj[prop] = descriptor.value;
|
147
|
-
} else {
|
148
|
-
obj[prop] = descriptor.value;
|
149
|
-
}
|
150
|
-
|
151
|
-
return obj;
|
152
|
-
}
|
153
|
-
|
154
|
-
// Allow others to check requirements for define property
|
155
|
-
Object.defineProperty.requiresDomElement = true
|
156
|
-
}
|
157
|
-
|
158
|
-
|
159
|
-
// Since we shimed define property, we can also shim defineProperties
|
160
|
-
if (!Object.defineProperties) {
|
161
|
-
Object.defineProperties = function (obj, props) {
|
162
|
-
for (var prop in props) {
|
163
|
-
if (hasOwnProp.call(props, prop)) {
|
164
|
-
Object.defineProperty(obj, prop, props[prop]);
|
165
|
-
}
|
166
|
-
}
|
167
|
-
};
|
168
|
-
|
169
|
-
baseElement = document.createElement('fix');
|
170
|
-
fixedOwnProperty = function (name) {
|
171
|
-
if (name in baseElement) return false;
|
172
|
-
return hasOwnProp.call(this, name);
|
173
|
-
};
|
174
|
-
|
175
|
-
|
176
|
-
Object.create = function (prototype, properties) {
|
177
|
-
var complexDescriptor, fix, descriptor, name;
|
178
|
-
|
179
|
-
for (name in properties) {
|
180
|
-
descriptor = properties[name]
|
181
|
-
if (descriptor instanceof Object) {
|
182
|
-
complexDescriptor = !!(descriptor.get || descriptor.set)
|
183
|
-
|
184
|
-
if (complexDescriptor) {
|
185
|
-
break;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
if (complexDescriptor || prototype.nodeName === 'fix' || properties && properties._shim) {
|
191
|
-
properties && delete properties._shim;
|
192
|
-
|
193
|
-
if (typeof object != 'function') {
|
194
|
-
fix = document.createElement('fix');
|
195
|
-
document.appendChild(fix);
|
196
|
-
|
197
|
-
// Copy over prototype properties
|
198
|
-
for (name in prototype) {
|
199
|
-
try {
|
200
|
-
if (name in baseElement) continue;
|
201
|
-
fix[name] = prototype[name];
|
202
|
-
} catch (e) {
|
203
|
-
console.warn("Object.create: Invalid shimmed property: " + name + ", with error " + e);
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
// Ensure most normalized for loops to work property, by
|
208
|
-
// skiping the dom element properties on own property
|
209
|
-
// checking.
|
210
|
-
//
|
211
|
-
// TODO ensure other own property methods checking
|
212
|
-
fix.hasOwnProperty = fixedOwnProperty
|
213
|
-
|
214
|
-
Object.defineProperties(fix, properties);
|
215
|
-
} else {
|
216
|
-
throw new TypeError('Functions with complex descriptors not implemented yet');
|
217
|
-
}
|
218
|
-
return fix;
|
219
|
-
} else {
|
220
|
-
return objectCreate(prototype, properties)
|
221
|
-
}
|
222
|
-
}
|
223
|
-
};
|
224
|
-
|
225
|
-
|
226
|
-
/* TODO Use define Property, and only define if
|
227
|
-
non-enumerable properties are allowed
|
228
|
-
|
229
|
-
also define __defineGetter__ and __defineSetter__
|
230
|
-
if (!Object.defineProperty.requiresDomElement) {
|
231
|
-
if (!Object.prototype.__lookupGetter__) {
|
232
|
-
Object.__lookupGetter__ = function () {
|
233
|
-
console && console.log('__lookupGetter__ not implemented yet');
|
234
|
-
return null;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
if (!Object.__lookupSetter__) {
|
239
|
-
Object.prototype.__lookupSetter__ = function () {
|
240
|
-
console && console.log('__lookupSetter__ not implemented yet');
|
241
|
-
return null;
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
*/
|
246
|
-
|
247
|
-
})();
|
248
|
-
|
@@ -1,77 +0,0 @@
|
|
1
|
-
// ES5 15.2.3.5
|
2
|
-
// http://es5.github.com/#x15.2.3.5
|
3
|
-
if (!Object.create) {
|
4
|
-
|
5
|
-
// Contributed by Brandon Benvie, October, 2012
|
6
|
-
var createEmpty;
|
7
|
-
var supportsProto = Object.prototype.__proto__ === null;
|
8
|
-
if (supportsProto || typeof document == 'undefined') {
|
9
|
-
createEmpty = function () {
|
10
|
-
return { "__proto__": null };
|
11
|
-
};
|
12
|
-
} else {
|
13
|
-
// In old IE __proto__ can't be used to manually set `null`, nor does
|
14
|
-
// any other method exist to make an object that inherits from nothing,
|
15
|
-
// aside from Object.prototype itself. Instead, create a new global
|
16
|
-
// object and *steal* its Object.prototype and strip it bare. This is
|
17
|
-
// used as the prototype to create nullary objects.
|
18
|
-
createEmpty = function () {
|
19
|
-
var iframe = document.createElement('iframe');
|
20
|
-
var parent = document.body || document.documentElement;
|
21
|
-
iframe.style.display = 'none';
|
22
|
-
parent.appendChild(iframe);
|
23
|
-
iframe.src = 'javascript:';
|
24
|
-
var empty = iframe.contentWindow.Object.prototype;
|
25
|
-
parent.removeChild(iframe);
|
26
|
-
iframe = null;
|
27
|
-
delete empty.constructor;
|
28
|
-
delete empty.hasOwnProperty;
|
29
|
-
delete empty.propertyIsEnumerable;
|
30
|
-
delete empty.isPrototypeOf;
|
31
|
-
delete empty.toLocaleString;
|
32
|
-
delete empty.toString;
|
33
|
-
delete empty.valueOf;
|
34
|
-
empty.__proto__ = null;
|
35
|
-
|
36
|
-
function Empty() {}
|
37
|
-
Empty.prototype = empty;
|
38
|
-
// short-circuit future calls
|
39
|
-
createEmpty = function () {
|
40
|
-
return new Empty();
|
41
|
-
};
|
42
|
-
return new Empty();
|
43
|
-
};
|
44
|
-
}
|
45
|
-
|
46
|
-
Object.create = function create(prototype, properties) {
|
47
|
-
|
48
|
-
var object;
|
49
|
-
function Type() {} // An empty constructor.
|
50
|
-
|
51
|
-
if (prototype === null) {
|
52
|
-
object = createEmpty();
|
53
|
-
} else {
|
54
|
-
if (typeof prototype !== "object" && typeof prototype !== "function") {
|
55
|
-
// In the native implementation `parent` can be `null`
|
56
|
-
// OR *any* `instanceof Object` (Object|Function|Array|RegExp|etc)
|
57
|
-
// Use `typeof` tho, b/c in old IE, DOM elements are not `instanceof Object`
|
58
|
-
// like they are in modern browsers. Using `Object.create` on DOM elements
|
59
|
-
// is...err...probably inappropriate, but the native version allows for it.
|
60
|
-
throw new TypeError("Object prototype may only be an Object or null"); // same msg as Chrome
|
61
|
-
}
|
62
|
-
Type.prototype = prototype;
|
63
|
-
object = new Type();
|
64
|
-
// IE has no built-in implementation of `Object.getPrototypeOf`
|
65
|
-
// neither `__proto__`, but this manually setting `__proto__` will
|
66
|
-
// guarantee that `Object.getPrototypeOf` will work as expected with
|
67
|
-
// objects created using `Object.create`
|
68
|
-
object.__proto__ = prototype;
|
69
|
-
}
|
70
|
-
|
71
|
-
if (properties !== void 0) {
|
72
|
-
Object.defineProperties(object, properties);
|
73
|
-
}
|
74
|
-
|
75
|
-
return object;
|
76
|
-
};
|
77
|
-
}
|