From 890e991ab0c389c26c5beab97e5628b3ba126941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Sat, 25 Jul 2015 15:57:35 +0200 Subject: [PATCH] [UPDATE] building 3.7.1 --- dist/3.7.0/min/dom/element.js | 2 - dist/{3.7.0 => 3.7.1}/max/asset.js | 4 +- dist/{3.7.0 => 3.7.1}/max/base.js | 4 +- .../max/component/iterator.js | 4 +- dist/{3.7.0 => 3.7.1}/max/component/remux.js | 4 +- dist/{3.7.0 => 3.7.1}/max/component/sense.js | 4 +- dist/{3.7.0 => 3.7.1}/max/dom/collection.js | 4 +- dist/{3.7.0 => 3.7.1}/max/dom/element.js | 55 +++++++--------- .../max/dom/element/emerge.js | 8 +-- .../max/dom/element/lazyimage.js | 7 +- .../max/dom/element/shrinkimage.js | 14 ++-- dist/{3.7.0 => 3.7.1}/max/dom/event.js | 4 +- dist/{3.7.0 => 3.7.1}/max/emitter.js | 4 +- .../{3.7.0 => 3.7.1}/max/function/load/css.js | 4 +- dist/{3.7.0 => 3.7.1}/max/function/merge.js | 4 +- .../max/function/proximity.js | 4 +- .../max/function/unique/string.js | 4 +- .../max/function/unique/uuid.js | 4 +- dist/{3.7.0 => 3.7.1}/max/hook/css.js | 4 +- dist/{3.7.0 => 3.7.1}/max/hook/event.js | 4 +- .../max/jquery/extension/selector.js | 4 +- .../max/jquery/function/prefetch.js | 4 +- .../max/jquery/plugin/emerge.js | 4 +- .../max/jquery/plugin/lazyimage.js | 4 +- .../max/jquery/plugin/shrinkimage.js | 4 +- dist/{3.7.0 => 3.7.1}/max/particle.js | 4 +- .../max/polyfill/array/indexof.js | 4 +- .../document/getelementsbyclassname.js | 4 +- .../max/polyfill/document/queryselector.js | 4 +- .../max/polyfill/document/queryselectorall.js | 4 +- .../max/polyfill/element/matches.js | 4 +- .../max/polyfill/object/create.js | 4 +- .../max/polyfill/object/defineproperties.js | 4 +- .../max/polyfill/object/defineproperty.js | 4 +- .../object/getownpropertydescriptor.js | 4 +- .../polyfill/object/getownpropertynames.js | 4 +- .../max/polyfill/object/getprototypeof.js | 4 +- .../max/polyfill/object/keys.js | 4 +- .../max/polyfill/string/lcfirst.js | 4 +- .../max/polyfill/string/trim.js | 4 +- .../max/polyfill/string/ucfirst.js | 4 +- .../max/polyfill/window/addeventlistener.js | 4 +- .../max/polyfill/window/customevent.js | 4 +- .../max/polyfill/window/dispatchevent.js | 4 +- .../max/polyfill/window/getcomputedstyle.js | 4 +- .../max/polyfill/window/matchmedia.js | 4 +- .../max/polyfill/window/promise.js | 4 +- .../polyfill/window/removeeventlistener.js | 4 +- dist/{3.7.0 => 3.7.1}/max/pool.js | 12 ++-- dist/{3.7.0 => 3.7.1}/max/pool/array.js | 4 +- dist/{3.7.0 => 3.7.1}/max/pool/dom.js | 4 +- dist/{3.7.0 => 3.7.1}/max/pool/module.js | 6 +- dist/{3.7.0 => 3.7.1}/max/pool/object.js | 4 +- dist/{3.7.0 => 3.7.1}/max/promise/all.js | 4 +- dist/{3.7.0 => 3.7.1}/max/promise/defer.js | 4 +- dist/{3.7.0 => 3.7.1}/max/promise/race.js | 4 +- dist/{3.7.0 => 3.7.1}/max/proxy.js | 4 +- dist/{3.7.0 => 3.7.1}/max/renderer.js | 4 +- dist/{3.7.0 => 3.7.1}/max/support.js | 4 +- .../max/support/capability/datauri.js | 4 +- .../max/support/capability/touch.js | 4 +- .../max/support/css/borderradius.js | 4 +- .../max/support/css/boxshadow.js | 4 +- dist/{3.7.0 => 3.7.1}/max/support/css/rem.js | 4 +- dist/{3.7.0 => 3.7.1}/max/support/css/rgba.js | 4 +- .../max/support/css/textshadow.js | 4 +- .../max/support/css/transform.js | 4 +- .../max/support/css/transform/2d.js | 4 +- .../max/support/css/transform/3d.js | 4 +- .../max/support/css/transition.js | 4 +- .../max/support/element/canvas.js | 4 +- .../max/support/element/canvas/todataurl.js | 4 +- .../support/element/canvas/todataurl/jpeg.js | 4 +- .../support/element/canvas/todataurl/png.js | 4 +- .../support/element/canvas/todataurl/webp.js | 4 +- .../max/support/element/svg.js | 4 +- .../max/support/element/video.js | 4 +- .../max/support/element/video/mp4.js | 4 +- .../max/support/element/video/ogg.js | 4 +- .../max/support/element/video/webm.js | 4 +- dist/{3.7.0 => 3.7.1}/max/transport.js | 4 +- dist/{3.7.0 => 3.7.1}/max/transport/jsonp.js | 4 +- dist/{3.7.0 => 3.7.1}/max/transport/xhr.js | 4 +- dist/{3.7.0 => 3.7.1}/max/url.js | 4 +- dist/{3.7.0 => 3.7.1}/max/vector/2d.js | 4 +- .../max/widget/image/adapt.js | 4 +- dist/{3.7.0 => 3.7.1}/max/worker.js | 4 +- dist/{3.7.0 => 3.7.1}/min/asset.js | 2 +- dist/{3.7.0 => 3.7.1}/min/base.js | 2 +- .../min/component/iterator.js | 2 +- dist/{3.7.0 => 3.7.1}/min/component/remux.js | 2 +- dist/{3.7.0 => 3.7.1}/min/component/sense.js | 2 +- dist/{3.7.0 => 3.7.1}/min/dom/collection.js | 2 +- dist/3.7.1/min/dom/element.js | 2 + .../min/dom/element/emerge.js | 4 +- .../min/dom/element/lazyimage.js | 4 +- .../min/dom/element/shrinkimage.js | 4 +- dist/{3.7.0 => 3.7.1}/min/dom/event.js | 2 +- dist/{3.7.0 => 3.7.1}/min/emitter.js | 2 +- .../{3.7.0 => 3.7.1}/min/function/load/css.js | 2 +- dist/{3.7.0 => 3.7.1}/min/function/merge.js | 2 +- .../min/function/proximity.js | 2 +- .../min/function/unique/string.js | 2 +- .../min/function/unique/uuid.js | 2 +- dist/{3.7.0 => 3.7.1}/min/hook/css.js | 2 +- dist/{3.7.0 => 3.7.1}/min/hook/event.js | 2 +- .../min/jquery/extension/selector.js | 2 +- .../min/jquery/function/prefetch.js | 2 +- .../min/jquery/plugin/emerge.js | 2 +- .../min/jquery/plugin/lazyimage.js | 2 +- .../min/jquery/plugin/shrinkimage.js | 2 +- dist/{3.7.0 => 3.7.1}/min/particle.js | 2 +- .../min/polyfill/array/indexof.js | 2 +- .../document/getelementsbyclassname.js | 2 +- .../min/polyfill/document/queryselector.js | 2 +- .../min/polyfill/document/queryselectorall.js | 2 +- .../min/polyfill/element/matches.js | 2 +- .../min/polyfill/object/create.js | 2 +- .../min/polyfill/object/defineproperties.js | 2 +- .../min/polyfill/object/defineproperty.js | 2 +- .../object/getownpropertydescriptor.js | 2 +- .../polyfill/object/getownpropertynames.js | 2 +- .../min/polyfill/object/getprototypeof.js | 2 +- .../min/polyfill/object/keys.js | 2 +- .../min/polyfill/string/lcfirst.js | 2 +- .../min/polyfill/string/trim.js | 2 +- .../min/polyfill/string/ucfirst.js | 2 +- .../min/polyfill/window/addeventlistener.js | 2 +- .../min/polyfill/window/customevent.js | 2 +- .../min/polyfill/window/dispatchevent.js | 2 +- .../min/polyfill/window/getcomputedstyle.js | 2 +- .../min/polyfill/window/matchmedia.js | 2 +- .../min/polyfill/window/promise.js | 2 +- .../polyfill/window/removeeventlistener.js | 2 +- dist/{3.7.0 => 3.7.1}/min/pool.js | 4 +- dist/{3.7.0 => 3.7.1}/min/pool/array.js | 2 +- dist/{3.7.0 => 3.7.1}/min/pool/dom.js | 2 +- dist/{3.7.0 => 3.7.1}/min/pool/module.js | 4 +- dist/{3.7.0 => 3.7.1}/min/pool/object.js | 2 +- dist/{3.7.0 => 3.7.1}/min/promise/all.js | 2 +- dist/{3.7.0 => 3.7.1}/min/promise/defer.js | 2 +- dist/{3.7.0 => 3.7.1}/min/promise/race.js | 2 +- dist/{3.7.0 => 3.7.1}/min/proxy.js | 2 +- dist/{3.7.0 => 3.7.1}/min/renderer.js | 2 +- dist/{3.7.0 => 3.7.1}/min/support.js | 2 +- .../min/support/capability/datauri.js | 2 +- .../min/support/capability/touch.js | 2 +- .../min/support/css/borderradius.js | 2 +- .../min/support/css/boxshadow.js | 2 +- dist/{3.7.0 => 3.7.1}/min/support/css/rem.js | 2 +- dist/{3.7.0 => 3.7.1}/min/support/css/rgba.js | 2 +- .../min/support/css/textshadow.js | 2 +- .../min/support/css/transform.js | 2 +- .../min/support/css/transform/2d.js | 2 +- .../min/support/css/transform/3d.js | 2 +- .../min/support/css/transition.js | 2 +- .../min/support/element/canvas.js | 2 +- .../min/support/element/canvas/todataurl.js | 2 +- .../support/element/canvas/todataurl/jpeg.js | 2 +- .../support/element/canvas/todataurl/png.js | 2 +- .../support/element/canvas/todataurl/webp.js | 2 +- .../min/support/element/svg.js | 2 +- .../min/support/element/video.js | 2 +- .../min/support/element/video/mp4.js | 2 +- .../min/support/element/video/ogg.js | 2 +- .../min/support/element/video/webm.js | 2 +- dist/{3.7.0 => 3.7.1}/min/transport.js | 2 +- dist/{3.7.0 => 3.7.1}/min/transport/jsonp.js | 2 +- dist/{3.7.0 => 3.7.1}/min/transport/xhr.js | 2 +- dist/{3.7.0 => 3.7.1}/min/url.js | 2 +- dist/{3.7.0 => 3.7.1}/min/vector/2d.js | 2 +- .../min/widget/image/adapt.js | 2 +- dist/{3.7.0 => 3.7.1}/min/worker.js | 2 +- dist/latest/max/asset.js | 4 +- dist/latest/max/base.js | 4 +- dist/latest/max/component/iterator.js | 4 +- dist/latest/max/component/remux.js | 4 +- dist/latest/max/component/sense.js | 4 +- dist/latest/max/dom/collection.js | 4 +- dist/latest/max/dom/element.js | 55 +++++++--------- dist/latest/max/dom/element/emerge.js | 8 +-- dist/latest/max/dom/element/lazyimage.js | 7 +- dist/latest/max/dom/element/shrinkimage.js | 14 ++-- dist/latest/max/dom/event.js | 4 +- dist/latest/max/emitter.js | 4 +- dist/latest/max/function/load/css.js | 4 +- dist/latest/max/function/merge.js | 4 +- dist/latest/max/function/proximity.js | 4 +- dist/latest/max/function/unique/string.js | 4 +- dist/latest/max/function/unique/uuid.js | 4 +- dist/latest/max/hook/css.js | 4 +- dist/latest/max/hook/event.js | 4 +- dist/latest/max/jquery/extension/selector.js | 4 +- dist/latest/max/jquery/function/prefetch.js | 4 +- dist/latest/max/jquery/plugin/emerge.js | 4 +- dist/latest/max/jquery/plugin/lazyimage.js | 4 +- dist/latest/max/jquery/plugin/shrinkimage.js | 4 +- dist/latest/max/particle.js | 4 +- dist/latest/max/polyfill/array/indexof.js | 4 +- .../document/getelementsbyclassname.js | 4 +- .../max/polyfill/document/queryselector.js | 4 +- .../max/polyfill/document/queryselectorall.js | 4 +- dist/latest/max/polyfill/element/matches.js | 4 +- dist/latest/max/polyfill/object/create.js | 4 +- .../max/polyfill/object/defineproperties.js | 4 +- .../max/polyfill/object/defineproperty.js | 4 +- .../object/getownpropertydescriptor.js | 4 +- .../polyfill/object/getownpropertynames.js | 4 +- .../max/polyfill/object/getprototypeof.js | 4 +- dist/latest/max/polyfill/object/keys.js | 4 +- dist/latest/max/polyfill/string/lcfirst.js | 4 +- dist/latest/max/polyfill/string/trim.js | 4 +- dist/latest/max/polyfill/string/ucfirst.js | 4 +- .../max/polyfill/window/addeventlistener.js | 4 +- .../latest/max/polyfill/window/customevent.js | 4 +- .../max/polyfill/window/dispatchevent.js | 4 +- .../max/polyfill/window/getcomputedstyle.js | 4 +- dist/latest/max/polyfill/window/matchmedia.js | 4 +- dist/latest/max/polyfill/window/promise.js | 4 +- .../polyfill/window/removeeventlistener.js | 4 +- dist/latest/max/pool.js | 12 ++-- dist/latest/max/pool/array.js | 4 +- dist/latest/max/pool/dom.js | 4 +- dist/latest/max/pool/module.js | 6 +- dist/latest/max/pool/object.js | 4 +- dist/latest/max/promise/all.js | 4 +- dist/latest/max/promise/defer.js | 4 +- dist/latest/max/promise/race.js | 4 +- dist/latest/max/proxy.js | 4 +- dist/latest/max/renderer.js | 4 +- dist/latest/max/support.js | 4 +- dist/latest/max/support/capability/datauri.js | 4 +- dist/latest/max/support/capability/touch.js | 4 +- dist/latest/max/support/css/borderradius.js | 4 +- dist/latest/max/support/css/boxshadow.js | 4 +- dist/latest/max/support/css/rem.js | 4 +- dist/latest/max/support/css/rgba.js | 4 +- dist/latest/max/support/css/textshadow.js | 4 +- dist/latest/max/support/css/transform.js | 4 +- dist/latest/max/support/css/transform/2d.js | 4 +- dist/latest/max/support/css/transform/3d.js | 4 +- dist/latest/max/support/css/transition.js | 4 +- dist/latest/max/support/element/canvas.js | 4 +- .../max/support/element/canvas/todataurl.js | 4 +- .../support/element/canvas/todataurl/jpeg.js | 4 +- .../support/element/canvas/todataurl/png.js | 4 +- .../support/element/canvas/todataurl/webp.js | 4 +- dist/latest/max/support/element/svg.js | 4 +- dist/latest/max/support/element/video.js | 4 +- dist/latest/max/support/element/video/mp4.js | 4 +- dist/latest/max/support/element/video/ogg.js | 4 +- dist/latest/max/support/element/video/webm.js | 4 +- dist/latest/max/transport.js | 4 +- dist/latest/max/transport/jsonp.js | 4 +- dist/latest/max/transport/xhr.js | 4 +- dist/latest/max/url.js | 4 +- dist/latest/max/vector/2d.js | 4 +- dist/latest/max/widget/image/adapt.js | 4 +- dist/latest/max/worker.js | 4 +- dist/latest/min/asset.js | 2 +- dist/latest/min/base.js | 2 +- dist/latest/min/component/iterator.js | 2 +- dist/latest/min/component/remux.js | 2 +- dist/latest/min/component/sense.js | 2 +- dist/latest/min/dom/collection.js | 2 +- dist/latest/min/dom/element.js | 4 +- dist/latest/min/dom/element/emerge.js | 4 +- dist/latest/min/dom/element/lazyimage.js | 4 +- dist/latest/min/dom/element/shrinkimage.js | 4 +- dist/latest/min/dom/event.js | 2 +- dist/latest/min/emitter.js | 2 +- dist/latest/min/function/load/css.js | 2 +- dist/latest/min/function/merge.js | 2 +- dist/latest/min/function/proximity.js | 2 +- dist/latest/min/function/unique/string.js | 2 +- dist/latest/min/function/unique/uuid.js | 2 +- dist/latest/min/hook/css.js | 2 +- dist/latest/min/hook/event.js | 2 +- dist/latest/min/jquery/extension/selector.js | 2 +- dist/latest/min/jquery/function/prefetch.js | 2 +- dist/latest/min/jquery/plugin/emerge.js | 2 +- dist/latest/min/jquery/plugin/lazyimage.js | 2 +- dist/latest/min/jquery/plugin/shrinkimage.js | 2 +- dist/latest/min/particle.js | 2 +- dist/latest/min/polyfill/array/indexof.js | 2 +- .../document/getelementsbyclassname.js | 2 +- .../min/polyfill/document/queryselector.js | 2 +- .../min/polyfill/document/queryselectorall.js | 2 +- dist/latest/min/polyfill/element/matches.js | 2 +- dist/latest/min/polyfill/object/create.js | 2 +- .../min/polyfill/object/defineproperties.js | 2 +- .../min/polyfill/object/defineproperty.js | 2 +- .../object/getownpropertydescriptor.js | 2 +- .../polyfill/object/getownpropertynames.js | 2 +- .../min/polyfill/object/getprototypeof.js | 2 +- dist/latest/min/polyfill/object/keys.js | 2 +- dist/latest/min/polyfill/string/lcfirst.js | 2 +- dist/latest/min/polyfill/string/trim.js | 2 +- dist/latest/min/polyfill/string/ucfirst.js | 2 +- .../min/polyfill/window/addeventlistener.js | 2 +- .../latest/min/polyfill/window/customevent.js | 2 +- .../min/polyfill/window/dispatchevent.js | 2 +- .../min/polyfill/window/getcomputedstyle.js | 2 +- dist/latest/min/polyfill/window/matchmedia.js | 2 +- dist/latest/min/polyfill/window/promise.js | 2 +- .../polyfill/window/removeeventlistener.js | 2 +- dist/latest/min/pool.js | 4 +- dist/latest/min/pool/array.js | 2 +- dist/latest/min/pool/dom.js | 2 +- dist/latest/min/pool/module.js | 4 +- dist/latest/min/pool/object.js | 2 +- dist/latest/min/promise/all.js | 2 +- dist/latest/min/promise/defer.js | 2 +- dist/latest/min/promise/race.js | 2 +- dist/latest/min/proxy.js | 2 +- dist/latest/min/renderer.js | 2 +- dist/latest/min/support.js | 2 +- dist/latest/min/support/capability/datauri.js | 2 +- dist/latest/min/support/capability/touch.js | 2 +- dist/latest/min/support/css/borderradius.js | 2 +- dist/latest/min/support/css/boxshadow.js | 2 +- dist/latest/min/support/css/rem.js | 2 +- dist/latest/min/support/css/rgba.js | 2 +- dist/latest/min/support/css/textshadow.js | 2 +- dist/latest/min/support/css/transform.js | 2 +- dist/latest/min/support/css/transform/2d.js | 2 +- dist/latest/min/support/css/transform/3d.js | 2 +- dist/latest/min/support/css/transition.js | 2 +- dist/latest/min/support/element/canvas.js | 2 +- .../min/support/element/canvas/todataurl.js | 2 +- .../support/element/canvas/todataurl/jpeg.js | 2 +- .../support/element/canvas/todataurl/png.js | 2 +- .../support/element/canvas/todataurl/webp.js | 2 +- dist/latest/min/support/element/svg.js | 2 +- dist/latest/min/support/element/video.js | 2 +- dist/latest/min/support/element/video/mp4.js | 2 +- dist/latest/min/support/element/video/ogg.js | 2 +- dist/latest/min/support/element/video/webm.js | 2 +- dist/latest/min/transport.js | 2 +- dist/latest/min/transport/jsonp.js | 2 +- dist/latest/min/transport/xhr.js | 2 +- dist/latest/min/url.js | 2 +- dist/latest/min/vector/2d.js | 2 +- dist/latest/min/widget/image/adapt.js | 2 +- dist/latest/min/worker.js | 2 +- package.json | 2 +- ...do.base.3.7.0.js => qoopido.base.3.7.1.js} | 4 +- ...3.7.0.min.js => qoopido.base.3.7.1.min.js} | 2 +- packages/qoopido.base.latest.js | 4 +- packages/qoopido.base.latest.min.js | 2 +- ...merge.3.7.0.js => qoopido.emerge.3.7.1.js} | 59 +++++++---------- ...7.0.min.js => qoopido.emerge.3.7.1.min.js} | 4 +- packages/qoopido.emerge.latest.js | 59 +++++++---------- packages/qoopido.emerge.latest.min.js | 4 +- ...tter.3.7.0.js => qoopido.emitter.3.7.1.js} | 4 +- ....0.min.js => qoopido.emitter.3.7.1.min.js} | 2 +- packages/qoopido.emitter.latest.js | 4 +- packages/qoopido.emitter.latest.min.js | 2 +- ...ge.3.7.0.js => qoopido.lazyimage.3.7.1.js} | 62 ++++++++---------- ....min.js => qoopido.lazyimage.3.7.1.min.js} | 4 +- packages/qoopido.lazyimage.latest.js | 62 ++++++++---------- packages/qoopido.lazyimage.latest.min.js | 4 +- ....remux.3.7.0.js => qoopido.remux.3.7.1.js} | 4 +- ....7.0.min.js => qoopido.remux.3.7.1.min.js} | 2 +- packages/qoopido.remux.latest.js | 4 +- packages/qoopido.remux.latest.min.js | 2 +- ....sense.3.7.0.js => qoopido.sense.3.7.1.js} | 4 +- ....7.0.min.js => qoopido.sense.3.7.1.min.js} | 2 +- packages/qoopido.sense.latest.js | 4 +- packages/qoopido.sense.latest.min.js | 2 +- ....3.7.0.js => qoopido.shrinkimage.3.7.1.js} | 65 +++++++++---------- ...in.js => qoopido.shrinkimage.3.7.1.min.js} | 6 +- packages/qoopido.shrinkimage.latest.js | 65 +++++++++---------- packages/qoopido.shrinkimage.latest.min.js | 6 +- 374 files changed, 797 insertions(+), 865 deletions(-) delete mode 100644 dist/3.7.0/min/dom/element.js rename dist/{3.7.0 => 3.7.1}/max/asset.js (99%) rename dist/{3.7.0 => 3.7.1}/max/base.js (99%) rename dist/{3.7.0 => 3.7.1}/max/component/iterator.js (98%) rename dist/{3.7.0 => 3.7.1}/max/component/remux.js (99%) rename dist/{3.7.0 => 3.7.1}/max/component/sense.js (97%) rename dist/{3.7.0 => 3.7.1}/max/dom/collection.js (99%) rename dist/{3.7.0 => 3.7.1}/max/dom/element.js (91%) rename dist/{3.7.0 => 3.7.1}/max/dom/element/emerge.js (97%) rename dist/{3.7.0 => 3.7.1}/max/dom/element/lazyimage.js (89%) rename dist/{3.7.0 => 3.7.1}/max/dom/element/shrinkimage.js (95%) rename dist/{3.7.0 => 3.7.1}/max/dom/event.js (98%) rename dist/{3.7.0 => 3.7.1}/max/emitter.js (98%) rename dist/{3.7.0 => 3.7.1}/max/function/load/css.js (96%) rename dist/{3.7.0 => 3.7.1}/max/function/merge.js (97%) rename dist/{3.7.0 => 3.7.1}/max/function/proximity.js (97%) rename dist/{3.7.0 => 3.7.1}/max/function/unique/string.js (96%) rename dist/{3.7.0 => 3.7.1}/max/function/unique/uuid.js (95%) rename dist/{3.7.0 => 3.7.1}/max/hook/css.js (98%) rename dist/{3.7.0 => 3.7.1}/max/hook/event.js (99%) rename dist/{3.7.0 => 3.7.1}/max/jquery/extension/selector.js (98%) rename dist/{3.7.0 => 3.7.1}/max/jquery/function/prefetch.js (96%) rename dist/{3.7.0 => 3.7.1}/max/jquery/plugin/emerge.js (97%) rename dist/{3.7.0 => 3.7.1}/max/jquery/plugin/lazyimage.js (97%) rename dist/{3.7.0 => 3.7.1}/max/jquery/plugin/shrinkimage.js (97%) rename dist/{3.7.0 => 3.7.1}/max/particle.js (98%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/array/indexof.js (94%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/document/getelementsbyclassname.js (95%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/document/queryselector.js (95%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/document/queryselectorall.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/element/matches.js (96%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/create.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/defineproperties.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/defineproperty.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/getownpropertydescriptor.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/getownpropertynames.js (96%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/getprototypeof.js (96%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/object/keys.js (95%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/string/lcfirst.js (93%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/string/trim.js (93%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/string/ucfirst.js (93%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/addeventlistener.js (98%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/customevent.js (97%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/dispatchevent.js (98%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/getcomputedstyle.js (96%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/matchmedia.js (99%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/promise.js (99%) rename dist/{3.7.0 => 3.7.1}/max/polyfill/window/removeeventlistener.js (97%) rename dist/{3.7.0 => 3.7.1}/max/pool.js (94%) rename dist/{3.7.0 => 3.7.1}/max/pool/array.js (94%) rename dist/{3.7.0 => 3.7.1}/max/pool/dom.js (97%) rename dist/{3.7.0 => 3.7.1}/max/pool/module.js (93%) rename dist/{3.7.0 => 3.7.1}/max/pool/object.js (97%) rename dist/{3.7.0 => 3.7.1}/max/promise/all.js (97%) rename dist/{3.7.0 => 3.7.1}/max/promise/defer.js (94%) rename dist/{3.7.0 => 3.7.1}/max/promise/race.js (96%) rename dist/{3.7.0 => 3.7.1}/max/proxy.js (95%) rename dist/{3.7.0 => 3.7.1}/max/renderer.js (98%) rename dist/{3.7.0 => 3.7.1}/max/support.js (99%) rename dist/{3.7.0 => 3.7.1}/max/support/capability/datauri.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/capability/touch.js (94%) rename dist/{3.7.0 => 3.7.1}/max/support/css/borderradius.js (94%) rename dist/{3.7.0 => 3.7.1}/max/support/css/boxshadow.js (93%) rename dist/{3.7.0 => 3.7.1}/max/support/css/rem.js (95%) rename dist/{3.7.0 => 3.7.1}/max/support/css/rgba.js (95%) rename dist/{3.7.0 => 3.7.1}/max/support/css/textshadow.js (93%) rename dist/{3.7.0 => 3.7.1}/max/support/css/transform.js (93%) rename dist/{3.7.0 => 3.7.1}/max/support/css/transform/2d.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/css/transform/3d.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/css/transition.js (93%) rename dist/{3.7.0 => 3.7.1}/max/support/element/canvas.js (94%) rename dist/{3.7.0 => 3.7.1}/max/support/element/canvas/todataurl.js (95%) rename dist/{3.7.0 => 3.7.1}/max/support/element/canvas/todataurl/jpeg.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/element/canvas/todataurl/png.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/element/canvas/todataurl/webp.js (96%) rename dist/{3.7.0 => 3.7.1}/max/support/element/svg.js (93%) rename dist/{3.7.0 => 3.7.1}/max/support/element/video.js (94%) rename dist/{3.7.0 => 3.7.1}/max/support/element/video/mp4.js (95%) rename dist/{3.7.0 => 3.7.1}/max/support/element/video/ogg.js (95%) rename dist/{3.7.0 => 3.7.1}/max/support/element/video/webm.js (95%) rename dist/{3.7.0 => 3.7.1}/max/transport.js (96%) rename dist/{3.7.0 => 3.7.1}/max/transport/jsonp.js (98%) rename dist/{3.7.0 => 3.7.1}/max/transport/xhr.js (99%) rename dist/{3.7.0 => 3.7.1}/max/url.js (97%) rename dist/{3.7.0 => 3.7.1}/max/vector/2d.js (98%) rename dist/{3.7.0 => 3.7.1}/max/widget/image/adapt.js (99%) rename dist/{3.7.0 => 3.7.1}/max/worker.js (98%) rename dist/{3.7.0 => 3.7.1}/min/asset.js (96%) rename dist/{3.7.0 => 3.7.1}/min/base.js (96%) rename dist/{3.7.0 => 3.7.1}/min/component/iterator.js (95%) rename dist/{3.7.0 => 3.7.1}/min/component/remux.js (96%) rename dist/{3.7.0 => 3.7.1}/min/component/sense.js (89%) rename dist/{3.7.0 => 3.7.1}/min/dom/collection.js (98%) create mode 100644 dist/3.7.1/min/dom/element.js rename dist/{3.7.0 => 3.7.1}/min/dom/element/emerge.js (68%) rename dist/{3.7.0 => 3.7.1}/min/dom/element/lazyimage.js (69%) rename dist/{3.7.0 => 3.7.1}/min/dom/element/shrinkimage.js (73%) rename dist/{3.7.0 => 3.7.1}/min/dom/event.js (94%) rename dist/{3.7.0 => 3.7.1}/min/emitter.js (95%) rename dist/{3.7.0 => 3.7.1}/min/function/load/css.js (86%) rename dist/{3.7.0 => 3.7.1}/min/function/merge.js (86%) rename dist/{3.7.0 => 3.7.1}/min/function/proximity.js (89%) rename dist/{3.7.0 => 3.7.1}/min/function/unique/string.js (86%) rename dist/{3.7.0 => 3.7.1}/min/function/unique/uuid.js (86%) rename dist/{3.7.0 => 3.7.1}/min/hook/css.js (93%) rename dist/{3.7.0 => 3.7.1}/min/hook/event.js (96%) rename dist/{3.7.0 => 3.7.1}/min/jquery/extension/selector.js (95%) rename dist/{3.7.0 => 3.7.1}/min/jquery/function/prefetch.js (88%) rename dist/{3.7.0 => 3.7.1}/min/jquery/plugin/emerge.js (89%) rename dist/{3.7.0 => 3.7.1}/min/jquery/plugin/lazyimage.js (89%) rename dist/{3.7.0 => 3.7.1}/min/jquery/plugin/shrinkimage.js (91%) rename dist/{3.7.0 => 3.7.1}/min/particle.js (94%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/array/indexof.js (82%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/document/getelementsbyclassname.js (86%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/document/queryselector.js (84%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/document/queryselectorall.js (90%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/element/matches.js (89%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/create.js (90%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/defineproperties.js (91%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/defineproperty.js (92%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/getownpropertydescriptor.js (91%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/getownpropertynames.js (89%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/getprototypeof.js (88%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/object/keys.js (84%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/string/lcfirst.js (82%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/string/trim.js (83%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/string/ucfirst.js (82%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/addeventlistener.js (94%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/customevent.js (91%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/dispatchevent.js (92%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/getcomputedstyle.js (87%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/matchmedia.js (97%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/promise.js (96%) rename dist/{3.7.0 => 3.7.1}/min/polyfill/window/removeeventlistener.js (90%) rename dist/{3.7.0 => 3.7.1}/min/pool.js (87%) rename dist/{3.7.0 => 3.7.1}/min/pool/array.js (81%) rename dist/{3.7.0 => 3.7.1}/min/pool/dom.js (90%) rename dist/{3.7.0 => 3.7.1}/min/pool/module.js (73%) rename dist/{3.7.0 => 3.7.1}/min/pool/object.js (92%) rename dist/{3.7.0 => 3.7.1}/min/promise/all.js (89%) rename dist/{3.7.0 => 3.7.1}/min/promise/defer.js (82%) rename dist/{3.7.0 => 3.7.1}/min/promise/race.js (87%) rename dist/{3.7.0 => 3.7.1}/min/proxy.js (85%) rename dist/{3.7.0 => 3.7.1}/min/renderer.js (94%) rename dist/{3.7.0 => 3.7.1}/min/support.js (98%) rename dist/{3.7.0 => 3.7.1}/min/support/capability/datauri.js (90%) rename dist/{3.7.0 => 3.7.1}/min/support/capability/touch.js (84%) rename dist/{3.7.0 => 3.7.1}/min/support/css/borderradius.js (84%) rename dist/{3.7.0 => 3.7.1}/min/support/css/boxshadow.js (83%) rename dist/{3.7.0 => 3.7.1}/min/support/css/rem.js (85%) rename dist/{3.7.0 => 3.7.1}/min/support/css/rgba.js (86%) rename dist/{3.7.0 => 3.7.1}/min/support/css/textshadow.js (83%) rename dist/{3.7.0 => 3.7.1}/min/support/css/transform.js (83%) rename dist/{3.7.0 => 3.7.1}/min/support/css/transform/2d.js (89%) rename dist/{3.7.0 => 3.7.1}/min/support/css/transform/3d.js (89%) rename dist/{3.7.0 => 3.7.1}/min/support/css/transition.js (83%) rename dist/{3.7.0 => 3.7.1}/min/support/element/canvas.js (85%) rename dist/{3.7.0 => 3.7.1}/min/support/element/canvas/todataurl.js (87%) rename dist/{3.7.0 => 3.7.1}/min/support/element/canvas/todataurl/jpeg.js (89%) rename dist/{3.7.0 => 3.7.1}/min/support/element/canvas/todataurl/png.js (89%) rename dist/{3.7.0 => 3.7.1}/min/support/element/canvas/todataurl/webp.js (89%) rename dist/{3.7.0 => 3.7.1}/min/support/element/svg.js (83%) rename dist/{3.7.0 => 3.7.1}/min/support/element/video.js (84%) rename dist/{3.7.0 => 3.7.1}/min/support/element/video/mp4.js (88%) rename dist/{3.7.0 => 3.7.1}/min/support/element/video/ogg.js (88%) rename dist/{3.7.0 => 3.7.1}/min/support/element/video/webm.js (88%) rename dist/{3.7.0 => 3.7.1}/min/transport.js (88%) rename dist/{3.7.0 => 3.7.1}/min/transport/jsonp.js (96%) rename dist/{3.7.0 => 3.7.1}/min/transport/xhr.js (97%) rename dist/{3.7.0 => 3.7.1}/min/url.js (91%) rename dist/{3.7.0 => 3.7.1}/min/vector/2d.js (95%) rename dist/{3.7.0 => 3.7.1}/min/widget/image/adapt.js (97%) rename dist/{3.7.0 => 3.7.1}/min/worker.js (96%) rename packages/{qoopido.base.3.7.0.js => qoopido.base.3.7.1.js} (99%) rename packages/{qoopido.base.3.7.0.min.js => qoopido.base.3.7.1.min.js} (98%) rename packages/{qoopido.emerge.3.7.0.js => qoopido.emerge.3.7.1.js} (97%) rename packages/{qoopido.emerge.3.7.0.min.js => qoopido.emerge.3.7.1.min.js} (63%) rename packages/{qoopido.emitter.3.7.0.js => qoopido.emitter.3.7.1.js} (99%) rename packages/{qoopido.emitter.3.7.0.min.js => qoopido.emitter.3.7.1.min.js} (98%) rename packages/{qoopido.lazyimage.3.7.0.js => qoopido.lazyimage.3.7.1.js} (97%) rename packages/{qoopido.lazyimage.3.7.0.min.js => qoopido.lazyimage.3.7.1.min.js} (52%) rename packages/{qoopido.remux.3.7.0.js => qoopido.remux.3.7.1.js} (99%) rename packages/{qoopido.remux.3.7.0.min.js => qoopido.remux.3.7.1.min.js} (99%) rename packages/{qoopido.sense.3.7.0.js => qoopido.sense.3.7.1.js} (99%) rename packages/{qoopido.sense.3.7.0.min.js => qoopido.sense.3.7.1.min.js} (99%) rename packages/{qoopido.shrinkimage.3.7.0.js => qoopido.shrinkimage.3.7.1.js} (97%) rename packages/{qoopido.shrinkimage.3.7.0.min.js => qoopido.shrinkimage.3.7.1.min.js} (52%) diff --git a/dist/3.7.0/min/dom/element.js b/dist/3.7.0/min/dom/element.js deleted file mode 100644 index 0f3741d3..00000000 --- a/dist/3.7.0/min/dom/element.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,i,o,s){"use strict";function l(e){var t,n,r;for(t in C)n=C[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function u(e,t,n){var r=this,i=l(e),s=o.createEvent(i.type);s[i.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function a(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=o.createElement(t)):e=o.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function f(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var c="object",m="string",p=e["function/unique/uuid"],d=o.getElementsByTagName("head")[0],h="textContent"in o.createElement("a")?"textContent":"innerText",v="undefined"!=typeof d.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},g="undefined"!=typeof d.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),E=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,S=e["hook/css"],w={},C={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,i=this;return e=a(e),r=e._quid,r?i=w[r]:(r=e._quid=p(),i.type=e.tagName,i.element=e,i._listener={},w[r]=i),"object"==typeof t&&null!==t&&i.setAttributes(t),"object"==typeof n&&null!==n&&i.setStyles(n),i!==this&&i.dispose&&i.dispose(),i},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(b),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===m?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[i])!==s;i++)r[t]=n.element.getAttributes(t);return r},setAttribute:function(e,t){var n=this;return e&&typeof e===m&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===c&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===m&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,n=this,r=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[r])!==s;r++)n.element.removeAttribute(t);return n},getStyle:function(e){var t=this;return e&&typeof e===m?S.process("get",t.element,e):void 0},getStyles:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[i])!==s;i++)r[t]=S.process("get",n.element,t);return r},setStyle:function(e,t){var n=this;return e&&typeof e===m&&S.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===c&&!e.length)for(t in e)S.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===m&&t.setStyle(e,""),t},removeStyles:function(e){var t,n=this,r=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[r])!==s;r++)n.setStyle(t,"");return n},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=g.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=v.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||a(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||a(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||a(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,i=r.element,o=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],a=l._quid||(l._quid=p()),c=0;for(t=t.split(" ");(n=t[c])!==s;c++){var m=n+"-"+a,d=function(t){var n;t=E&&E.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=p(),(!o||f(t,o))&&l.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,u.call(r,n))),t.dispose&&t.dispose()};d.type=n,r._listener[m]=d,i.addEventListener(n,d)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=(arguments.length>3?arguments[3]:arguments[2])!==!1,o=function(n){t.off(i===!0?n.type:e,o),r.call(this,n,n.originalEvent.detail)};return r._quid=o._quid=p(),n?t.on(e,n,o):t.on(e,o),t},off:function(e,t){var n,r,i,o=this,l=o.element,u=0;for(e=e.split(" ");(n=e[u])!==s;u++)r=t._quid&&n+"-"+t._quid||null,i=r&&o._listener[r]||null,i?(l.removeEventListener(n,i),delete o._listener[r]):l.removeEventListener(n,t);return o},emit:function(e,t){var n=this;return u.call(n,e,t),n}})}); \ No newline at end of file diff --git a/dist/3.7.0/max/asset.js b/dist/3.7.1/max/asset.js similarity index 99% rename from dist/3.7.0/max/asset.js rename to dist/3.7.1/max/asset.js index f4c6b762..008781d4 100644 --- a/dist/3.7.0/max/asset.js +++ b/dist/3.7.1/max/asset.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/base.js b/dist/3.7.1/max/base.js similarity index 99% rename from dist/3.7.0/max/base.js rename to dist/3.7.1/max/base.js index d54f7f16..280d061b 100644 --- a/dist/3.7.0/max/base.js +++ b/dist/3.7.1/max/base.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/component/iterator.js b/dist/3.7.1/max/component/iterator.js similarity index 98% rename from dist/3.7.0/max/component/iterator.js rename to dist/3.7.1/max/component/iterator.js index 6860daef..6d2d9c7a 100644 --- a/dist/3.7.0/max/component/iterator.js +++ b/dist/3.7.1/max/component/iterator.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/component/remux.js b/dist/3.7.1/max/component/remux.js similarity index 99% rename from dist/3.7.0/max/component/remux.js rename to dist/3.7.1/max/component/remux.js index 89775204..614f2e6c 100644 --- a/dist/3.7.0/max/component/remux.js +++ b/dist/3.7.1/max/component/remux.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/component/sense.js b/dist/3.7.1/max/component/sense.js similarity index 97% rename from dist/3.7.0/max/component/sense.js rename to dist/3.7.1/max/component/sense.js index e8811a06..fb494aa1 100644 --- a/dist/3.7.0/max/component/sense.js +++ b/dist/3.7.1/max/component/sense.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/dom/collection.js b/dist/3.7.1/max/dom/collection.js similarity index 99% rename from dist/3.7.0/max/dom/collection.js rename to dist/3.7.1/max/dom/collection.js index fea5e55d..7fdcd93c 100644 --- a/dist/3.7.0/max/dom/collection.js +++ b/dist/3.7.1/max/dom/collection.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/dom/element.js b/dist/3.7.1/max/dom/element.js similarity index 91% rename from dist/3.7.0/max/dom/element.js rename to dist/3.7.1/max/dom/element.js index 5a1753bf..29cb16fc 100644 --- a/dist/3.7.0/max/dom/element.js +++ b/dist/3.7.1/max/dom/element.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -55,7 +55,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -109,6 +109,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -146,7 +149,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -182,13 +185,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -215,13 +215,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -231,13 +228,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -264,13 +258,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, diff --git a/dist/3.7.0/max/dom/element/emerge.js b/dist/3.7.1/max/dom/element/emerge.js similarity index 97% rename from dist/3.7.0/max/dom/element/emerge.js rename to dist/3.7.1/max/dom/element/emerge.js index a54f133b..728d9370 100644 --- a/dist/3.7.0/max/dom/element/emerge.js +++ b/dist/3.7.1/max/dom/element/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -83,8 +83,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -108,6 +107,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; diff --git a/dist/3.7.0/max/dom/element/lazyimage.js b/dist/3.7.1/max/dom/element/lazyimage.js similarity index 89% rename from dist/3.7.0/max/dom/element/lazyimage.js rename to dist/3.7.1/max/dom/element/lazyimage.js index 31d52c72..c3930c08 100644 --- a/dist/3.7.0/max/dom/element/lazyimage.js +++ b/dist/3.7.1/max/dom/element/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -31,8 +31,7 @@ } prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element, modules["function/merge"]({}, defaults, settings || {})); + var self = prototype._parent._constructor.call(this, element, modules["function/merge"]({}, defaults, settings || {})); self.on(EVENT_EMERGED, function onEmerge(event) { if (queue === 0 || event.data === 1) { self.remove(); diff --git a/dist/3.7.0/max/dom/element/shrinkimage.js b/dist/3.7.1/max/dom/element/shrinkimage.js similarity index 95% rename from dist/3.7.0/max/dom/element/shrinkimage.js rename to dist/3.7.1/max/dom/element/shrinkimage.js index 230dc99f..e7127ecb 100644 --- a/dist/3.7.0/max/dom/element/shrinkimage.js +++ b/dist/3.7.1/max/dom/element/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -127,8 +127,8 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self = this, foreground, background; - prototype._parent._constructor.call(self, element); + var self, foreground, background; + self = prototype._parent._constructor.call(this, element); self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); @@ -138,6 +138,7 @@ if (background !== "none" && regexBackground.test(background)) { processMain.call(self, background, true); } + return self; }, hide: function() { this.setStyles({ @@ -155,13 +156,14 @@ loader = modules["dom/element"].extend({ _url: null, _constructor: function(url, element) { - var self = this; + var self; if (!element) { element = pool && pool.obtain("img") || document.createElement("img"); } - loader._parent._constructor.call(self, element); + self = loader._parent._constructor.call(this, element); self._url = url; processTransport.call(self, modules["transport/xhr"]); + return self; } }); return prototype; diff --git a/dist/3.7.0/max/dom/event.js b/dist/3.7.1/max/dom/event.js similarity index 98% rename from dist/3.7.0/max/dom/event.js rename to dist/3.7.1/max/dom/event.js index e30f32cd..ef0796bb 100644 --- a/dist/3.7.0/max/dom/event.js +++ b/dist/3.7.1/max/dom/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/emitter.js b/dist/3.7.1/max/emitter.js similarity index 98% rename from dist/3.7.0/max/emitter.js rename to dist/3.7.1/max/emitter.js index 5f2f5ac0..a2aac40a 100644 --- a/dist/3.7.0/max/emitter.js +++ b/dist/3.7.1/max/emitter.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/function/load/css.js b/dist/3.7.1/max/function/load/css.js similarity index 96% rename from dist/3.7.0/max/function/load/css.js rename to dist/3.7.1/max/function/load/css.js index 924b0ac4..61238baa 100644 --- a/dist/3.7.0/max/function/load/css.js +++ b/dist/3.7.1/max/function/load/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/function/merge.js b/dist/3.7.1/max/function/merge.js similarity index 97% rename from dist/3.7.0/max/function/merge.js rename to dist/3.7.1/max/function/merge.js index 5f972a73..d0ff1233 100644 --- a/dist/3.7.0/max/function/merge.js +++ b/dist/3.7.1/max/function/merge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/function/proximity.js b/dist/3.7.1/max/function/proximity.js similarity index 97% rename from dist/3.7.0/max/function/proximity.js rename to dist/3.7.1/max/function/proximity.js index eb531d86..d45e7ea3 100644 --- a/dist/3.7.0/max/function/proximity.js +++ b/dist/3.7.1/max/function/proximity.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/function/unique/string.js b/dist/3.7.1/max/function/unique/string.js similarity index 96% rename from dist/3.7.0/max/function/unique/string.js rename to dist/3.7.1/max/function/unique/string.js index 939afe51..19507af8 100644 --- a/dist/3.7.0/max/function/unique/string.js +++ b/dist/3.7.1/max/function/unique/string.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/function/unique/uuid.js b/dist/3.7.1/max/function/unique/uuid.js similarity index 95% rename from dist/3.7.0/max/function/unique/uuid.js rename to dist/3.7.1/max/function/unique/uuid.js index f9f6dfd8..db630e5b 100644 --- a/dist/3.7.0/max/function/unique/uuid.js +++ b/dist/3.7.1/max/function/unique/uuid.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/hook/css.js b/dist/3.7.1/max/hook/css.js similarity index 98% rename from dist/3.7.0/max/hook/css.js rename to dist/3.7.1/max/hook/css.js index aa337839..b81503ca 100644 --- a/dist/3.7.0/max/hook/css.js +++ b/dist/3.7.1/max/hook/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/hook/event.js b/dist/3.7.1/max/hook/event.js similarity index 99% rename from dist/3.7.0/max/hook/event.js rename to dist/3.7.1/max/hook/event.js index 7fe08434..351994a2 100644 --- a/dist/3.7.0/max/hook/event.js +++ b/dist/3.7.1/max/hook/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/jquery/extension/selector.js b/dist/3.7.1/max/jquery/extension/selector.js similarity index 98% rename from dist/3.7.0/max/jquery/extension/selector.js rename to dist/3.7.1/max/jquery/extension/selector.js index 0871ef5d..d32c4ea2 100644 --- a/dist/3.7.0/max/jquery/extension/selector.js +++ b/dist/3.7.1/max/jquery/extension/selector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/jquery/function/prefetch.js b/dist/3.7.1/max/jquery/function/prefetch.js similarity index 96% rename from dist/3.7.0/max/jquery/function/prefetch.js rename to dist/3.7.1/max/jquery/function/prefetch.js index 91189674..0080f5bd 100644 --- a/dist/3.7.0/max/jquery/function/prefetch.js +++ b/dist/3.7.1/max/jquery/function/prefetch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/jquery/plugin/emerge.js b/dist/3.7.1/max/jquery/plugin/emerge.js similarity index 97% rename from dist/3.7.0/max/jquery/plugin/emerge.js rename to dist/3.7.1/max/jquery/plugin/emerge.js index 5f5588a5..90925ea4 100644 --- a/dist/3.7.0/max/jquery/plugin/emerge.js +++ b/dist/3.7.1/max/jquery/plugin/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/jquery/plugin/lazyimage.js b/dist/3.7.1/max/jquery/plugin/lazyimage.js similarity index 97% rename from dist/3.7.0/max/jquery/plugin/lazyimage.js rename to dist/3.7.1/max/jquery/plugin/lazyimage.js index e00ce60e..78f9a379 100644 --- a/dist/3.7.0/max/jquery/plugin/lazyimage.js +++ b/dist/3.7.1/max/jquery/plugin/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/jquery/plugin/shrinkimage.js b/dist/3.7.1/max/jquery/plugin/shrinkimage.js similarity index 97% rename from dist/3.7.0/max/jquery/plugin/shrinkimage.js rename to dist/3.7.1/max/jquery/plugin/shrinkimage.js index 62aeb12d..0f7a20bf 100644 --- a/dist/3.7.0/max/jquery/plugin/shrinkimage.js +++ b/dist/3.7.1/max/jquery/plugin/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/particle.js b/dist/3.7.1/max/particle.js similarity index 98% rename from dist/3.7.0/max/particle.js rename to dist/3.7.1/max/particle.js index f9f840b8..8ce498ec 100644 --- a/dist/3.7.0/max/particle.js +++ b/dist/3.7.1/max/particle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/array/indexof.js b/dist/3.7.1/max/polyfill/array/indexof.js similarity index 94% rename from dist/3.7.0/max/polyfill/array/indexof.js rename to dist/3.7.1/max/polyfill/array/indexof.js index 61cd0a0f..9b743578 100644 --- a/dist/3.7.0/max/polyfill/array/indexof.js +++ b/dist/3.7.1/max/polyfill/array/indexof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/document/getelementsbyclassname.js b/dist/3.7.1/max/polyfill/document/getelementsbyclassname.js similarity index 95% rename from dist/3.7.0/max/polyfill/document/getelementsbyclassname.js rename to dist/3.7.1/max/polyfill/document/getelementsbyclassname.js index d2f64dbf..9844885b 100644 --- a/dist/3.7.0/max/polyfill/document/getelementsbyclassname.js +++ b/dist/3.7.1/max/polyfill/document/getelementsbyclassname.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/document/queryselector.js b/dist/3.7.1/max/polyfill/document/queryselector.js similarity index 95% rename from dist/3.7.0/max/polyfill/document/queryselector.js rename to dist/3.7.1/max/polyfill/document/queryselector.js index db8eaca8..617eaf91 100644 --- a/dist/3.7.0/max/polyfill/document/queryselector.js +++ b/dist/3.7.1/max/polyfill/document/queryselector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/document/queryselectorall.js b/dist/3.7.1/max/polyfill/document/queryselectorall.js similarity index 97% rename from dist/3.7.0/max/polyfill/document/queryselectorall.js rename to dist/3.7.1/max/polyfill/document/queryselectorall.js index f2fb3244..637b9d14 100644 --- a/dist/3.7.0/max/polyfill/document/queryselectorall.js +++ b/dist/3.7.1/max/polyfill/document/queryselectorall.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/element/matches.js b/dist/3.7.1/max/polyfill/element/matches.js similarity index 96% rename from dist/3.7.0/max/polyfill/element/matches.js rename to dist/3.7.1/max/polyfill/element/matches.js index 151e184d..b2b220ef 100644 --- a/dist/3.7.0/max/polyfill/element/matches.js +++ b/dist/3.7.1/max/polyfill/element/matches.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/create.js b/dist/3.7.1/max/polyfill/object/create.js similarity index 97% rename from dist/3.7.0/max/polyfill/object/create.js rename to dist/3.7.1/max/polyfill/object/create.js index c8a634db..165b38b7 100644 --- a/dist/3.7.0/max/polyfill/object/create.js +++ b/dist/3.7.1/max/polyfill/object/create.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/defineproperties.js b/dist/3.7.1/max/polyfill/object/defineproperties.js similarity index 97% rename from dist/3.7.0/max/polyfill/object/defineproperties.js rename to dist/3.7.1/max/polyfill/object/defineproperties.js index ffab7508..74f4a575 100644 --- a/dist/3.7.0/max/polyfill/object/defineproperties.js +++ b/dist/3.7.1/max/polyfill/object/defineproperties.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/defineproperty.js b/dist/3.7.1/max/polyfill/object/defineproperty.js similarity index 97% rename from dist/3.7.0/max/polyfill/object/defineproperty.js rename to dist/3.7.1/max/polyfill/object/defineproperty.js index f8f195fd..5f511800 100644 --- a/dist/3.7.0/max/polyfill/object/defineproperty.js +++ b/dist/3.7.1/max/polyfill/object/defineproperty.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/getownpropertydescriptor.js b/dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js similarity index 97% rename from dist/3.7.0/max/polyfill/object/getownpropertydescriptor.js rename to dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js index 42789b51..8dac0b97 100644 --- a/dist/3.7.0/max/polyfill/object/getownpropertydescriptor.js +++ b/dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/getownpropertynames.js b/dist/3.7.1/max/polyfill/object/getownpropertynames.js similarity index 96% rename from dist/3.7.0/max/polyfill/object/getownpropertynames.js rename to dist/3.7.1/max/polyfill/object/getownpropertynames.js index f86fb982..dd6a701f 100644 --- a/dist/3.7.0/max/polyfill/object/getownpropertynames.js +++ b/dist/3.7.1/max/polyfill/object/getownpropertynames.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/getprototypeof.js b/dist/3.7.1/max/polyfill/object/getprototypeof.js similarity index 96% rename from dist/3.7.0/max/polyfill/object/getprototypeof.js rename to dist/3.7.1/max/polyfill/object/getprototypeof.js index 75667740..fa5095a7 100644 --- a/dist/3.7.0/max/polyfill/object/getprototypeof.js +++ b/dist/3.7.1/max/polyfill/object/getprototypeof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/object/keys.js b/dist/3.7.1/max/polyfill/object/keys.js similarity index 95% rename from dist/3.7.0/max/polyfill/object/keys.js rename to dist/3.7.1/max/polyfill/object/keys.js index cc4e2db5..9461eb1c 100644 --- a/dist/3.7.0/max/polyfill/object/keys.js +++ b/dist/3.7.1/max/polyfill/object/keys.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/string/lcfirst.js b/dist/3.7.1/max/polyfill/string/lcfirst.js similarity index 93% rename from dist/3.7.0/max/polyfill/string/lcfirst.js rename to dist/3.7.1/max/polyfill/string/lcfirst.js index 9d4c6ecb..bc86b9cf 100644 --- a/dist/3.7.0/max/polyfill/string/lcfirst.js +++ b/dist/3.7.1/max/polyfill/string/lcfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/string/trim.js b/dist/3.7.1/max/polyfill/string/trim.js similarity index 93% rename from dist/3.7.0/max/polyfill/string/trim.js rename to dist/3.7.1/max/polyfill/string/trim.js index 19635c0a..5fad6d52 100644 --- a/dist/3.7.0/max/polyfill/string/trim.js +++ b/dist/3.7.1/max/polyfill/string/trim.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/string/ucfirst.js b/dist/3.7.1/max/polyfill/string/ucfirst.js similarity index 93% rename from dist/3.7.0/max/polyfill/string/ucfirst.js rename to dist/3.7.1/max/polyfill/string/ucfirst.js index 861a0cbc..c5454c05 100644 --- a/dist/3.7.0/max/polyfill/string/ucfirst.js +++ b/dist/3.7.1/max/polyfill/string/ucfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/addeventlistener.js b/dist/3.7.1/max/polyfill/window/addeventlistener.js similarity index 98% rename from dist/3.7.0/max/polyfill/window/addeventlistener.js rename to dist/3.7.1/max/polyfill/window/addeventlistener.js index ade1bdcd..f5aba1df 100644 --- a/dist/3.7.0/max/polyfill/window/addeventlistener.js +++ b/dist/3.7.1/max/polyfill/window/addeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/customevent.js b/dist/3.7.1/max/polyfill/window/customevent.js similarity index 97% rename from dist/3.7.0/max/polyfill/window/customevent.js rename to dist/3.7.1/max/polyfill/window/customevent.js index 8e5815ca..533208cc 100644 --- a/dist/3.7.0/max/polyfill/window/customevent.js +++ b/dist/3.7.1/max/polyfill/window/customevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/dispatchevent.js b/dist/3.7.1/max/polyfill/window/dispatchevent.js similarity index 98% rename from dist/3.7.0/max/polyfill/window/dispatchevent.js rename to dist/3.7.1/max/polyfill/window/dispatchevent.js index 2ffad3c4..fde8b483 100644 --- a/dist/3.7.0/max/polyfill/window/dispatchevent.js +++ b/dist/3.7.1/max/polyfill/window/dispatchevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/getcomputedstyle.js b/dist/3.7.1/max/polyfill/window/getcomputedstyle.js similarity index 96% rename from dist/3.7.0/max/polyfill/window/getcomputedstyle.js rename to dist/3.7.1/max/polyfill/window/getcomputedstyle.js index e88971ea..de9feeb7 100644 --- a/dist/3.7.0/max/polyfill/window/getcomputedstyle.js +++ b/dist/3.7.1/max/polyfill/window/getcomputedstyle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/matchmedia.js b/dist/3.7.1/max/polyfill/window/matchmedia.js similarity index 99% rename from dist/3.7.0/max/polyfill/window/matchmedia.js rename to dist/3.7.1/max/polyfill/window/matchmedia.js index e8f49471..4673a1da 100644 --- a/dist/3.7.0/max/polyfill/window/matchmedia.js +++ b/dist/3.7.1/max/polyfill/window/matchmedia.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/promise.js b/dist/3.7.1/max/polyfill/window/promise.js similarity index 99% rename from dist/3.7.0/max/polyfill/window/promise.js rename to dist/3.7.1/max/polyfill/window/promise.js index d146eaf2..29cdf9f0 100644 --- a/dist/3.7.0/max/polyfill/window/promise.js +++ b/dist/3.7.1/max/polyfill/window/promise.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/polyfill/window/removeeventlistener.js b/dist/3.7.1/max/polyfill/window/removeeventlistener.js similarity index 97% rename from dist/3.7.0/max/polyfill/window/removeeventlistener.js rename to dist/3.7.1/max/polyfill/window/removeeventlistener.js index b5511e21..95fd82da 100644 --- a/dist/3.7.0/max/polyfill/window/removeeventlistener.js +++ b/dist/3.7.1/max/polyfill/window/removeeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/pool.js b/dist/3.7.1/max/pool.js similarity index 94% rename from dist/3.7.0/max/pool.js rename to dist/3.7.1/max/pool.js index b8d29c3c..c5281501 100644 --- a/dist/3.7.0/max/pool.js +++ b/dist/3.7.1/max/pool.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -27,9 +27,9 @@ if (metrics.inPool + spliceLength <= settings.maxPoolsize) { durationStart = new Date().getTime(); for (var i = 0; i < spliceLength; i++) { - var element = elements[i], quid = element._quid, dispose = element.dispose; + var element = elements[i], uuid = element._puid, dispose = element.dispose; element = self._dispose(element); - element._quid = quid; + element._puid = uuid; element.dispose = dispose; self._getPool.call(self, element).push(element); } @@ -84,7 +84,7 @@ }, _initElement: function(element) { var self = this; - element._quid = modules["function/unique/uuid"](); + element._puid = modules["function/unique/uuid"](); element.dispose = function() { self.dispose(element); }; @@ -110,7 +110,7 @@ }, dispose: function(element) { var self = this, queue = self._queue; - if (!element._quid) { + if (!element._puid) { element = self._initElement(element); self.metrics.inUse++; } diff --git a/dist/3.7.0/max/pool/array.js b/dist/3.7.1/max/pool/array.js similarity index 94% rename from dist/3.7.0/max/pool/array.js rename to dist/3.7.1/max/pool/array.js index 63e4716e..2ccf75b1 100644 --- a/dist/3.7.0/max/pool/array.js +++ b/dist/3.7.1/max/pool/array.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/pool/dom.js b/dist/3.7.1/max/pool/dom.js similarity index 97% rename from dist/3.7.0/max/pool/dom.js rename to dist/3.7.1/max/pool/dom.js index 28051e6b..40127a0f 100644 --- a/dist/3.7.0/max/pool/dom.js +++ b/dist/3.7.1/max/pool/dom.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/pool/module.js b/dist/3.7.1/max/pool/module.js similarity index 93% rename from dist/3.7.0/max/pool/module.js rename to dist/3.7.1/max/pool/module.js index 2b0490f6..4a065850 100644 --- a/dist/3.7.0/max/pool/module.js +++ b/dist/3.7.1/max/pool/module.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -17,7 +17,7 @@ _module: null, _destroy: null, _constructor: function(module, options, useShared) { - var self = this, uuid = module._quid || (module._quid = generateUuid()), pointer = useShared && (shared.pool || (shared.pool = {})) && (shared.pool.module || (shared.pool.module = {})); + var self = this, uuid = module._puid || (module._puid = generateUuid()), pointer = useShared && (shared.pool || (shared.pool = {})) && (shared.pool.module || (shared.pool.module = {})); if (useShared === true && pointer[uuid]) { return pointer[uuid]; } else { diff --git a/dist/3.7.0/max/pool/object.js b/dist/3.7.1/max/pool/object.js similarity index 97% rename from dist/3.7.0/max/pool/object.js rename to dist/3.7.1/max/pool/object.js index 46189f91..80136816 100644 --- a/dist/3.7.0/max/pool/object.js +++ b/dist/3.7.1/max/pool/object.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/promise/all.js b/dist/3.7.1/max/promise/all.js similarity index 97% rename from dist/3.7.0/max/promise/all.js rename to dist/3.7.1/max/promise/all.js index 2c63b612..0724bb7c 100644 --- a/dist/3.7.0/max/promise/all.js +++ b/dist/3.7.1/max/promise/all.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/promise/defer.js b/dist/3.7.1/max/promise/defer.js similarity index 94% rename from dist/3.7.0/max/promise/defer.js rename to dist/3.7.1/max/promise/defer.js index f928d876..564415d0 100644 --- a/dist/3.7.0/max/promise/defer.js +++ b/dist/3.7.1/max/promise/defer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/promise/race.js b/dist/3.7.1/max/promise/race.js similarity index 96% rename from dist/3.7.0/max/promise/race.js rename to dist/3.7.1/max/promise/race.js index 15c34283..bc9d5661 100644 --- a/dist/3.7.0/max/promise/race.js +++ b/dist/3.7.1/max/promise/race.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/proxy.js b/dist/3.7.1/max/proxy.js similarity index 95% rename from dist/3.7.0/max/proxy.js rename to dist/3.7.1/max/proxy.js index 6ce3c5e6..afc6920b 100644 --- a/dist/3.7.0/max/proxy.js +++ b/dist/3.7.1/max/proxy.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/renderer.js b/dist/3.7.1/max/renderer.js similarity index 98% rename from dist/3.7.0/max/renderer.js rename to dist/3.7.1/max/renderer.js index cdad6cd5..824f6f7b 100644 --- a/dist/3.7.0/max/renderer.js +++ b/dist/3.7.1/max/renderer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support.js b/dist/3.7.1/max/support.js similarity index 99% rename from dist/3.7.0/max/support.js rename to dist/3.7.1/max/support.js index 58af47ef..7667d262 100644 --- a/dist/3.7.0/max/support.js +++ b/dist/3.7.1/max/support.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/capability/datauri.js b/dist/3.7.1/max/support/capability/datauri.js similarity index 96% rename from dist/3.7.0/max/support/capability/datauri.js rename to dist/3.7.1/max/support/capability/datauri.js index ede5dc4b..fc2b1637 100644 --- a/dist/3.7.0/max/support/capability/datauri.js +++ b/dist/3.7.1/max/support/capability/datauri.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/capability/touch.js b/dist/3.7.1/max/support/capability/touch.js similarity index 94% rename from dist/3.7.0/max/support/capability/touch.js rename to dist/3.7.1/max/support/capability/touch.js index d929014e..77b8c4fa 100644 --- a/dist/3.7.0/max/support/capability/touch.js +++ b/dist/3.7.1/max/support/capability/touch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/borderradius.js b/dist/3.7.1/max/support/css/borderradius.js similarity index 94% rename from dist/3.7.0/max/support/css/borderradius.js rename to dist/3.7.1/max/support/css/borderradius.js index e2d478be..ba3fc165 100644 --- a/dist/3.7.0/max/support/css/borderradius.js +++ b/dist/3.7.1/max/support/css/borderradius.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/boxshadow.js b/dist/3.7.1/max/support/css/boxshadow.js similarity index 93% rename from dist/3.7.0/max/support/css/boxshadow.js rename to dist/3.7.1/max/support/css/boxshadow.js index e31bbca9..87400548 100644 --- a/dist/3.7.0/max/support/css/boxshadow.js +++ b/dist/3.7.1/max/support/css/boxshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/rem.js b/dist/3.7.1/max/support/css/rem.js similarity index 95% rename from dist/3.7.0/max/support/css/rem.js rename to dist/3.7.1/max/support/css/rem.js index 65fc9e67..fbd85155 100644 --- a/dist/3.7.0/max/support/css/rem.js +++ b/dist/3.7.1/max/support/css/rem.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/rgba.js b/dist/3.7.1/max/support/css/rgba.js similarity index 95% rename from dist/3.7.0/max/support/css/rgba.js rename to dist/3.7.1/max/support/css/rgba.js index 0861c79b..b5e83a0c 100644 --- a/dist/3.7.0/max/support/css/rgba.js +++ b/dist/3.7.1/max/support/css/rgba.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/textshadow.js b/dist/3.7.1/max/support/css/textshadow.js similarity index 93% rename from dist/3.7.0/max/support/css/textshadow.js rename to dist/3.7.1/max/support/css/textshadow.js index 1b5e2329..fa819de7 100644 --- a/dist/3.7.0/max/support/css/textshadow.js +++ b/dist/3.7.1/max/support/css/textshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/transform.js b/dist/3.7.1/max/support/css/transform.js similarity index 93% rename from dist/3.7.0/max/support/css/transform.js rename to dist/3.7.1/max/support/css/transform.js index faa946ff..72830267 100644 --- a/dist/3.7.0/max/support/css/transform.js +++ b/dist/3.7.1/max/support/css/transform.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/transform/2d.js b/dist/3.7.1/max/support/css/transform/2d.js similarity index 96% rename from dist/3.7.0/max/support/css/transform/2d.js rename to dist/3.7.1/max/support/css/transform/2d.js index 625b66cd..a1ca6a23 100644 --- a/dist/3.7.0/max/support/css/transform/2d.js +++ b/dist/3.7.1/max/support/css/transform/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/transform/3d.js b/dist/3.7.1/max/support/css/transform/3d.js similarity index 96% rename from dist/3.7.0/max/support/css/transform/3d.js rename to dist/3.7.1/max/support/css/transform/3d.js index ac708fdf..4e63c93a 100644 --- a/dist/3.7.0/max/support/css/transform/3d.js +++ b/dist/3.7.1/max/support/css/transform/3d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/css/transition.js b/dist/3.7.1/max/support/css/transition.js similarity index 93% rename from dist/3.7.0/max/support/css/transition.js rename to dist/3.7.1/max/support/css/transition.js index e8cc0e77..72ad5e67 100644 --- a/dist/3.7.0/max/support/css/transition.js +++ b/dist/3.7.1/max/support/css/transition.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/canvas.js b/dist/3.7.1/max/support/element/canvas.js similarity index 94% rename from dist/3.7.0/max/support/element/canvas.js rename to dist/3.7.1/max/support/element/canvas.js index 260e7205..1b280eb9 100644 --- a/dist/3.7.0/max/support/element/canvas.js +++ b/dist/3.7.1/max/support/element/canvas.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/canvas/todataurl.js b/dist/3.7.1/max/support/element/canvas/todataurl.js similarity index 95% rename from dist/3.7.0/max/support/element/canvas/todataurl.js rename to dist/3.7.1/max/support/element/canvas/todataurl.js index 50fd0515..3e0f476c 100644 --- a/dist/3.7.0/max/support/element/canvas/todataurl.js +++ b/dist/3.7.1/max/support/element/canvas/todataurl.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/canvas/todataurl/jpeg.js b/dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js similarity index 96% rename from dist/3.7.0/max/support/element/canvas/todataurl/jpeg.js rename to dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js index 7dc98840..e425edc3 100644 --- a/dist/3.7.0/max/support/element/canvas/todataurl/jpeg.js +++ b/dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/canvas/todataurl/png.js b/dist/3.7.1/max/support/element/canvas/todataurl/png.js similarity index 96% rename from dist/3.7.0/max/support/element/canvas/todataurl/png.js rename to dist/3.7.1/max/support/element/canvas/todataurl/png.js index 9879acfd..b552be3e 100644 --- a/dist/3.7.0/max/support/element/canvas/todataurl/png.js +++ b/dist/3.7.1/max/support/element/canvas/todataurl/png.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/canvas/todataurl/webp.js b/dist/3.7.1/max/support/element/canvas/todataurl/webp.js similarity index 96% rename from dist/3.7.0/max/support/element/canvas/todataurl/webp.js rename to dist/3.7.1/max/support/element/canvas/todataurl/webp.js index e27a5592..d35bf642 100644 --- a/dist/3.7.0/max/support/element/canvas/todataurl/webp.js +++ b/dist/3.7.1/max/support/element/canvas/todataurl/webp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/svg.js b/dist/3.7.1/max/support/element/svg.js similarity index 93% rename from dist/3.7.0/max/support/element/svg.js rename to dist/3.7.1/max/support/element/svg.js index 1d2e854c..09f1f040 100644 --- a/dist/3.7.0/max/support/element/svg.js +++ b/dist/3.7.1/max/support/element/svg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/video.js b/dist/3.7.1/max/support/element/video.js similarity index 94% rename from dist/3.7.0/max/support/element/video.js rename to dist/3.7.1/max/support/element/video.js index 1848a511..a8eeda60 100644 --- a/dist/3.7.0/max/support/element/video.js +++ b/dist/3.7.1/max/support/element/video.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/video/mp4.js b/dist/3.7.1/max/support/element/video/mp4.js similarity index 95% rename from dist/3.7.0/max/support/element/video/mp4.js rename to dist/3.7.1/max/support/element/video/mp4.js index 10ed370b..40a3f87a 100644 --- a/dist/3.7.0/max/support/element/video/mp4.js +++ b/dist/3.7.1/max/support/element/video/mp4.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/video/ogg.js b/dist/3.7.1/max/support/element/video/ogg.js similarity index 95% rename from dist/3.7.0/max/support/element/video/ogg.js rename to dist/3.7.1/max/support/element/video/ogg.js index 711c3989..901e80ac 100644 --- a/dist/3.7.0/max/support/element/video/ogg.js +++ b/dist/3.7.1/max/support/element/video/ogg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/support/element/video/webm.js b/dist/3.7.1/max/support/element/video/webm.js similarity index 95% rename from dist/3.7.0/max/support/element/video/webm.js rename to dist/3.7.1/max/support/element/video/webm.js index 87944412..e8fa8292 100644 --- a/dist/3.7.0/max/support/element/video/webm.js +++ b/dist/3.7.1/max/support/element/video/webm.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/transport.js b/dist/3.7.1/max/transport.js similarity index 96% rename from dist/3.7.0/max/transport.js rename to dist/3.7.1/max/transport.js index 5d5eed45..d6624f2f 100644 --- a/dist/3.7.0/max/transport.js +++ b/dist/3.7.1/max/transport.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/transport/jsonp.js b/dist/3.7.1/max/transport/jsonp.js similarity index 98% rename from dist/3.7.0/max/transport/jsonp.js rename to dist/3.7.1/max/transport/jsonp.js index 3baa8961..bd28a906 100644 --- a/dist/3.7.0/max/transport/jsonp.js +++ b/dist/3.7.1/max/transport/jsonp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/transport/xhr.js b/dist/3.7.1/max/transport/xhr.js similarity index 99% rename from dist/3.7.0/max/transport/xhr.js rename to dist/3.7.1/max/transport/xhr.js index 958483c6..c804864a 100644 --- a/dist/3.7.0/max/transport/xhr.js +++ b/dist/3.7.1/max/transport/xhr.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/url.js b/dist/3.7.1/max/url.js similarity index 97% rename from dist/3.7.0/max/url.js rename to dist/3.7.1/max/url.js index a007eacb..bc98d35e 100644 --- a/dist/3.7.0/max/url.js +++ b/dist/3.7.1/max/url.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/vector/2d.js b/dist/3.7.1/max/vector/2d.js similarity index 98% rename from dist/3.7.0/max/vector/2d.js rename to dist/3.7.1/max/vector/2d.js index ca950101..9b23bc4f 100644 --- a/dist/3.7.0/max/vector/2d.js +++ b/dist/3.7.1/max/vector/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/widget/image/adapt.js b/dist/3.7.1/max/widget/image/adapt.js similarity index 99% rename from dist/3.7.0/max/widget/image/adapt.js rename to dist/3.7.1/max/widget/image/adapt.js index a7b826a9..c26a2f87 100644 --- a/dist/3.7.0/max/widget/image/adapt.js +++ b/dist/3.7.1/max/widget/image/adapt.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/max/worker.js b/dist/3.7.1/max/worker.js similarity index 98% rename from dist/3.7.0/max/worker.js rename to dist/3.7.1/max/worker.js index 13327ccb..b7a2fa94 100644 --- a/dist/3.7.0/max/worker.js +++ b/dist/3.7.1/max/worker.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.0/min/asset.js b/dist/3.7.1/min/asset.js similarity index 96% rename from dist/3.7.0/min/asset.js rename to dist/3.7.1/min/asset.js index 9acc112a..4745a2d6 100644 --- a/dist/3.7.0/min/asset.js +++ b/dist/3.7.1/min/asset.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("asset",e,["./emitter","./transport/xhr","./promise/defer","./function/unique/uuid"])}(function(e,o,t,r,i,n,u){"use strict";function a(e){m.push(e),1===m.length&&c()}function c(){l(m[0]).then(function(){m.splice(0,1)&&m.length>=1&&c()},function(){m.splice(0,1)&&m.length>=1&&c()})}function l(e){var o=d[e._uuid],t=o.dfd,r=o.url;return v.get(r,null,f).then(function(i){var u=i.data,a=o.id,c=o.version,l=o.storage;e.emit("loaded",r,a,c,u),l&&(n.cookie=o.cookie+"="+encodeURIComponent(c)+"; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",localStorage[l.version]=c,localStorage[l.value]=u,e.emit("stored",r,a,c,u,l.version,l.value)),t.resolve(localStorage[l.value])},function(){t.reject()})}var s,d={},v=e["transport/xhr"],f={cache:!0},g=e["promise/defer"],p=e["function/unique/uuid"],h=new RegExp("/","g"),m=[];return s=e.emitter.extend({_uuid:null,_constructor:function(e,o,t){var r=this,i=p(),n=d[i]={dfd:new g,url:e};s._parent._constructor.call(r),r._uuid=i,o&&t&&(n.id=o,n.version=t,n.cookie=encodeURIComponent("qoopido[asset]["+o.replace(h,"][")+"]"),n.storage={version:"@"+o,value:"©"+o})},fetch:function(){var e=this,o=d[e._uuid],t=o.dfd,r=o.url,i=o.id,n=o.version,u=o.storage,c=u&&u.version&&localStorage[u.version];if(c&&c>=n){var l=localStorage[o.storage.value];e.emit("hit",r,i,n,l),t.resolve(l)}else e.emit("miss",r,i,n),a(e);return t.promise},clear:function(){var e=this,o=d[e._uuid],t=o.storage;return t&&(n.cookie=o.cookie+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",delete localStorage[t.version],delete localStorage[t.value],e.emit("cleared",o.url,o.id,o.version)),e}})},window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/base.js b/dist/3.7.1/min/base.js similarity index 96% rename from dist/3.7.0/min/base.js rename to dist/3.7.1/min/base.js index e6cae1fe..08e757c5 100644 --- a/dist/3.7.0/min/base.js +++ b/dist/3.7.1/min/base.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t,r,o,n,c){"use strict";function i(e,t,i,u){var s,f=e.split("/");return d[e]?d[e]:(s=function(){if(i)for(var s,g,y=f.slice(0,-1).join("/"),j=0;(s=i[j])!==c;j++)g=l.test(s),g&&(s=p(y+"/"+s)),!d[s]&&arguments[j]&&(d[s]=arguments[j]),g&&!d[s]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",s));return d[e]=t(d,a,f,r,o,n,c),u&&u(d[e]),d[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(s):"function"==typeof define&&define.amd?i?define(i,s):define(s):s()))}function u(e,t,r){i(e,t,r,function(t){d[e]=t.create()})}function p(e){for(var t;(t=e.replace(g,""))!==e;)e=t;return e.replace(y,"")}var s=t.qoopido||(t.qoopido={register:i,registerSingleton:u}),a=s.shared||(s.shared={}),d=s.modules||(s.modules={}),f=[],l=new RegExp("^\\.+\\/"),g=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),i("base",e,f)}(function(e,t,r,o,n,c,i){"use strict";function u(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==i;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function p(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=p,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,u(e)),t===!0&&(r.extend=p),r}}},this,navigator,window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/component/iterator.js b/dist/3.7.1/min/component/iterator.js similarity index 95% rename from dist/3.7.0/min/component/iterator.js rename to dist/3.7.1/min/component/iterator.js index 2b02b709..683e0e87 100644 --- a/dist/3.7.0/min/component/iterator.js +++ b/dist/3.7.1/min/component/iterator.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("component/iterator",t,["../emitter","../function/merge"])}(function(t,e,n,s,a,i,r){"use strict";var u,l={loop:!0,initial:0};return u=t.emitter.extend({_settings:null,_state:null,_constructor:function(e,n){var s=this;u._parent._constructor.call(s),s._settings=t["function/merge"]({},l,n||{}),s._state={length:null,index:null,item:null,data:null},e!==r&&null!==e&&s.setData(e)},getState:function(){var t=this;return t._state},setData:function(t){var e=this;return"object"==typeof t&&t.length&&(e._state.data=t,e._state.length=t.length,null!==e._settings.initial&&e.seek(e._settings.initial)),e},getData:function(){var t=this;return t._state.data},getLength:function(){var t=this;return t._state.length},getIndex:function(){var t=this;return t._state.index},getCurrent:function(){var t=this;return t._state.data[t._state.index]||null},getItem:function(t){var e=this;return e._state.data[t]||null},first:function(){var t=this;return t.seek(0)},last:function(){var t=this;return t.seek(t._state.length-1)},previous:function(){var t,e=this;return t=e._settings.loop===!0?(e._state.index-1)%e._state.length:e._state.index-1,t=e._settings.loop===!0&&0>t?e._state.length+t:t,e.seek(t)},next:function(){var t,e=this;return t=e._settings.loop===!0?(e._state.index+1)%e._state.length:e._state.index+1,e.seek(t)},seek:function(t){var e=this;return t=parseInt(t,10),t!==e._state.index&&e._state.data[t]!==r&&(e._state.index=t,e._state.item=e._state.data[t]),e}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/component/remux.js b/dist/3.7.1/min/component/remux.js similarity index 96% rename from dist/3.7.0/min/component/remux.js rename to dist/3.7.1/min/component/remux.js index 9d839cbd..f911f270 100644 --- a/dist/3.7.0/min/component/remux.js +++ b/dist/3.7.1/min/component/remux.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("component/remux",t,["../emitter","./sense"])}(function(t,n,e,i,o,a,u){"use strict";function r(t,n){var e=this;return t&&n&&(c.className=t,c.style.fontSize=n+"px",d.layout=t,d.fontsize=n,(h.fontsize!==d.fontsize||h.layout!==d.layout)&&(d.ratio.device=o.devicePixelRatio||1,d.ratio.fontsize=d.fontsize/f,d.ratio.total=d.ratio.device*d.ratio.fontsize,h.layout!==d.layout&&e.emit("layoutchanged",d),h.fontsize!==d.fontsize&&e.emit("fontsizechanged",d),e.emit("statechanged",d),h.fontsize=d.fontsize,h.layout=d.layout)),e}function s(n,e,i){var a=this;o.setTimeout(function(){t["component/sense"].create(n).on("matched",function(){r.call(a,e,i)})},0)}var l,c=a.getElementsByTagName("html")[0],f=16,d={fontsize:null,layout:null,ratio:{}},h={fontsize:null,layout:null};return l=t.emitter.extend({_constructor:function(){var t=this,n=parseInt(c.getAttribute("data-base"),10);l._parent._constructor.call(t),isNaN(n)===!1&&(f=n)},getState:function(){return d},getLayout:function(){return d.layout},getFontsize:function(){return d.fontsize},setLayout:function(t,n){var e=this;return r.call(e,t,n),e},addLayout:function(t,n){var e,i,o,a,u,r,l,c,d=this;arguments.length>1?(e={},e[t]=n):e=arguments[0];for(i in e)for(o=e[i],a=o.min;a<=o.max;a++)l=Math.round(o.width*(a/f)),c=Math.round(o.width*((a+1)/f))-1,s.call(d,"screen and (min-width: "+l+"px) and (max-width: "+c+"px )",i,a),u=!u||l=r.width?{width:c,fontsize:a,layout:i}:r;return s.call(d,"screen and (max-width: "+(u.width-1)+"px)",u.layout,u.fontsize),s.call(d,"screen and (min-width: "+(r.width+1)+"px)",r.layout,r.fontsize),d}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/component/sense.js b/dist/3.7.1/min/component/sense.js similarity index 89% rename from dist/3.7.0/min/component/sense.js rename to dist/3.7.1/min/component/sense.js index b6091acb..3cd8f168 100644 --- a/dist/3.7.0/min/component/sense.js +++ b/dist/3.7.1/min/component/sense.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){var e=["../emitter"];window.matchMedia||e.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",t,e)}(function(t,e,n,i,c,o,a){"use strict";function r(){var t=this,e=t.mql;t.emit(e.matches===!0?"matched":"dematched")}var m,s={};return m=t.emitter.extend({mql:null,_constructor:function(t){var e=this,n=e.mql=s[t]||(s[t]=c.matchMedia(t)),i=function(){r.call(e)};m._parent._constructor.call(e),n.addListener(i),c.setTimeout(i,0)},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/dom/collection.js b/dist/3.7.1/min/dom/collection.js similarity index 98% rename from dist/3.7.0/min/dom/collection.js rename to dist/3.7.1/min/dom/collection.js index c736eacd..fb55b30e 100644 --- a/dist/3.7.0/min/dom/collection.js +++ b/dist/3.7.1/min/dom/collection.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("dom/collection",e,["../base","./element"])}(function(e,t,n,r,l,o,s){"use strict";function i(){for(var e,t=this,n=t.elements,r=o.createDocumentFragment(),l=0;(e=n[l])!==s;l++)r.appendChild(e.element);return r}function c(e){for(var t,n=this,r=n.elements,l=Array.prototype.slice.call(arguments,1),o=0;(t=r[o])!==s;o++)t[e].apply(t,l);return n}function a(e,t){var n=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e[t].call(e,i.call(n)),e.dispose&&e.dispose()),n}var u=e["dom/element"],p=e["pool/module"]&&e["pool/module"].create(u,null,!0)||null;return e.base.extend({elements:null,_constructor:function(e,t,n){var r,l,i,c,a=this;if(a.elements=[],e&&"string"==typeof e)for(r=e.split(","),e=[],i=0;(l=r[i])!==s;i++)try{e=e.concat(Array.prototype.slice.call(o.querySelectorAll(l)))}catch(f){}for(i=0;(c=e[i])!==s;i++)a.elements.push(p&&p.obtain(c)||u.create(c));"object"==typeof t&&null!==t&&a.setAttributes(t),"object"==typeof n&&null!==n&&a.setStyles(n)},get:function(e){return this.elements[e]||null},each:function(e){for(var t,n=this,r=n.elements,l=0;(t=r[l])!==s;l++)e.call(t,l);return n},setAttribute:function(e,t){return c.call(this,"setAttribute",e,t)},setAttributes:function(e){return c.call(this,"setAttributes",e)},removeAttribute:function(e){return c.call(this,"removeAttribute",e)},removeAttributes:function(e){return c.call(this,"removeAttributes",e)},setStyle:function(e,t){return c.call(this,"setStyle",e,t)},setStyles:function(e){return c.call(this,"setStyles",e)},removeStyle:function(e){return c.call(this,"removeStyle",e)},removeStyles:function(e){return c.call(this,"removeStyles",e)},addClass:function(e){return c.call(this,"addClass",e)},removeClass:function(e){return c.call(this,"removeClass",e)},toggleClass:function(e){return c.call(this,"toggleClass",e)},prependTo:function(e){return a.call(this,e,"prepend")},appendTo:function(e){return a.call(this,e,"append")},insertBefore:function(e){var t=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e.element.parentNode.insertBefore(i.call(t),e.element),e.dispose&&e.dispose()),t},insertAfter:function(e){var t=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e.element.nextSibling?e.element.parentNode.insertBefore(i.call(t),e.element.nextSibling):e.element.appendChild(i.call(t)),e.dispose&&e.dispose()),t},replace:function(e){for(var t,n=this,r=n.elements,l=0;(t=r[l])!==s;l++)0===l?t.replace(e):t.insertAfter(r[l-1]);return n},hide:function(){return c.call(this,"hide")},show:function(){return c.call(this,"show")},remove:function(e){var t,n,r=this,l=r.elements;if(!e&&0!==e||(n=r.elements[e])===s)for(t=l.length-1;(n=l[t])!==s;t--)n.remove(),n.dispose&&n.dispose(),l.pop();else n.remove(),n.dispose&&n.dispose(),l.splice(e,1);return r},on:function(){return c.apply(this,["on"].concat(Array.prototype.slice.call(arguments)))},one:function(e){return c.apply(this,["one"].concat(Array.prototype.slice.call(arguments)))},off:function(e,t){return c.apply(this,["off"].concat(Array.prototype.slice.call(arguments)))},emit:function(e,t){return c.apply(this,["emit"].concat(Array.prototype.slice.call(arguments)))}})}); \ No newline at end of file diff --git a/dist/3.7.1/min/dom/element.js b/dist/3.7.1/min/dom/element.js new file mode 100644 index 00000000..4d5be497 --- /dev/null +++ b/dist/3.7.1/min/dom/element.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,i,o,s){"use strict";function l(e){var t,n,r;for(t in q)n=q[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function u(e,t,n){var r=this,i=l(e),s=o.createEvent(i.type);s[i.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function a(e){var t;if("string"==typeof e)try{b.test(e)===!0?(t=e.replace(b,"$1").toLowerCase(),e=o.createElement(t)):e=o.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(w)}function f(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var m="object",p="string",d=e["function/unique/uuid"],h=o.getElementsByTagName("head")[0],v="textContent"in o.createElement("a")?"textContent":"innerText",g="undefined"!=typeof h.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof h.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},b=new RegExp("^<(\\w+)\\s*/>$"),E=new RegExp("^[^-]+"),w=new RegExp(" +","g"),S=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,C=e["hook/css"],A={},q={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,i=this;return e=a(e),r=e._quid,r?i=A[r]:(r=e._quid=d(),i.type=e.tagName,i.element=e,i._listener={},A[r]=i),"object"==typeof t&&null!==t&&i.setAttributes(t),"object"==typeof n&&null!==n&&i.setStyles(n),i!==this&&this.dispose&&this.dispose(),i},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(E),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[v]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[v]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===p?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,n={},r=c(arguments),i=0;(e=r[i])!==s;i++)n[e]=t.element.getAttribute(e);return n},setAttribute:function(e,t){var n=this;return e&&typeof e===p&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===m&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===p&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,n=c(arguments),r=0;(e=n[r])!==s;r++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===p?C.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,n={},r=c(arguments),i=0;(e=r[i])!==s;i++)n[e]=C.process("get",t.element,e);return n},setStyle:function(e,t){var n=this;return e&&typeof e===p&&C.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===m&&!e.length)for(t in e)C.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===p&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,n=c(arguments),r=0;(e=n[r])!==s;r++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=y.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||a(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||a(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||a(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,i=r.element,o=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],a=l._quid||(l._quid=d()),c=0;for(t=t.split(" ");(n=t[c])!==s;c++){var m=n+"-"+a,p=function(t){var n;t=S&&S.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=d(),(!o||f(t,o))&&l.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,u.call(r,n))),t.dispose&&t.dispose()};p.type=n,r._listener[m]=p,i.addEventListener(n,p)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=(arguments.length>3?arguments[3]:arguments[2])!==!1,o=function(n){t.off(i===!0?n.type:e,o),r.call(this,n,n.originalEvent.detail)};return r._quid=o._quid=d(),n?t.on(e,n,o):t.on(e,o),t},off:function(e,t){var n,r,i,o=this,l=o.element,u=0;for(e=e.split(" ");(n=e[u])!==s;u++)r=t._quid&&n+"-"+t._quid||null,i=r&&o._listener[r]||null,i?(l.removeEventListener(n,i),delete o._listener[r]):l.removeEventListener(n,t);return o},emit:function(e,t){var n=this;return u.call(n,e,t),n}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/dom/element/emerge.js b/dist/3.7.1/min/dom/element/emerge.js similarity index 68% rename from dist/3.7.0/min/dom/element/emerge.js rename to dist/3.7.1/min/dom/element/emerge.js index 9fe3d027..844f4cbc 100644 --- a/dist/3.7.0/min/dom/element/emerge.js +++ b/dist/3.7.1/min/dom/element/emerge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(t){window.qoopido.register("dom/element/emerge",t,["../element","../../function/merge","../../function/unique/uuid"])}(function(t,e,i,o,r,n,l){"use strict";function p(t){var e,i=d[t];for(e in i)"length"!==e&&g.call(i[e]);0===i.length&&(r.element.clearInterval(c[t]),delete c[t])}function s(){a.left=0,a.top=0,a.right=r.innerWidth||m.clientWidth,a.bottom=r.innerHeight||m.clientHeight}function h(){var t=this,e=t._settings.threshold,i=e!==l?e:m.clientWidth*t._settings.auto,o=e!==l?e:m.clientHeight*t._settings.auto;t._viewport.left=a.left-i,t._viewport.top=a.top-o,t._viewport.right=a.right+i,t._viewport.bottom=a.bottom+o}function g(){var t,e=this,i=!1,o=2;!e.isVisible()||"hidden"===e.getStyle("visibility")&&e._settings.visibility!==!1||(t=e.element.getBoundingClientRect(),(t.bottom>=e._viewport.top&&t.bottom<=e._viewport.bottom||t.top>=e._viewport.top&&t.top<=e._viewport.bottom||e._viewport.bottom>=t.top&&e._viewport.bottom<=t.bottom||e._viewport.top>=t.top&&e._viewport.top<=t.bottom)&&(t.left>=e._viewport.left&&t.left<=e._viewport.right||t.right>=e._viewport.left&&t.right<=e._viewport.right||e._viewport.left>=t.left&&e._viewport.left<=t.right||e._viewport.right>=t.left&&e._viewport.right<=t.right)&&((0===e._settings.threshold||(t.bottom>=a.top&&t.bottom<=a.bottom||t.top>=a.top&&t.top<=a.bottom||a.bottom>=t.top&&a.bottom<=t.bottom||a.top>=t.top&&a.top<=t.bottom)&&(t.left>=a.left&&t.left<=a.right||t.right>=a.left&&t.right<=a.right||a.left>=t.left&&a.left<=t.right||a.right>=t.left&&a.right<=t.right))&&(o=1),i=!0)),(i!==e._state||i===!0&&o!==e._priority)&&v.call(e,i,o)}function v(t,e){var i=this;i._state=t,i._priority=e,i._settings.recur!==!0&&i.remove(),t===!0?i.emit(f,e):i.emit(w)}var _,u={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=r.document.documentElement,a={},c={},d={},f="emerged",w="demerged",b="resize orientationchange";if(r=t["dom/element"].create(r),"CSS1Compat"!==n.compatMode)throw"[Qoopido.js] Not in standards mode";return _=t["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(e,i){var o=this;_._parent._constructor.call(o,e),i=t["function/merge"]({},u,i||{}),"auto"===i.threshold&&delete i.threshold,c[i.interval]===l&&(d[i.interval]=d[i.interval]||{length:0},c[i.interval]=r.element.setInterval(function(){p(i.interval)},i.interval)),o._quid=t["function/unique/uuid"](),o._viewport={},o._settings=i,o._state=!1,o._priority=2,d[i.interval][o._quid]=o,d[i.interval].length++,r.on(b,function(){h.call(o)}),h.call(o)},remove:function(){var t=this;delete d[t._settings.interval][t._quid],d[t._settings.interval].length--}}),r.on(b,s),s(),_}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(t){window.qoopido.register("dom/element/emerge",t,["../element","../../function/merge","../../function/unique/uuid"])}(function(t,e,i,o,r,n,l){"use strict";function p(t){var e,i=d[t];for(e in i)"length"!==e&&g.call(i[e]);0===i.length&&(r.element.clearInterval(c[t]),delete c[t])}function s(){a.left=0,a.top=0,a.right=r.innerWidth||m.clientWidth,a.bottom=r.innerHeight||m.clientHeight}function h(){var t=this,e=t._settings.threshold,i=e!==l?e:m.clientWidth*t._settings.auto,o=e!==l?e:m.clientHeight*t._settings.auto;t._viewport.left=a.left-i,t._viewport.top=a.top-o,t._viewport.right=a.right+i,t._viewport.bottom=a.bottom+o}function g(){var t,e=this,i=!1,o=2;!e.isVisible()||"hidden"===e.getStyle("visibility")&&e._settings.visibility!==!1||(t=e.element.getBoundingClientRect(),(t.bottom>=e._viewport.top&&t.bottom<=e._viewport.bottom||t.top>=e._viewport.top&&t.top<=e._viewport.bottom||e._viewport.bottom>=t.top&&e._viewport.bottom<=t.bottom||e._viewport.top>=t.top&&e._viewport.top<=t.bottom)&&(t.left>=e._viewport.left&&t.left<=e._viewport.right||t.right>=e._viewport.left&&t.right<=e._viewport.right||e._viewport.left>=t.left&&e._viewport.left<=t.right||e._viewport.right>=t.left&&e._viewport.right<=t.right)&&((0===e._settings.threshold||(t.bottom>=a.top&&t.bottom<=a.bottom||t.top>=a.top&&t.top<=a.bottom||a.bottom>=t.top&&a.bottom<=t.bottom||a.top>=t.top&&a.top<=t.bottom)&&(t.left>=a.left&&t.left<=a.right||t.right>=a.left&&t.right<=a.right||a.left>=t.left&&a.left<=t.right||a.right>=t.left&&a.right<=t.right))&&(o=1),i=!0)),(i!==e._state||i===!0&&o!==e._priority)&&u.call(e,i,o)}function u(t,e){var i=this;i._state=t,i._priority=e,i._settings.recur!==!0&&i.remove(),t===!0?i.emit(f,e):i.emit(w)}var v,_={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=r.document.documentElement,a={},c={},d={},f="emerged",w="demerged",b="resize orientationchange";if(r=t["dom/element"].create(r),"CSS1Compat"!==n.compatMode)throw"[Qoopido.js] Not in standards mode";return v=t["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(e,i){var o=v._parent._constructor.call(this,e);return i=t["function/merge"]({},_,i||{}),"auto"===i.threshold&&delete i.threshold,c[i.interval]===l&&(d[i.interval]=d[i.interval]||{length:0},c[i.interval]=r.element.setInterval(function(){p(i.interval)},i.interval)),o._quid=t["function/unique/uuid"](),o._viewport={},o._settings=i,o._state=!1,o._priority=2,d[i.interval][o._quid]=o,d[i.interval].length++,r.on(b,function(){h.call(o)}),h.call(o),o},remove:function(){var t=this;delete d[t._settings.interval][t._quid],d[t._settings.interval].length--}}),r.on(b,s),s(),v}); \ No newline at end of file diff --git a/dist/3.7.0/min/dom/element/lazyimage.js b/dist/3.7.1/min/dom/element/lazyimage.js similarity index 69% rename from dist/3.7.0/min/dom/element/lazyimage.js rename to dist/3.7.1/min/dom/element/lazyimage.js index 7ac6b977..f9697a4e 100644 --- a/dist/3.7.0/min/dom/element/lazyimage.js +++ b/dist/3.7.1/min/dom/element/lazyimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,a){"use strict";function u(){var e=this,t=e._settings.attribute;d+=1,e.emit(l).one(h,function(t){e.emit(t.type===v?s:f),d-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var c,m={interval:50,threshold:"auto",attribute:"data-lazyimage"},d=0,l="requested",s="loaded",f="failed",g="emerged",v="load",b="error",h="".concat(v," ",b);return c=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=this;c._parent._constructor.call(n,t,e["function/merge"]({},m,r||{})),n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))})}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,a){"use strict";function u(){var e=this,t=e._settings.attribute;d+=1,e.emit(l).one(h,function(t){e.emit(t.type===v?s:f),d-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var c,m={interval:50,threshold:"auto",attribute:"data-lazyimage"},d=0,l="requested",s="loaded",f="failed",g="emerged",v="load",b="error",h="".concat(v," ",b);return c=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=c._parent._constructor.call(this,t,e["function/merge"]({},m,r||{}));n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))})}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/dom/element/shrinkimage.js b/dist/3.7.1/min/dom/element/shrinkimage.js similarity index 73% rename from dist/3.7.0/min/dom/element/shrinkimage.js rename to dist/3.7.1/min/dom/element/shrinkimage.js index 33f4003d..8ff72895 100644 --- a/dist/3.7.0/min/dom/element/shrinkimage.js +++ b/dist/3.7.1/min/dom/element/shrinkimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(t){var e=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",t,e)}(function(t,e,n,i,a,r,o){"use strict";function l(e,n){e=t.url.resolve(v.exec(e)[1]),n=n===!0;var i=this,a=t["function/merge"]({},i._settings,t.url.getParameter(e)),r=a.target||(e=e.split("?")[0]).replace(x,"".concat(".q",a.quality,".shrunk"));n||i.removeAttribute(i._settings.attribute).hide(),_.then(function(){if(a.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof w[r]){case"object":w[r].one(E,function(t){c.call(i,t.data,n)}),i.emit(k);break;case"string":c.call(i,w[r],n);break;default:w[r]=h.create(r,n?null:i.element).one(A,function(t,a){t.type===E?(w[r]=a,i.emit(I),c.call(i,a,n)):(w[r]=e,c.call(i,e,n))},!1)}})["catch"](function(){w[r]=e,c.call(i,e,n)})}function c(t,e){var n=this;e?(n.setStyle("backgroundImage","url("+t+")"),n.emit(E)):n.one(R,function(){n.show(),n.emit(E)}).setAttribute("src",t)}function s(t){var e=this;t.get(e._url).then(function(t){try{var n=g.parse(t.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),u.call(e,n)}catch(i){e.emit(q)}},function(){e.emit(q)})}function u(t){var e,n,i=this,a=function(a){return e=b&&b.obtain("canvas")||r.createElement("canvas"),e.style.display="none",e.width=t.width,e.height=t.height,n=e.getContext("2d"),n.clearRect(0,0,t.width,t.height),n.drawImage(i.element,0,0,t.width,t.height),i.one(R,o).setAttribute("src",t.alpha),p(a)},o=function(a){var r;return n.globalCompositeOperation="xor",n.drawImage(i.element,0,0,t.width,t.height),r=e.toDataURL("image/png"),l(),i.emit(E,r),p(a)},l=function(){e&&e.dispose&&e.dispose(),i.element.dispose&&i.element.dispose()};i.one(D,function(t){t.type===R?a.call(this,t):(l(),i.emit(q))},!1).setAttribute("src",t.main)}function p(t){return t.preventDefault(),t.stopPropagation(),!1}var d,h,g=a.JSON,m=n.pop(),f={attribute:"data-"+m,quality:80,debug:!1},b=e.pool&&e.pool.dom||null,w={},y=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),v=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),_=t.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),k="queued",I="cached",E="loaded",q="failed",A="".concat(E," ",q),R="load",S="error",D="".concat(R," ",S);return d=t["dom/element"].extend({_constructor:function(e,n){var i,a,r=this;d._parent._constructor.call(r,e),r._settings=n=t["function/merge"]({},f,n),i=r.getAttribute(n.attribute),a=r.getStyle("backgroundImage"),"IMG"===r.type&&l.call(r,i),"none"!==a&&y.test(a)&&l.call(r,a,!0)},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),h=t["dom/element"].extend({_url:null,_constructor:function(e,n){var i=this;n||(n=b&&b.obtain("img")||r.createElement("img")),h._parent._constructor.call(i,n),i._url=e,s.call(i,t["transport/xhr"])}}),d},window); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(t){var e=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",t,e)}(function(t,e,n,i,a,r,o){"use strict";function l(e,n){e=t.url.resolve(v.exec(e)[1]),n=n===!0;var i=this,a=t["function/merge"]({},i._settings,t.url.getParameter(e)),r=a.target||(e=e.split("?")[0]).replace(x,"".concat(".q",a.quality,".shrunk"));n||i.removeAttribute(i._settings.attribute).hide(),_.then(function(){if(a.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof w[r]){case"object":w[r].one(E,function(t){c.call(i,t.data,n)}),i.emit(k);break;case"string":c.call(i,w[r],n);break;default:w[r]=h.create(r,n?null:i.element).one(A,function(t,a){t.type===E?(w[r]=a,i.emit(I),c.call(i,a,n)):(w[r]=e,c.call(i,e,n))},!1)}})["catch"](function(){w[r]=e,c.call(i,e,n)})}function c(t,e){var n=this;e?(n.setStyle("backgroundImage","url("+t+")"),n.emit(E)):n.one(R,function(){n.show(),n.emit(E)}).setAttribute("src",t)}function u(t){var e=this;t.get(e._url).then(function(t){try{var n=g.parse(t.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),s.call(e,n)}catch(i){e.emit(q)}},function(){e.emit(q)})}function s(t){var e,n,i=this,a=function(a){return e=b&&b.obtain("canvas")||r.createElement("canvas"),e.style.display="none",e.width=t.width,e.height=t.height,n=e.getContext("2d"),n.clearRect(0,0,t.width,t.height),n.drawImage(i.element,0,0,t.width,t.height),i.one(R,o).setAttribute("src",t.alpha),p(a)},o=function(a){var r;return n.globalCompositeOperation="xor",n.drawImage(i.element,0,0,t.width,t.height),r=e.toDataURL("image/png"),l(),i.emit(E,r),p(a)},l=function(){e&&e.dispose&&e.dispose(),i.element.dispose&&i.element.dispose()};i.one(D,function(t){t.type===R?a.call(this,t):(l(),i.emit(q))},!1).setAttribute("src",t.main)}function p(t){return t.preventDefault(),t.stopPropagation(),!1}var d,h,g=a.JSON,m=n.pop(),f={attribute:"data-"+m,quality:80,debug:!1},b=e.pool&&e.pool.dom||null,w={},y=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),v=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),_=t.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),k="queued",I="cached",E="loaded",q="failed",A="".concat(E," ",q),R="load",S="error",D="".concat(R," ",S);return d=t["dom/element"].extend({_constructor:function(e,n){var i,a,r;return i=d._parent._constructor.call(this,e),i._settings=n=t["function/merge"]({},f,n),a=i.getAttribute(n.attribute),r=i.getStyle("backgroundImage"),"IMG"===i.type&&l.call(i,a),"none"!==r&&y.test(r)&&l.call(i,r,!0),i},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),h=t["dom/element"].extend({_url:null,_constructor:function(e,n){var i;return n||(n=b&&b.obtain("img")||r.createElement("img")),i=h._parent._constructor.call(this,n),i._url=e,u.call(i,t["transport/xhr"]),i}}),d},window); \ No newline at end of file diff --git a/dist/3.7.0/min/dom/event.js b/dist/3.7.1/min/dom/event.js similarity index 94% rename from dist/3.7.0/min/dom/event.js rename to dist/3.7.1/min/dom/event.js index 494a47c9..67890bdc 100644 --- a/dist/3.7.0/min/dom/event.js +++ b/dist/3.7.1/min/dom/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,o,i,n,a,r){"use strict";var p=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){p.process(this,e)},_dispose:function(){for(var e,t=this,o=0;(e=t._properties[o])!==r;o++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/emitter.js b/dist/3.7.1/min/emitter.js similarity index 95% rename from dist/3.7.0/min/emitter.js rename to dist/3.7.1/min/emitter.js index b6f29694..463b8e4b 100644 --- a/dist/3.7.0/min/emitter.js +++ b/dist/3.7.1/min/emitter.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,n,r,i,s,l){"use strict";function o(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var r,i=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+n,i]),r=e._mapped[t].apply(e,i),e.emit.apply(e,["post"+n,i,r]),r}}var p=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&p.test(e)===!1&&(t[e]=o(t,e))},on:function(e,t){var n,r=this,i=0;for(e=e.split(" ");(n=e[i])!==l;i++)(r._listener[n]=r._listener[n]||[]).push(t);return r},one:function(e,t,n){n=n!==!1;var r=this;return r.on(e,function i(s){r.off(n===!0?s:e,i),t.apply(this,arguments)}),r},off:function(e,t){var n,r,i,s=this,o=0;if(e)for(e=e.split(" ");(n=e[o])!==l;o++)if(s._listener[n]=s._listener[n]||[],t)for(r=0;(i=s._listener[n][r])!==l;r++)i===t&&(s._listener[n].splice(r,1),r--);else s._listener[n].length=0;else for(n in s._listener)s._listener[n].length=0;return s},emit:function(e){var t,n=this,r=0;if(e!==l){for(n._listener[e]=n._listener[e]||[],n._temp=n._listener[e].slice();(t=n._temp[r])!==l;r++)t.apply(n,arguments);n._temp.length=0}return n}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/function/load/css.js b/dist/3.7.1/min/function/load/css.js similarity index 86% rename from dist/3.7.0/min/function/load/css.js rename to dist/3.7.1/min/function/load/css.js index 7c78f1ee..d218b2c1 100644 --- a/dist/3.7.0/min/function/load/css.js +++ b/dist/3.7.1/min/function/load/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("function/load/css",e)}(function(e,t,n,i,o,r,s){"use strict";var a={};return function(e,t){t=t||"all";var n,i=e+":"+t,s=a[i];return s||(s=a[i]=r.createElement("link"),n=r.getElementsByTagName("script")[0],s.rel="stylesheet",s.media="only x",s.href=e,n.parentNode.insertBefore(s,n),o.setTimeout(function(){s.media=t})),s}},window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/function/merge.js b/dist/3.7.1/min/function/merge.js similarity index 86% rename from dist/3.7.0/min/function/merge.js rename to dist/3.7.1/min/function/merge.js index cf0ca453..85cbeafe 100644 --- a/dist/3.7.0/min/function/merge.js +++ b/dist/3.7.1/min/function/merge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("function/merge",t)}(function(t,e,n,o,r,u,f){"use strict";return function i(){var t,e,n,o,r,u=arguments[0];for(t=1;(e=arguments[t])!==f;t++)for(n in e)o=u[n],r=e[n],r!==f&&(null!==r&&"object"==typeof r?(o=r.length!==f?o&&"object"==typeof o&&o.length!==f?o:[]:o&&"object"==typeof o&&o.length===f?o:{},u[n]=i(o,r)):u[n]=r);return u}}); \ No newline at end of file diff --git a/dist/3.7.0/min/function/proximity.js b/dist/3.7.1/min/function/proximity.js similarity index 89% rename from dist/3.7.0/min/function/proximity.js rename to dist/3.7.1/min/function/proximity.js index 25148b53..96692526 100644 --- a/dist/3.7.0/min/function/proximity.js +++ b/dist/3.7.1/min/function/proximity.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("function/proximity",t)}(function(t,a,o,r,e,y,x){"use strict";return function(t,a){var o=!1;return t="object"==typeof t&&null!==t?t:{x:x,y:x},a="object"==typeof a&&null!==a?a:{x:x,y:x},t.x!==x&&t.y!==x&&a.x!==x&&a.y!==x&&(t.x=parseFloat(t.x),t.y=parseFloat(t.y),a.x=parseFloat(a.x),a.y=parseFloat(a.y),o={x:parseFloat(Math.abs(a.x-t.x)),y:parseFloat(Math.abs(a.y-t.y)),total:parseFloat(Math.sqrt(Math.pow(a.x-t.x,2)+Math.pow(a.y-t.y,2)))}),o}}); \ No newline at end of file diff --git a/dist/3.7.0/min/function/unique/string.js b/dist/3.7.1/min/function/unique/string.js similarity index 86% rename from dist/3.7.0/min/function/unique/string.js rename to dist/3.7.1/min/function/unique/string.js index 4612f73f..199e2b10 100644 --- a/dist/3.7.0/min/function/unique/string.js +++ b/dist/3.7.1/min/function/unique/string.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("function/unique/string",n)}(function(n,t,r,e,i,o,u){"use strict";function f(n){var t="",r=0;for(n=parseInt(n,10)||12;n>r;r++)t+=s[parseInt(Math.random()*(s.length-1),10)];return t}var a={},s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(n){var t;do t=f(n);while("undefined"!=typeof a[t]);return a[t]=!0,t}}); \ No newline at end of file diff --git a/dist/3.7.0/min/function/unique/uuid.js b/dist/3.7.1/min/function/unique/uuid.js similarity index 86% rename from dist/3.7.0/min/function/unique/uuid.js rename to dist/3.7.1/min/function/unique/uuid.js index c7e1666b..9f354218 100644 --- a/dist/3.7.0/min/function/unique/uuid.js +++ b/dist/3.7.1/min/function/unique/uuid.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(x){window.qoopido.register("function/unique/uuid",x)}(function(x,n,r,t,e,u,i){"use strict";function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(f,function(x){var n=16*Math.random()|0,r="x"===x?n:3&n|8;return r.toString(16)})}var c={},f=new RegExp("[xy]","g");return function(){var x;do x=o();while("undefined"!=typeof c[x]);return c[x]=!0,x}}); \ No newline at end of file diff --git a/dist/3.7.0/min/hook/css.js b/dist/3.7.1/min/hook/css.js similarity index 93% rename from dist/3.7.0/min/hook/css.js rename to dist/3.7.1/min/hook/css.js index 9bf96213..cff60026 100644 --- a/dist/3.7.0/min/hook/css.js +++ b/dist/3.7.1/min/hook/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){var e=["../base","../support"];window.getComputedStyle||e.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",t,e)}(function(t,e,o,n,r,i,l){"use strict";var u=t.support,s=r.getComputedStyle||t["polyfill/window/getcomputedstyle"],p={general:{get:function(t,e){return s(t,null).getPropertyValue(e[0])},set:function(t,e,o){t.style[e[1]]=o}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(t,e,o){return o=s(t,null).getPropertyValue("filter").toString().match(this.regex),o=o?o[1]/100:1},set:function(t,e,o){var n=t.style;n.zoom=1,n.filter="alpha(opacity="+(100*o+.5>>0)+")"}}};return t.base.extend({add:function(t,e){return t&&e&&p[t]&&(p[t]=e),this},get:function(t){return t&&p[t]?p[t]:null},process:function(t,e,o,n){var r;return o=u.getCssProperty(o,e)||null,o?((r=this.get(o[1]))&&r[t]||this.get("general")[t])(e,o,n):void 0}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/hook/event.js b/dist/3.7.1/min/hook/event.js similarity index 96% rename from dist/3.7.0/min/hook/event.js rename to dist/3.7.1/min/hook/event.js index bf5a47b8..e3879b1e 100644 --- a/dist/3.7.0/min/hook/event.js +++ b/dist/3.7.1/min/hook/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,a,c){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==c;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var i={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||a,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===c||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&i[e]&&(i[e]=t),this},get:function(e){return e&&i[e]?i[e]:null},process:function(e,t){var r,n,o;for(r in i)n=i[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/jquery/extension/selector.js b/dist/3.7.1/min/jquery/extension/selector.js similarity index 95% rename from dist/3.7.0/min/jquery/extension/selector.js rename to dist/3.7.1/min/jquery/extension/selector.js index 4ee03f06..8ea283b1 100644 --- a/dist/3.7.0/min/jquery/extension/selector.js +++ b/dist/3.7.1/min/jquery/extension/selector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("jquery/extension/selector",t,["jquery"])}(function(t,e,r,n,o,i,f){"use strict";var u=t.jquery||o.jQuery,s=u(o),h=u(i);return u.extend(u.expr[":"],{loaded:function(t){return u(t).data("loaded")},scrollable:function(t,e,r){return"auto"===u(t).css("overflow")},width:function(t,e,r){return r[3]&&/^(<|>)\d+$/.test(r[3])?">"===r[3].substr(0,1)?u(t).width()>r[3].substr(1):u(t).width())\d+$/.test(r[3])?">"===r[3].substr(0,1)?u(t).height()>r[3].substr(1):u(t).height()r.offset().left+r.width()):!1},external:function(t){return t.href?t.hostname&&t.hostname!==o.location.hostname:!1},inView:function(t){t=u(t);var e=s,r=h,n=t.offset(),o={top:r.scrollTop(),height:r.scrollLeft()};return!(n.top>e.height()+o.top||n.top+t.height()e.width()+o.left||n.left+t.width()r.width()*r.height()):!1},isBold:function(t){return"700"===u(t).css("fontWeight")},color:function(t,e,r){return r[3]?u(t).css("color")===r[3]:!1},hasId:function(t){return t=u(t),t.attr("id")!==f&&""!==t.attr("id")}}),u}); \ No newline at end of file diff --git a/dist/3.7.0/min/jquery/function/prefetch.js b/dist/3.7.1/min/jquery/function/prefetch.js similarity index 88% rename from dist/3.7.0/min/jquery/function/prefetch.js rename to dist/3.7.1/min/jquery/function/prefetch.js index 43f8699a..b63e5d4e 100644 --- a/dist/3.7.0/min/jquery/function/prefetch.js +++ b/dist/3.7.1/min/jquery/function/prefetch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/function/prefetch",e,["jquery"])}(function(e,r,n,t,i,u,f){"use strict";var o=e.jquery||i.jQuery,c=o("head"),p=[];return o.prefetch=function(){var e=o.unique(o('a[rel="prefetch"]').removeAttr("rel").map(function(){return o(this).attr("href")}));e.each(function(e,r){-1===o.inArray(r,p)&&(o("",{rel:"prefetch",href:r}).appendTo(c),o("",{rel:"prerender",href:r}).appendTo(c))})},o}); \ No newline at end of file diff --git a/dist/3.7.0/min/jquery/plugin/emerge.js b/dist/3.7.1/min/jquery/plugin/emerge.js similarity index 89% rename from dist/3.7.0/min/jquery/plugin/emerge.js rename to dist/3.7.1/min/jquery/plugin/emerge.js index 4839e62b..27e7a3e7 100644 --- a/dist/3.7.0/min/jquery/plugin/emerge.js +++ b/dist/3.7.1/min/jquery/plugin/emerge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/plugins/emerge",e,["../../dom/element/emerge","jquery"])}(function(e,r,t,n,o,c,i){"use strict";var u,g=e.jquery||o.jQuery,a=t.pop(),d="emerged",m="demerged",s="".concat(d,".",a),f="".concat(m,".",a);return g.fn[a]=function(e){return this.each(function(){u.create(this,e)})},u=e["dom/element/emerge"].extend({_constructor:function(e,r){var t=this,n=g(e);u._parent._constructor.call(t,e,r),t.on(d,function(e){n.trigger(s,{priority:e.data})}),t.on(m,function(){n.trigger(f)})}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/jquery/plugin/lazyimage.js b/dist/3.7.1/min/jquery/plugin/lazyimage.js similarity index 89% rename from dist/3.7.0/min/jquery/plugin/lazyimage.js rename to dist/3.7.1/min/jquery/plugin/lazyimage.js index 3a99e4b2..04458c70 100644 --- a/dist/3.7.0/min/jquery/plugin/lazyimage.js +++ b/dist/3.7.1/min/jquery/plugin/lazyimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/plugins/lazyimage",e,["../../dom/element/lazyimage","jquery"])}(function(e,n,t,r,o,i,c){"use strict";var u,a=e.jquery||o.jQuery,s=t.pop(),g="requested",l="loaded",d="".concat(g,".",s),f="".concat(l,".",s);return a.fn[s]=function(e){return this.each(function(){u.create(this,e)})},u=e["dom/element/lazyimage"].extend({_constructor:function(e,n){var t=this,r=a(e);u._parent._constructor.call(t,e,n),t.on(g,function(){r.trigger(d)}),t.on(l,function(){r.trigger(f)})}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/jquery/plugin/shrinkimage.js b/dist/3.7.1/min/jquery/plugin/shrinkimage.js similarity index 91% rename from dist/3.7.0/min/jquery/plugin/shrinkimage.js rename to dist/3.7.1/min/jquery/plugin/shrinkimage.js index 9987ba6f..a5e1faba 100644 --- a/dist/3.7.0/min/jquery/plugin/shrinkimage.js +++ b/dist/3.7.1/min/jquery/plugin/shrinkimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("jquery/plugins/shrinkimage",n,["../../dom/element/shrinkimage","jquery"])}(function(n,t,e,r,o,i,c){"use strict";var u,a=n.jquery||o.jQuery,g=e.pop(),s="queued",f="cached",d="loaded",h="failed",l="".concat(s,".",g),m="".concat(f,".",g),p="".concat(d,".",g),q="".concat(h,".",g);return a.fn[g]=function(n){return this.each(function(){u.create(this,n)})},u=n["dom/element/shrinkimage"].extend({_constructor:function(n,t){var e=this,r=a(n);u._parent._constructor.call(e,n,t),e.on(s,function(){r.trigger(l)}),e.on(f,function(){r.trigger(m)}),e.on(d,function(){r.trigger(p)}),e.on(h,function(){r.trigger(q)})}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/particle.js b/dist/3.7.1/min/particle.js similarity index 94% rename from dist/3.7.0/min/particle.js rename to dist/3.7.1/min/particle.js index 1fe5cc63..2b9c063d 100644 --- a/dist/3.7.0/min/particle.js +++ b/dist/3.7.1/min/particle.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("particle",t,["./emitter","./pool/module","./vector/2d"])}(function(t,i,o,e,s,c,n){"use strict";var l,a=t["pool/module"].create(t["vector/2d"],null,!0);return l=t.emitter.extend({_velocity:null,_acceleration:null,position:null,velocity:null,acceleration:null,_constructor:function(t,i){this._velocity=a.obtain(0,0),this._acceleration=a.obtain(0,0),this.position=a.obtain(t,i),this.velocity=a.obtain(0,0),this.acceleration=[],l._parent._constructor.call(this)},_obtain:function(t,i){this.position.x=t||0,this.position.y=i||0,this.velocity.x=0,this.velocity.y=0,this.acceleration.length=0},_destroy:function(){this._velocity=this._velocity.dispose(),this._acceleration=this._acceleration.dispose(),this.position=this.position.dispose(),this.velocity=this.velocity.dispose()},update:function(t){t="undefined"!=typeof t?parseFloat(t):1;for(var i,o=0;(i=this.acceleration[o])!==n;o++)this.velocity.add(i);this._velocity.x=this.velocity.x*t,this._velocity.y=this.velocity.y*t,this.position.add(this._velocity)}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/array/indexof.js b/dist/3.7.1/min/polyfill/array/indexof.js similarity index 82% rename from dist/3.7.0/min/polyfill/array/indexof.js rename to dist/3.7.1/min/polyfill/array/indexof.js index 649cc403..e9583b4a 100644 --- a/dist/3.7.0/min/polyfill/array/indexof.js +++ b/dist/3.7.1/min/polyfill/array/indexof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("polyfill/array/indexof",r)}(function(r,o,t,i,n,e,f){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(r){for(var o=this,t=0;o[t]!==f;++t)if(o[t]===r)return t;return-1}),Array.prototype.indexOf}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/document/getelementsbyclassname.js b/dist/3.7.1/min/polyfill/document/getelementsbyclassname.js similarity index 86% rename from dist/3.7.0/min/polyfill/document/getelementsbyclassname.js rename to dist/3.7.1/min/polyfill/document/getelementsbyclassname.js index 8903d0f1..a08f6ddd 100644 --- a/dist/3.7.0/min/polyfill/document/getelementsbyclassname.js +++ b/dist/3.7.1/min/polyfill/document/getelementsbyclassname.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Object.defineProperty||t.push("./queryselectorall"),window.qoopido.register("polyfill/document/getelementsbyclassname",e,t)}(function(e,t,l,n,s,r,a){"use strict";if(!r.getElementsByClassName){var o=new RegExp("^|\\s+","g");r.getElementsByClassName=function(e){return e=String(e).replace(o,"."),r.querySelectorAll(e)}}return r.getElementsByClassName}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/document/queryselector.js b/dist/3.7.1/min/polyfill/document/queryselector.js similarity index 84% rename from dist/3.7.0/min/polyfill/document/queryselector.js rename to dist/3.7.1/min/polyfill/document/queryselector.js index 5cae32d9..3d916f46 100644 --- a/dist/3.7.0/min/polyfill/document/queryselector.js +++ b/dist/3.7.1/min/polyfill/document/queryselector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var r=[];document.querySelectorAll||r.push("./queryselectorall"),window.qoopido.register("polyfill/document/queryselector",e,r)}(function(e,r,l,t,o,u,c){"use strict";return u.querySelector||(u.querySelector=function(e){var r=u.querySelectorAll(e);return r.length?r[0]:null}),u.querySelector}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/document/queryselectorall.js b/dist/3.7.1/min/polyfill/document/queryselectorall.js similarity index 90% rename from dist/3.7.0/min/polyfill/document/queryselectorall.js rename to dist/3.7.1/min/polyfill/document/queryselectorall.js index 88440245..af7af0a5 100644 --- a/dist/3.7.0/min/polyfill/document/queryselectorall.js +++ b/dist/3.7.1/min/polyfill/document/queryselectorall.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/document/queryselectorall",e)}(function(e,t,r,s,l,o,n){"use strict";return o.querySelectorAll||(o.querySelectorAll=function(e){var t,r=l.document.getElementsByTagName("script")[0],s=o.createElement("style"),n=[];for(r.parentNode.insertBefore(s,r),o._qsa=[],s.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",l.scrollBy(0,0),s.parentNode.removeChild(s);o._qsa.length;)t=o._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);try{delete o._qsa}catch(c){o._qsa=null}return n}),o.querySelectorAll}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/element/matches.js b/dist/3.7.1/min/polyfill/element/matches.js similarity index 89% rename from dist/3.7.0/min/polyfill/element/matches.js rename to dist/3.7.1/min/polyfill/element/matches.js index 8fdf016f..0d774cef 100644 --- a/dist/3.7.0/min/polyfill/element/matches.js +++ b/dist/3.7.1/min/polyfill/element/matches.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];document.querySelectorAll||t.push("../document/queryselectorall"),window.qoopido.register("polyfill/element/matches",e,t)}(function(e,t,r,o,c,l,n){"use strict";if(!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector=s.matchesSelector||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||function(e){for(var t,r=this.parentElement.querySelectorAll(e),o=0;t=r[o++];)if(t===this)return!0;return!1}}return Element.prototype.matches}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/create.js b/dist/3.7.1/min/polyfill/object/create.js similarity index 90% rename from dist/3.7.0/min/polyfill/object/create.js rename to dist/3.7.1/min/polyfill/object/create.js index f0e98abc..0dadea7c 100644 --- a/dist/3.7.0/min/polyfill/object/create.js +++ b/dist/3.7.1/min/polyfill/object/create.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,i,c,n){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/defineproperties.js b/dist/3.7.1/min/polyfill/object/defineproperties.js similarity index 91% rename from dist/3.7.0/min/polyfill/object/defineproperties.js rename to dist/3.7.1/min/polyfill/object/defineproperties.js index 25f09513..cf271ca5 100644 --- a/dist/3.7.0/min/polyfill/object/defineproperties.js +++ b/dist/3.7.1/min/polyfill/object/defineproperties.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,r){if(r.register){var t=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||t.push("./defineproperty"),r.register("polyfill/object/defineproperties",e,t)}else(r.modules=r.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,r,t,o,i,n,p){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,r){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var t;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&Object.defineProperty(e,t,r[t]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/defineproperty.js b/dist/3.7.1/min/polyfill/object/defineproperty.js similarity index 92% rename from dist/3.7.0/min/polyfill/object/defineproperty.js rename to dist/3.7.1/min/polyfill/object/defineproperty.js index 7b35c953..d983a8f3 100644 --- a/dist/3.7.0/min/polyfill/object/defineproperty.js +++ b/dist/3.7.1/min/polyfill/object/defineproperty.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var f=Object.defineProperty,p=Object.prototype.__defineGetter__,d=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(f)try{return f(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return p&&"get"in r&&p.call(e,t,r.get),d&&"set"in r&&d.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/getownpropertydescriptor.js b/dist/3.7.1/min/polyfill/object/getownpropertydescriptor.js similarity index 91% rename from dist/3.7.0/min/polyfill/object/getownpropertydescriptor.js rename to dist/3.7.1/min/polyfill/object/getownpropertydescriptor.js index 742e3249..e6bc2d59 100644 --- a/dist/3.7.0/min/polyfill/object/getownpropertydescriptor.js +++ b/dist/3.7.1/min/polyfill/object/getownpropertydescriptor.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r,e){e.register?e.register("polyfill/object/getownpropertydescriptor",r):(e.modules=e.modules||{})["polyfill/object/getownpropertydescriptor"]=r()}(function(r,e,t,o,c,n,i){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(r){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(r,e){if(r!==Object(r))throw new TypeError;try{return p.call(Object,r,e)}catch(t){}return Object.prototype.hasOwnProperty.call(r,e)?{value:r[e],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/getownpropertynames.js b/dist/3.7.1/min/polyfill/object/getownpropertynames.js similarity index 89% rename from dist/3.7.0/min/polyfill/object/getownpropertynames.js rename to dist/3.7.1/min/polyfill/object/getownpropertynames.js index 0bb7eec7..9e89446a 100644 --- a/dist/3.7.0/min/polyfill/object/getownpropertynames.js +++ b/dist/3.7.1/min/polyfill/object/getownpropertynames.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,o){o.register?o.register("polyfill/object/getownpropertynames",e):(o.modules=o.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,o,t,r,n,p,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var o,t=[];for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.push(o);return t}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/getprototypeof.js b/dist/3.7.1/min/polyfill/object/getprototypeof.js similarity index 88% rename from dist/3.7.0/min/polyfill/object/getprototypeof.js rename to dist/3.7.1/min/polyfill/object/getprototypeof.js index 91a31261..35c44c9c 100644 --- a/dist/3.7.0/min/polyfill/object/getprototypeof.js +++ b/dist/3.7.1/min/polyfill/object/getprototypeof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o,t){t.register?t.register("polyfill/object/getprototypeof",o):(t.modules=t.modules||{})["polyfill/object/getprototypeof"]=o()}(function(o,t,e,r,p,n,c){"use strict";return Object.getPrototypeOf||(Object.getPrototypeOf={}.__proto__===Object.prototype&&[].__proto__===Array.prototype?function(o){return o.__proto__}:function(o){return o.constructor?o.constructor.prototype:null}),Object.getPrototypeOf},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/object/keys.js b/dist/3.7.1/min/polyfill/object/keys.js similarity index 84% rename from dist/3.7.0/min/polyfill/object/keys.js rename to dist/3.7.1/min/polyfill/object/keys.js index eaf34069..6c36a79c 100644 --- a/dist/3.7.0/min/polyfill/object/keys.js +++ b/dist/3.7.1/min/polyfill/object/keys.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/object/keys",e)}(function(e,t,o,r,n,c,i){"use strict";return Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on non-object");var t,o=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.push(t);return o}),Object.keys}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/string/lcfirst.js b/dist/3.7.1/min/polyfill/string/lcfirst.js similarity index 82% rename from dist/3.7.0/min/polyfill/string/lcfirst.js rename to dist/3.7.1/min/polyfill/string/lcfirst.js index 822e8642..59a759eb 100644 --- a/dist/3.7.0/min/polyfill/string/lcfirst.js +++ b/dist/3.7.1/min/polyfill/string/lcfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/lcfirst",t)}(function(t,r,i,o,n,e,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var t=this;return t.charAt(0).toLowerCase()+t.slice(1)}),String.prototype.lcfirst}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/string/trim.js b/dist/3.7.1/min/polyfill/string/trim.js similarity index 83% rename from dist/3.7.0/min/polyfill/string/trim.js rename to dist/3.7.1/min/polyfill/string/trim.js index e79d2eee..bee09b9d 100644 --- a/dist/3.7.0/min/polyfill/string/trim.js +++ b/dist/3.7.1/min/polyfill/string/trim.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/trim",t)}(function(t,r,i,n,o,e,p){"use strict";if(!String.prototype.trim){var u=new RegExp("^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$","g");String.prototype.trim=function(){return this.replace(u,"")}}return String.prototype.trim}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/string/ucfirst.js b/dist/3.7.1/min/polyfill/string/ucfirst.js similarity index 82% rename from dist/3.7.0/min/polyfill/string/ucfirst.js rename to dist/3.7.1/min/polyfill/string/ucfirst.js index ff61bc53..bdb6fcf3 100644 --- a/dist/3.7.0/min/polyfill/string/ucfirst.js +++ b/dist/3.7.1/min/polyfill/string/ucfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/ucfirst",t)}(function(t,r,i,o,n,e,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var t=this;return t.charAt(0).toUpperCase()+t.slice(1)}),String.prototype.ucfirst}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/addeventlistener.js b/dist/3.7.1/min/polyfill/window/addeventlistener.js similarity index 94% rename from dist/3.7.0/min/polyfill/window/addeventlistener.js rename to dist/3.7.1/min/polyfill/window/addeventlistener.js index 0c4a019e..3d18cb84 100644 --- a/dist/3.7.0/min/polyfill/window/addeventlistener.js +++ b/dist/3.7.1/min/polyfill/window/addeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/addeventlistener",e,t)}(function(e,t,n,a,r,o,i){"use strict";return r.addEventListener||(r.addEventListener=Window.prototype.addEventListener=HTMLDocument.prototype.addEventListener=Element.prototype.addEventListener=function(e,t){var n=this;n._events||(n._events={}),n._events[e]||(n._events[e]=function(e){var t,a=n._events[e.type].list,r=Array.prototype.concat.call([],a),l=0;for(e.preventDefault=function(){e.cancelable!==!1&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=n,e.relatedTarget=e.fromElement||null,e.target=e.srcElement||n,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+o.documentElement.scrollLeft,e.pageY=e.clientY+o.documentElement.scrollTop);(t=r[l])!==i&&!e.cancelImmediate;++l)a.indexOf(t)>-1&&t.call(n,e)},n._events[e].list=[],n.attachEvent&&n.attachEvent("on"+e,n._events[e])),n._events[e].list.push(t)}),r.addEventListener}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/customevent.js b/dist/3.7.1/min/polyfill/window/customevent.js similarity index 91% rename from dist/3.7.0/min/polyfill/window/customevent.js rename to dist/3.7.1/min/polyfill/window/customevent.js index 3979a88e..a134c275 100644 --- a/dist/3.7.0/min/polyfill/window/customevent.js +++ b/dist/3.7.1/min/polyfill/window/customevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/window/customevent",e)}(function(e,t,n,o,r,u,b){"use strict";if(!r.CustomEvent){var c=u.createEvent?function(e,t,n){var o=u.createEvent("Event"),r=t&&t.bubbles!==b?t.bubbles:!1,c=t&&t.cancelable!==b?t.cancelable:!0;return o.initEvent(e,r,c),o.detail=n,o}:function(e,t,n){var o=u.createEventObject();return o.type=e,o.bubbles=t&&t.bubbles!==b?t.bubbles:!1,o.cancelable=t&&t.cancelable!==b?t.cancelable:!0,o.detail=n,o};r.CustomEvent=Window.prototype.CustomEvent=function(e,t,n){if(!e)throw new Error("Not enough arguments");return c(e,t,n)}}return r.CustomEvent}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/dispatchevent.js b/dist/3.7.1/min/polyfill/window/dispatchevent.js similarity index 92% rename from dist/3.7.0/min/polyfill/window/dispatchevent.js rename to dist/3.7.1/min/polyfill/window/dispatchevent.js index 9b3ca6ea..c446384b 100644 --- a/dist/3.7.0/min/polyfill/window/dispatchevent.js +++ b/dist/3.7.1/min/polyfill/window/dispatchevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/dispatchevent",t)}(function(t,e,n,o,r,i,c){"use strict";return r.dispatchEvent||(r.dispatchEvent=Window.prototype.dispatchEvent=HTMLDocument.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var o=function(t){t.cancelBubble=!0,(e||r).detachEvent("on"+n,o)};this.attachEvent("on"+n,o)}this.fireEvent("on"+n,t)}catch(i){t.target=e;do t.currentTarget=e,e._events&&e._events[n]&&e._events[n].call(e,t),e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0}),r.dispatchEvent}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/getcomputedstyle.js b/dist/3.7.1/min/polyfill/window/getcomputedstyle.js similarity index 87% rename from dist/3.7.0/min/polyfill/window/getcomputedstyle.js rename to dist/3.7.1/min/polyfill/window/getcomputedstyle.js index 1a873ffa..4b9e5804 100644 --- a/dist/3.7.0/min/polyfill/window/getcomputedstyle.js +++ b/dist/3.7.1/min/polyfill/window/getcomputedstyle.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/getcomputedstyle",t)}(function(t,e,r,n,o,u,l){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var i=new RegExp("(\\-([a-z]){1})","g"),p=function(){return arguments[2].toUpperCase()};return function(t,e){var r=this;return r.getPropertyValue=function(e){return"float"===e&&(e="styleFloat"),i.test(e)&&(e=e.replace(i,p)),t.currentStyle[e]||null},r}}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/matchmedia.js b/dist/3.7.1/min/polyfill/window/matchmedia.js similarity index 97% rename from dist/3.7.0/min/polyfill/window/matchmedia.js rename to dist/3.7.1/min/polyfill/window/matchmedia.js index a22963fc..923562c7 100644 --- a/dist/3.7.0/min/polyfill/window/matchmedia.js +++ b/dist/3.7.1/min/polyfill/window/matchmedia.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,i,n,r,o,a){"use strict";function l(){var e=r.innerWidth||f.clientWidth,t=r.innerHeight||f.clientHeight,i=r.screen.width,n=r.screen.height,o=r.screen.colorDepth,a=r.devicePixelRatio;y.width=e,y.height=t,y["aspect-ratio"]=(e/t).toFixed(2),y.color=o,y["color-index"]=Math.pow(2,o),y["device-aspect-ratio"]=(i/n).toFixed(2),y["device-height"]=n,y["device-width"]=i,y["device-pixel-ratio"]=a||1,y.resolution=a&&96*a||r.screen.deviceXDPI||96,y.orientation=t>=e?"portrait":"landscape"}function s(e){var t,i,n={matches:!1,media:e,addListener:function(e){e&&i.push(e)},removeListener:function(e){for(var t,n=0;(t=i[n])!==a;n++)t===e&&i.splice(n,1)}};return n.matches=""===e?!0:d(e),x.push({mql:n,listeners:[]}),t=x.length-1,v[e]=t,i=x[t].listeners,n}function d(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],i=t.length-1,n=i,r=null,o=null,a="",l=0,s=!1,d="",c="",m=null,p=0,h=0,u=null,f="",x="",v="",w="",b="",q=!1;if(""===e)return!0;do if(r=t[n-i],s=!1,o=r.match(g.type),o&&(a=o[0],l=o.index),!o||-1===r.substring(0,l).indexOf("(")&&(l||!o[3]&&a!==o.input))q=!1;else{if(c=r,s="not"===o[1],l||(d=o[2],c=r.substring(a.length)),q=d===y.type||"all"===d||""===d,m=-1!==c.indexOf(" and ")&&c.split(" and ")||[c],p=m.length-1,h=p,q&&p>=0&&""!==c)do{if(u=m[p].match(g.media),!u||!y[u[3]]){q=!1;break}if(f=u[2],x=u[5],w=x,v=u[7],b=y[u[3]],v&&(w="px"===v?Number(x):"em"===v||"rem"===v?16*x:u[8]?(x/u[8]).toFixed(2):"dppx"===v?96*x:"dpcm"===v?.3937*x:Number(x)),q="min-"===f&&w?b>=w:"max-"===f&&w?w>=b:w?b===w:!!b,!q)break}while(p--);if(q)break}while(i--);return s?!q:q}function c(){var e,t,i=!1,n=0,o=0;if(x.length>0)for(l();(e=x[n])!==a;n++)if(i=d(e.mql.media),(i&&!e.mql.matches||!i&&e.mql.matches)&&(e.mql.matches=i,e.listeners))for(;(t=e.listeners[o])!==a;o++)t.call(r,e.mql)}function m(){r.clearTimeout(h),h=r.setTimeout(c,10)}function p(){var t,i=r.document.getElementsByTagName("script")[0],n=o.createElement("style"),l=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],s="#"+u+" { position: relative; z-index: 0; }",d="",c=r.addEventListener||(d="on")&&r.attachEvent,p=0;for(n.type="text/css",n.id=u,i.parentNode.insertBefore(n,i);(t=l[p])!==a;p++)s+="@media "+t+" { #"+u+" { position: relative; z-index: "+p+" } }";n.styleSheet?n.styleSheet.cssText=s:n.textContent=s,y.type=l[1*(r.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),c(d+"resize",m),c(d+"orientationchange",m)}var h,u="qoopidoPolyfillWindowMatchmedia",f=o.documentElement,x=[],v={},y={},g={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return r.matchMedia||(p(),l(),r.matchMedia=function(e){var t=v[e]||!1;return t===!1?s(e):x[t].mql}),r.matchMedia}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/promise.js b/dist/3.7.1/min/polyfill/window/promise.js similarity index 96% rename from dist/3.7.0/min/polyfill/window/promise.js rename to dist/3.7.1/min/polyfill/window/promise.js index b7ca4c83..ec3ade59 100644 --- a/dist/3.7.0/min/polyfill/window/promise.js +++ b/dist/3.7.1/min/polyfill/window/promise.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/promise",t)}(function(t,n,r,e,o,i,u){"use strict";function s(t,n){var r=j.push([t,n]);1===r&&c()}function c(){o.setTimeout(f,1)}function f(){for(var t,n=0;(t=j[n])!==u;n++)t[0](t[1]);j.length=0}function a(t,n){var r,e=null;try{if(t===n)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof n||"object"==typeof n&&null!==n)&&(e=n.then,"function"==typeof e))return e.call(n,function(e){return r?!0:(r=!0,void(n!==e?h(t,e):p(t,e)))},function(n){return r?!0:(r=!0,void v(t,n))}),!0}catch(o){return r?!0:(v(t,o),!0)}return!1}function l(t,n){function r(t){h(n,t)}function e(t){v(n,t)}try{t(r,e)}catch(o){e(o)}}function _(t,n,r,e){var o,i,u,s,c="function"==typeof r;if(c)try{o=r(e),u=!0}catch(f){s=!0,i=f}else o=e,u=!0;a(n,o)||(c&&u?h(n,o):s?v(n,i):t===T?h(n,o):t===E&&v(n,o))}function h(t,n){t===n?p(t,n):a(t,n)||p(t,n)}function p(t,n){t._state===g&&(t._state=P,t._detail=n,s(b,t))}function v(t,n){t._state===g&&(t._state=P,t._detail=n,s(m,t))}function b(t){d(t,t._state=T)}function m(t){d(t,t._state=E)}function y(t,n,r,e){var o=t._subscribers,i=o.length;o[i]=n,o[i+T]=r,o[i+E]=e}function d(t,n){for(var r,e,o=t._subscribers,i=t._detail,s=0;(r=o[s])!==u;s+=3)e=o[s+n],_(n,r,e,i);t._subscribers=null}function w(t){var n=this;if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");n._subscribers=[],l(t,n)}var g=void 0,P=0,T=1,E=2,j=[];return w.prototype={_state:u,_detail:u,_subscribers:u,then:function(t,n){var r=this,e=new w(function(){});return r._state?s(function(){_(r._state,e,arguments[r._state-1],r._detail)}):y(r,e,t,n),e},"catch":function(t){return this.then(null,t)}},o.Promise||(o.Promise=w),o.Promise}); \ No newline at end of file diff --git a/dist/3.7.0/min/polyfill/window/removeeventlistener.js b/dist/3.7.1/min/polyfill/window/removeeventlistener.js similarity index 90% rename from dist/3.7.0/min/polyfill/window/removeeventlistener.js rename to dist/3.7.1/min/polyfill/window/removeeventlistener.js index b6768c60..e50d9a29 100644 --- a/dist/3.7.0/min/polyfill/window/removeeventlistener.js +++ b/dist/3.7.1/min/polyfill/window/removeeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/removeeventlistener",e,t)}(function(e,t,n,r,o,i,v){"use strict";return o.removeEventListener||(o.removeEventListener=Window.prototype.removeEventListener=HTMLDocument.prototype.removeEventListener=Element.prototype.removeEventListener=function(e,t){var n=this;if(n._events&&n._events[e]&&n._events[e].list){var r=n._events[e].list.indexOf(t);r>-1&&(n._events[e].list.splice(r,1),n._events[e].list.length||n.detachEvent&&n.detachEvent("on"+e,n._events[e]))}}),o.removeEventListener}); \ No newline at end of file diff --git a/dist/3.7.0/min/pool.js b/dist/3.7.1/min/pool.js similarity index 87% rename from dist/3.7.0/min/pool.js rename to dist/3.7.1/min/pool.js index 1b8f0184..f8b4dbe4 100644 --- a/dist/3.7.0/min/pool.js +++ b/dist/3.7.1/min/pool.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){window.qoopido.register("pool",e,["./base","./function/merge","./function/unique/uuid"])}(function(e,t,i,n,o,u,r){"use strict";function s(){var e,t,i,n=this,o=n.metrics,u=n._settings,r=n._queue,s=n._variables,a=1;if(r.length>0&&(s.durationAverage>0&&(a=~~((a=u.frameBudget/s.durationAverage)<1?1:a)),(e=Math.min(r.length,(t=r.splice(0,a)).length))>0))if(o.inPool+e<=u.maxPoolsize){i=(new Date).getTime();for(var l=0;e>l;l++){var c=t[l],d=c._quid,_=c.dispose;c=n._dispose(c),c._quid=d,c.dispose=_,n._getPool.call(n,c).push(c)}o.inPool+=e,o.inQueue-=e,s.durationSamples+=e,s.durationTotal+=(new Date).getTime()-i,s.durationAverage=s.durationTotal/s.durationSamples}else{if("function"==typeof n._destroy)for(var p=0;e>p;p++)n._destroy(t[p]);t.length=0,o.inQueue-=e,o.destroyed+=e}}var a,l={interval:1e3/60,frameBudget:.5,maxPoolsize:1e3};return a=e.base.extend({metrics:null,_settings:null,_pool:null,_queue:null,_variables:null,_constructor:function(t){var i=this;i.metrics={total:0,inPool:0,inUse:0,inQueue:0,recycled:0,destroyed:0},i._settings=e["function/merge"]({},l,t),i._pool=i._initPool(),i._queue=[],i._variables={durationSamples:0,durationTotal:0,durationAverage:0},setInterval(function(){s.call(i)},i._settings.interval)},_initPool:function(){return[]},_initElement:function(t){var i=this;return t._quid=e["function/unique/uuid"](),t.dispose=function(){i.dispose(t)},i.metrics.total++,t},_getPool:function(){return this._pool},obtain:function(){var e=this,t=e._getPool.apply(e,arguments).pop();return t?(e.metrics.inPool--,e.metrics.recycled++):t=e._initElement(e._obtain.apply(e,arguments)),"function"==typeof t._obtain&&t._obtain.apply(t,arguments),e.metrics.inUse++,t},dispose:function(e){var t=this,i=t._queue;return e._quid||(e=t._initElement(e),t.metrics.inUse++),"function"==typeof e._dispose&&e._dispose(),i.push(e),t.metrics.inUse--,t.metrics.inQueue++,null}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){window.qoopido.register("pool",e,["./base","./function/merge","./function/unique/uuid"])}(function(e,t,i,n,o,u,r){"use strict";function s(){var e,t,i,n=this,o=n.metrics,u=n._settings,r=n._queue,s=n._variables,a=1;if(r.length>0&&(s.durationAverage>0&&(a=~~((a=u.frameBudget/s.durationAverage)<1?1:a)),(e=Math.min(r.length,(t=r.splice(0,a)).length))>0))if(o.inPool+e<=u.maxPoolsize){i=(new Date).getTime();for(var l=0;e>l;l++){var c=t[l],d=c._puid,_=c.dispose;c=n._dispose(c),c._puid=d,c.dispose=_,n._getPool.call(n,c).push(c)}o.inPool+=e,o.inQueue-=e,s.durationSamples+=e,s.durationTotal+=(new Date).getTime()-i,s.durationAverage=s.durationTotal/s.durationSamples}else{if("function"==typeof n._destroy)for(var p=0;e>p;p++)n._destroy(t[p]);t.length=0,o.inQueue-=e,o.destroyed+=e}}var a,l={interval:1e3/60,frameBudget:.5,maxPoolsize:1e3};return a=e.base.extend({metrics:null,_settings:null,_pool:null,_queue:null,_variables:null,_constructor:function(t){var i=this;i.metrics={total:0,inPool:0,inUse:0,inQueue:0,recycled:0,destroyed:0},i._settings=e["function/merge"]({},l,t),i._pool=i._initPool(),i._queue=[],i._variables={durationSamples:0,durationTotal:0,durationAverage:0},setInterval(function(){s.call(i)},i._settings.interval)},_initPool:function(){return[]},_initElement:function(t){var i=this;return t._puid=e["function/unique/uuid"](),t.dispose=function(){i.dispose(t)},i.metrics.total++,t},_getPool:function(){return this._pool},obtain:function(){var e=this,t=e._getPool.apply(e,arguments).pop();return t?(e.metrics.inPool--,e.metrics.recycled++):t=e._initElement(e._obtain.apply(e,arguments)),"function"==typeof t._obtain&&t._obtain.apply(t,arguments),e.metrics.inUse++,t},dispose:function(e){var t=this,i=t._queue;return e._puid||(e=t._initElement(e),t.metrics.inUse++),"function"==typeof e._dispose&&e._dispose(),i.push(e),t.metrics.inUse--,t.metrics.inQueue++,null}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/pool/array.js b/dist/3.7.1/min/pool/array.js similarity index 81% rename from dist/3.7.0/min/pool/array.js rename to dist/3.7.1/min/pool/array.js index 9e948219..8bb95816 100644 --- a/dist/3.7.0/min/pool/array.js +++ b/dist/3.7.1/min/pool/array.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("pool/array",o,["../pool"])}(function(o,n,r,t,e,i,p){"use strict";var u=o.pool.extend({_dispose:function(o){return o.length=0,o},_obtain:function(){return[]}});return n.pool=n.pool||{},n.pool.array=u.create(),u}); \ No newline at end of file diff --git a/dist/3.7.0/min/pool/dom.js b/dist/3.7.1/min/pool/dom.js similarity index 90% rename from dist/3.7.0/min/pool/dom.js rename to dist/3.7.1/min/pool/dom.js index 18598d71..51be098d 100644 --- a/dist/3.7.0/min/pool/dom.js +++ b/dist/3.7.1/min/pool/dom.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("pool/dom",o,["../pool"])}(function(o,t,e,r,n,i,p){"use strict";var l=o.pool.extend({_initPool:function(){return{}},_getPool:function(o){var t=this;return"string"!=typeof o&&(o=o.tagName.toLowerCase()),t._pool[o]=t._pool[o]||[]},_dispose:function(o){var t;o.parentNode&&o.parentNode.removeChild(o);for(t in o)if(Object.prototype.hasOwnProperty.call(o,t))try{o.removeAttribute(t)}catch(e){o.property=null}return o},_obtain:function(o){return i.createElement(o)}});return t.pool=t.pool||{},t.pool.dom=l.create(),l}); \ No newline at end of file diff --git a/dist/3.7.0/min/pool/module.js b/dist/3.7.1/min/pool/module.js similarity index 73% rename from dist/3.7.0/min/pool/module.js rename to dist/3.7.1/min/pool/module.js index d07de76a..1e6bb6ed 100644 --- a/dist/3.7.0/min/pool/module.js +++ b/dist/3.7.1/min/pool/module.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(o){window.qoopido.register("pool/module",o,["../pool","../function/unique/uuid"])}(function(o,u,n,t,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,n,t){var e=this,i=o._quid||(o._quid=l()),r=t&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return t===!0&&r[i]?r[i]:(d._parent._constructor.call(e,n),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),t===!0&&(r[i]=e),void 0)},_dispose:function(o){return o},_obtain:function(){return this._module.create.apply(this._module,arguments)}});return d}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(o){window.qoopido.register("pool/module",o,["../pool","../function/unique/uuid"])}(function(o,u,n,t,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,n,t){var e=this,i=o._puid||(o._puid=l()),r=t&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return t===!0&&r[i]?r[i]:(d._parent._constructor.call(e,n),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),t===!0&&(r[i]=e),void 0)},_dispose:function(o){return o},_obtain:function(){return this._module.create.apply(this._module,arguments)}});return d}); \ No newline at end of file diff --git a/dist/3.7.0/min/pool/object.js b/dist/3.7.1/min/pool/object.js similarity index 92% rename from dist/3.7.0/min/pool/object.js rename to dist/3.7.1/min/pool/object.js index fcc535cd..4dd5caf0 100644 --- a/dist/3.7.0/min/pool/object.js +++ b/dist/3.7.1/min/pool/object.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("pool/object",e,["../pool"])}(function(e,t,o,r,n,l,p){"use strict";var i,c=null===Object.prototype.__proto__,d=c?"__proto__":"prototype",u=c?null:function(){var e=l.createElement("iframe"),t=l.body||l.documentElement;e.style.display="none",t.appendChild(e),e.src="javascript:";var o=e.contentWindow.Object.prototype;return t.removeChild(e),e=null,delete o.constructor,delete o.hasOwnProperty,delete o.propertyIsEnumerable,delete o.isPrototypeOf,delete o.toLocaleString,delete o.toString,delete o.valueOf,o.__proto__=null,o}();return i=e.pool.extend({getModel:function(){return u},_dispose:function(e){var t;e[d]=u;for(t in e)delete e[t];return e},_obtain:function(){return{}}}),t.pool=t.pool||{},t.pool.object=i.create(),i}); \ No newline at end of file diff --git a/dist/3.7.0/min/promise/all.js b/dist/3.7.1/min/promise/all.js similarity index 89% rename from dist/3.7.0/min/promise/all.js rename to dist/3.7.1/min/promise/all.js index d7f0eb66..317a8945 100644 --- a/dist/3.7.0/min/promise/all.js +++ b/dist/3.7.1/min/promise/all.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){var o=[];window.Promise||o.push("../polyfill/window/promise"),window.qoopido.register("promise/all",n,o)}(function(n,o,t,r,i,e,u){"use strict";return function(n){if("[object Array]"!==Object.prototype.toString.call(n))throw new TypeError("You must pass an array to all.");return new i.Promise(function(o,t){function r(n){return function(o){i(n,o)}}function i(n,t){c[n]=t,0===--f&&o(c)}var e,c=[],f=n.length,s=0;for(0===f&&o([]);(e=n[s])!==u;s++)e&&"function"==typeof e.then?e.then(r(s),t):i(s,e)})}}); \ No newline at end of file diff --git a/dist/3.7.0/min/promise/defer.js b/dist/3.7.1/min/promise/defer.js similarity index 82% rename from dist/3.7.0/min/promise/defer.js rename to dist/3.7.1/min/promise/defer.js index 4da06d4f..1b746cc4 100644 --- a/dist/3.7.0/min/promise/defer.js +++ b/dist/3.7.1/min/promise/defer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(i){var o=[];window.Promise||o.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",i,o)}(function(i,o,e,r,n,s,t){"use strict";return function(){var i=this;i.promise=new n.Promise(function(o,e){i.resolve=o,i.reject=e})}}); \ No newline at end of file diff --git a/dist/3.7.0/min/promise/race.js b/dist/3.7.1/min/promise/race.js similarity index 87% rename from dist/3.7.0/min/promise/race.js rename to dist/3.7.1/min/promise/race.js index 973b86f9..0234cccd 100644 --- a/dist/3.7.0/min/promise/race.js +++ b/dist/3.7.1/min/promise/race.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){var r=[];window.Promise||r.push("../polyfill/window/promise"),window.qoopido.register("promise/race",o,r)}(function(o,r,t,n,e,i,s){"use strict";return function(o){if("[object Array]"!==Object.prototype.toString.call(o))throw new TypeError("You must pass an array to all.");return new e.Promise(function(r,t){for(var n,e=0;(n=o[e])!==s;e++)n&&"function"==typeof n.then?n.then(r,t):r(n)})}}); \ No newline at end of file diff --git a/dist/3.7.0/min/proxy.js b/dist/3.7.1/min/proxy.js similarity index 85% rename from dist/3.7.0/min/proxy.js rename to dist/3.7.1/min/proxy.js index 044e8438..29e7b672 100644 --- a/dist/3.7.0/min/proxy.js +++ b/dist/3.7.1/min/proxy.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("proxy",n,["./base","./function/unique/uuid"])}(function(n,t,u,r,e,o,i){"use strict";return n.base.extend({_constructor:function(t,u){var r=Array.prototype.splice.call(arguments,2),e=function(){return u.apply(t,Array.prototype.slice.call(arguments).concat(r))};return e._quid=n["function/unique/uuid"](),e}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/renderer.js b/dist/3.7.1/min/renderer.js similarity index 94% rename from dist/3.7.0/min/renderer.js rename to dist/3.7.1/min/renderer.js index bcdf21db..9a215928 100644 --- a/dist/3.7.0/min/renderer.js +++ b/dist/3.7.1/min/renderer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("renderer",e,["./emitter","./support","./dom/element"])}(function(e,t,i,n,r,a,o){"use strict";function c(e){return r.setTimeout(e,y)}function u(){var e=this;a[v]?d&&(s=(new Date).getTime(),e.paused=!0,k(d),d=null,e.emit("suspend")):d||(e.paused=!1,s&&(l=(new Date).getTime()-s,f+=l,g+=l,e.emit("resume",l)),e._tick())}var m,s,l,d,g,p,f,h,_=e.support,w=e["dom/element"].create(a),T=r[_.getMethod("requestAnimationFrame")]||c,k=r[_.getMethod("cancelAnimationFrame")]||clearTimeout,v=_.getProperty("hidden",a),D=60,y=1e3/D,b=0;return m=e.emitter.extend({framerate:0,ratio:1,paused:!1,_tick:null,_constructor:function(){var e=this;m._parent._constructor.call(e),g=f=(new Date).getTime(),e._tick=function(){e.paused===!1&&(p=(new Date).getTime(),h=p-g,e.ratio=(p-f)/y,e.framerate=D/e.ratio,h>=1e3&&(g=p,b=0),f=p,b+=1,e.emit("tick",e.framerate,e.ratio),d=T(e._tick))},w.on("".concat("visibilitychange ",_.getPrefix()[0],"visibilitychange"),function(){u.call(e)}),u.call(e)}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support.js b/dist/3.7.1/min/support.js similarity index 98% rename from dist/3.7.0/min/support.js rename to dist/3.7.1/min/support.js index 91634f7f..1eb9869e 100644 --- a/dist/3.7.0/min/support.js +++ b/dist/3.7.1/min/support.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,s,o,i,p){"use strict";function n(e){return e.replace(a,"$1").lcfirst().replace(c,"").replace(m,g)}var l=e["promise/all"],u=e["promise/defer"],f=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),c=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),m=new RegExp("-([a-z])","gi"),h=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},y={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==p;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var s=new u;e?s.resolve():s.reject(),t.push(s.promise);break;default:t.push(e)}return new l(t)},getPrefix:function(){var e,t=this,r=y.prefix||null;if(null===r){var s=t.pool?t.pool.obtain("div"):i.createElement("div"),o=s.style;r=!1;for(e in o)f.test(e)&&(r=e.match(f)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=y.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],s.dispose&&s.dispose()}return r},getMethod:function(e,t){e=n(e),t=t||o;var r=t.tagName,s=y.method[r]=y.method[r]||{},i=s[e]=y.method[r][e]||null;if(null===i){i=!1;var l,u,f=0,a=e.ucfirst(),c=this.getPrefix();for(l=c!==!1?(e+" "+a+" "+c.join(a+" ")+a).split(" "):[e];(u=l[f])!==p;f++)if(t[u]!==p&&("function"==typeof t[u]||"object"==typeof t[u])){i=u;break}y.method[r][e]=i}return i},getProperty:function(e,t){e=n(e),t=t||o;var r=t.tagName,s=y.property[r]=y.property[r]||{},i=s[e]=y.property[r][e]||null;if(null===i){i=!1;var l,u,f=0,a=e.ucfirst(),c=this.getPrefix();for(l=c!==!1?(e+" "+a+" "+c.join(a+" ")+a).split(" "):[e],f;(u=l[f])!==p;f++)if(t[u]!==p){i=u;break}y.property[r][e]=i}return i},getCssProperty:function(e){e=n(e);var t=this,r=y.css[e]||null;if(null===r){r=!1;var s,o=0,l=t.pool?t.pool.obtain("div"):i.createElement("div"),u=e.ucfirst(),f=this.getPrefix()||[],a=(e+" "+u+" "+f.join(u+" ")+u).split(" "),c="";for(o;(s=a[o])!==p;o++)if(l.style[s]!==p){r=s,o>0&&(c="-");break}r=y.css[e]=r!==!1?[c+r.replace(h,"-$1").toLowerCase(),r]:!1,l.dispose&&l.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=y.promises.prefix;if(null===e){var t=new u,r=this.getPrefix();r?t.resolve(r):t.reject(),e=y.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,s=y.promises.method[r]=y.promises.method[r]||{},i=s[e]=y.promises.method[r][e]||null;if(null===i){var p=new u,n=this.getMethod(e,t);n?p.resolve(n):p.reject(),i=y.promises.method[r][e]=p.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,s=y.promises.property[r]=y.promises.property[r]||{},i=s[e]=y.promises.property[r][e]||null;if(null===i){var p=new u,n=this.getProperty(e,t);n?p.resolve(n):p.reject(),i=y.promises.property[r][e]=p.promise}return i},testCssProperty:function(e){var t=y.promises.css[e]||null;if(null===t){var r=new u,s=this.getCssProperty(e);s?r.resolve(s):r.reject(),t=y.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=y.promises.test[e]||null;if(null===r){var s=new u,o=Array.prototype.slice.call(arguments);o.splice(0,0,s),t.apply(null,o),r=y.promises.test[e]=s.promise}return r}}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/capability/datauri.js b/dist/3.7.1/min/support/capability/datauri.js similarity index 90% rename from dist/3.7.0/min/support/capability/datauri.js rename to dist/3.7.1/min/support/capability/datauri.js index 7d774f3c..ac96fe2d 100644 --- a/dist/3.7.0/min/support/capability/datauri.js +++ b/dist/3.7.1/min/support/capability/datauri.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,o,i,A,r,a){"use strict";var n=e.support;return n.addTest("/capability/datauri",function(t){var o=e["dom/element"].create(n.pool?n.pool.obtain("img"):r.createElement("img"));o.one("error load",function(e){"load"===e.type&&1===o.element.width&&1===o.element.height?t.resolve():t.reject(),o.element.dispose&&o.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/capability/touch.js b/dist/3.7.1/min/support/capability/touch.js similarity index 84% rename from dist/3.7.0/min/support/capability/touch.js rename to dist/3.7.1/min/support/capability/touch.js index e6e25d8b..bc0fabcb 100644 --- a/dist/3.7.0/min/support/capability/touch.js +++ b/dist/3.7.1/min/support/capability/touch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/capability/touch",o,["../../support"])}(function(o,t,c,u,n,i,s){"use strict";return o.support.addTest("/capability/touch",function(o){"ontouchstart"in n||n.DocumentTouch&&i instanceof DocumentTouch||u.maxTouchPoints>0||u.msMaxTouchPoints>0?o.resolve():o.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/borderradius.js b/dist/3.7.1/min/support/css/borderradius.js similarity index 84% rename from dist/3.7.0/min/support/css/borderradius.js rename to dist/3.7.1/min/support/css/borderradius.js index 29615234..3807728a 100644 --- a/dist/3.7.0/min/support/css/borderradius.js +++ b/dist/3.7.1/min/support/css/borderradius.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("support/css/borderradius",r,["../../support"])}(function(r,s,o,t,e,p,u){"use strict";return r.support.addTest("/css/borderradius",function(s){r.support.supportsCssProperty("border-radius")?s.resolve(r.support.getCssProperty("border-radius")):s.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/boxshadow.js b/dist/3.7.1/min/support/css/boxshadow.js similarity index 83% rename from dist/3.7.0/min/support/css/boxshadow.js rename to dist/3.7.1/min/support/css/boxshadow.js index 1c89d207..ad9ef94e 100644 --- a/dist/3.7.0/min/support/css/boxshadow.js +++ b/dist/3.7.1/min/support/css/boxshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/css/boxshadow",o,["../../support"])}(function(o,s,t,r,p,e,u){"use strict";return o.support.addTest("/css/boxshadow",function(s){o.support.supportsCssProperty("box-shadow")?s.resolve(o.support.getCssProperty("box-shadow")):s.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/rem.js b/dist/3.7.1/min/support/css/rem.js similarity index 85% rename from dist/3.7.0/min/support/css/rem.js rename to dist/3.7.1/min/support/css/rem.js index 061135bf..c0fc834d 100644 --- a/dist/3.7.0/min/support/css/rem.js +++ b/dist/3.7.1/min/support/css/rem.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/css/rem",e,["../../support"])}(function(e,t,o,s,r,i,n){"use strict";var p=e.support;return p.addTest("/css/rem",function(e){var t=p.pool?p.pool.obtain("div"):i.createElement("div");try{t.style.fontSize="3rem"}catch(o){}/rem/.test(t.style.fontSize)?e.resolve():e.reject(),t.dispose&&t.dispose()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/rgba.js b/dist/3.7.1/min/support/css/rgba.js similarity index 86% rename from dist/3.7.0/min/support/css/rgba.js rename to dist/3.7.1/min/support/css/rgba.js index 0e16f0b1..84404ddb 100644 --- a/dist/3.7.0/min/support/css/rgba.js +++ b/dist/3.7.1/min/support/css/rgba.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/css/rgba",o,["../../support"])}(function(o,r,t,s,e,a,c){"use strict";var i=o.support;return i.addTest("/css/rgba",function(o){var r=i.pool?i.pool.obtain("div"):a.createElement("div");try{r.style.backgroundColor="rgba(0,0,0,.5)"}catch(t){}/rgba/.test(r.style.backgroundColor)?o.resolve():o.reject(),r.dispose&&r.dispose()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/textshadow.js b/dist/3.7.1/min/support/css/textshadow.js similarity index 83% rename from dist/3.7.0/min/support/css/textshadow.js rename to dist/3.7.1/min/support/css/textshadow.js index 4b764176..7a5bd4a4 100644 --- a/dist/3.7.0/min/support/css/textshadow.js +++ b/dist/3.7.1/min/support/css/textshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/textshadow",t,["../../support"])}(function(t,s,o,r,e,p,u){"use strict";return t.support.addTest("/css/textshadow",function(s){t.support.supportsCssProperty("text-shadow")?s.resolve(t.support.getCssProperty("text-shadow")):s.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/transform.js b/dist/3.7.1/min/support/css/transform.js similarity index 83% rename from dist/3.7.0/min/support/css/transform.js rename to dist/3.7.1/min/support/css/transform.js index 0dfa6846..344836c8 100644 --- a/dist/3.7.0/min/support/css/transform.js +++ b/dist/3.7.1/min/support/css/transform.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("support/css/transform",r,["../../support"])}(function(r,s,t,o,p,e,n){"use strict";return r.support.addTest("/css/transform",function(s){r.support.supportsCssProperty("transform")?s.resolve(r.support.getCssProperty("transform")):s.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/transform/2d.js b/dist/3.7.1/min/support/css/transform/2d.js similarity index 89% rename from dist/3.7.0/min/support/css/transform/2d.js rename to dist/3.7.1/min/support/css/transform/2d.js index 7ffffb19..cfe9f485 100644 --- a/dist/3.7.0/min/support/css/transform/2d.js +++ b/dist/3.7.1/min/support/css/transform/2d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transform/2d",t,["../../../support","../transform"])}(function(t,r,o,s,e,n,p){"use strict";var c=t.support;return c.addTest("/css/transform/2d",function(r){t["support/css/transform"]().then(function(){var o=c.pool?c.pool.obtain("div"):n.createElement("div"),s=t.support.getCssProperty("transform");try{o.style[s]="rotate(30deg)"}catch(e){}/rotate/.test(o.style[s])?r.resolve():r.reject(),o.dispose&&o.dispose()},function(){r.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/transform/3d.js b/dist/3.7.1/min/support/css/transform/3d.js similarity index 89% rename from dist/3.7.0/min/support/css/transform/3d.js rename to dist/3.7.1/min/support/css/transform/3d.js index 2bc9c285..0f3f63ed 100644 --- a/dist/3.7.0/min/support/css/transform/3d.js +++ b/dist/3.7.1/min/support/css/transform/3d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transform/3d",t,["../../../support","../transform"])}(function(t,s,r,o,e,n,p){"use strict";var a=t.support;return a.addTest("/css/transform/3d",function(s){t["support/css/transform"]().then(function(){var r=a.pool?a.pool.obtain("div"):n.createElement("div"),o=t.support.getCssProperty("transform");try{r.style[o]="translate3d(0,0,0)"}catch(e){}/translate3d/.test(r.style[o])?s.resolve():s.reject(),r.dispose&&r.dispose()},function(){s.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/css/transition.js b/dist/3.7.1/min/support/css/transition.js similarity index 83% rename from dist/3.7.0/min/support/css/transition.js rename to dist/3.7.1/min/support/css/transition.js index 3f87cc59..a92062ef 100644 --- a/dist/3.7.0/min/support/css/transition.js +++ b/dist/3.7.1/min/support/css/transition.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transition",t,["../../support"])}(function(t,s,r,o,n,i,p){"use strict";return t.support.addTest("/css/transition",function(s){t.support.supportsCssProperty("transition")?s.resolve(t.support.getCssProperty("transition")):s.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/canvas.js b/dist/3.7.1/min/support/element/canvas.js similarity index 85% rename from dist/3.7.0/min/support/element/canvas.js rename to dist/3.7.1/min/support/element/canvas.js index 193e9a35..72225bf9 100644 --- a/dist/3.7.0/min/support/element/canvas.js +++ b/dist/3.7.1/min/support/element/canvas.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,o,n,s,a,r){"use strict";var p=e.support;return p.addTest("/element/canvas",function(e){var t=p.pool?p.pool.obtain("canvas"):a.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/canvas/todataurl.js b/dist/3.7.1/min/support/element/canvas/todataurl.js similarity index 87% rename from dist/3.7.0/min/support/element/canvas/todataurl.js rename to dist/3.7.1/min/support/element/canvas/todataurl.js index 2185437b..6efd1506 100644 --- a/dist/3.7.0/min/support/element/canvas/todataurl.js +++ b/dist/3.7.1/min/support/element/canvas/todataurl.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/element/canvas/todataurl",t,["../../../support","../canvas"])}(function(t,e,n,o,a,s,r){"use strict";var c=t.support;return c.addTest("/element/canvas/todataurl",function(e){t["support/element/canvas"]().then(function(){var t=c.pool?c.pool.obtain("canvas"):s.createElement("canvas");t.toDataURL!==r?e.resolve():e.reject(),t.dispose&&t.dispose()},function(){e.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/canvas/todataurl/jpeg.js b/dist/3.7.1/min/support/element/canvas/todataurl/jpeg.js similarity index 89% rename from dist/3.7.0/min/support/element/canvas/todataurl/jpeg.js rename to dist/3.7.1/min/support/element/canvas/todataurl/jpeg.js index a0a44b8a..d09b41ad 100644 --- a/dist/3.7.0/min/support/element/canvas/todataurl/jpeg.js +++ b/dist/3.7.1/min/support/element/canvas/todataurl/jpeg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas/todataurl/jpeg",e,["../../../../support","../todataurl"])}(function(e,t,a,o,n,r,s){"use strict";var p=e.support;return p.addTest("/element/canvas/todataurl/jpeg",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===e.toDataURL("image/jpeg").indexOf("data:image/jpeg")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/canvas/todataurl/png.js b/dist/3.7.1/min/support/element/canvas/todataurl/png.js similarity index 89% rename from dist/3.7.0/min/support/element/canvas/todataurl/png.js rename to dist/3.7.1/min/support/element/canvas/todataurl/png.js index c8f08bd7..345ea2c1 100644 --- a/dist/3.7.0/min/support/element/canvas/todataurl/png.js +++ b/dist/3.7.1/min/support/element/canvas/todataurl/png.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/element/canvas/todataurl/png",t,["../../../../support","../todataurl"])}(function(t,e,a,n,o,r,s){"use strict";var p=t.support;return p.addTest("/element/canvas/todataurl/png",function(e){t["support/element/canvas/todataurl"]().then(function(){var t=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===t.toDataURL("image/png").indexOf("data:image/png")?e.resolve():e.reject(),t.dispose&&t.dispose()},function(){e.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/canvas/todataurl/webp.js b/dist/3.7.1/min/support/element/canvas/todataurl/webp.js similarity index 89% rename from dist/3.7.0/min/support/element/canvas/todataurl/webp.js rename to dist/3.7.1/min/support/element/canvas/todataurl/webp.js index 41fe475a..e2d6b164 100644 --- a/dist/3.7.0/min/support/element/canvas/todataurl/webp.js +++ b/dist/3.7.1/min/support/element/canvas/todataurl/webp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas/todataurl/webp",e,["../../../../support","../todataurl"])}(function(e,t,a,o,n,r,s){"use strict";var p=e.support;return p.addTest("/element/canvas/todataurl/webp",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===e.toDataURL("image/webp").indexOf("data:image/webp")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/svg.js b/dist/3.7.1/min/support/element/svg.js similarity index 83% rename from dist/3.7.0/min/support/element/svg.js rename to dist/3.7.1/min/support/element/svg.js index b50def0c..0efc8131 100644 --- a/dist/3.7.0/min/support/element/svg.js +++ b/dist/3.7.1/min/support/element/svg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/svg",e,["../../support"])}(function(e,t,r,n,o,s,c){"use strict";return e.support.addTest("/element/svg",function(e){s.createElementNS&&s.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?e.resolve():e.reject()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/video.js b/dist/3.7.1/min/support/element/video.js similarity index 84% rename from dist/3.7.0/min/support/element/video.js rename to dist/3.7.1/min/support/element/video.js index 95e5f7dc..5bef8ba8 100644 --- a/dist/3.7.0/min/support/element/video.js +++ b/dist/3.7.1/min/support/element/video.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video",e,["../../support"])}(function(e,o,t,i,n,r,p){"use strict";var s=e.support;return s.addTest("/element/video",function(e){var o=s.pool?s.pool.obtain("video"):r.createElement("video");o.canPlayType?e.resolve():e.reject(),o.dispose&&o.dispose()})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/video/mp4.js b/dist/3.7.1/min/support/element/video/mp4.js similarity index 88% rename from dist/3.7.0/min/support/element/video/mp4.js rename to dist/3.7.1/min/support/element/video/mp4.js index 057b4e22..302b3ca8 100644 --- a/dist/3.7.0/min/support/element/video/mp4.js +++ b/dist/3.7.1/min/support/element/video/mp4.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/mp4",e,["../../../support","../video"])}(function(e,o,t,i,n,p,r){"use strict";var d=e.support;return d.addTest("/element/video/mp4",function(o){e["support/element/video"]().then(function(){var e=d.pool?d.pool.obtain("video"):p.createElement("video");e.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/video/ogg.js b/dist/3.7.1/min/support/element/video/ogg.js similarity index 88% rename from dist/3.7.0/min/support/element/video/ogg.js rename to dist/3.7.1/min/support/element/video/ogg.js index 0cea1fa7..850a52cc 100644 --- a/dist/3.7.0/min/support/element/video/ogg.js +++ b/dist/3.7.1/min/support/element/video/ogg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/ogg",e,["../../../support","../video"])}(function(e,o,t,i,n,r,s){"use strict";var d=e.support;return d.addTest("/element/video/ogg",function(o){e["support/element/video"]().then(function(){var e=d.pool?d.pool.obtain("video"):r.createElement("video");e.canPlayType('video/ogg; codecs="theora, vorbis"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/support/element/video/webm.js b/dist/3.7.1/min/support/element/video/webm.js similarity index 88% rename from dist/3.7.0/min/support/element/video/webm.js rename to dist/3.7.1/min/support/element/video/webm.js index 09bdec55..d42e8ddb 100644 --- a/dist/3.7.0/min/support/element/video/webm.js +++ b/dist/3.7.1/min/support/element/video/webm.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/webm",e,["../../../support","../video"])}(function(e,o,t,i,n,r,p){"use strict";var s=e.support;return s.addTest("/element/video/webm",function(o){e["support/element/video"]().then(function(){var e=s.pool?s.pool.obtain("video"):r.createElement("video");e.canPlayType('video/webm; codecs="vp8, vorbis"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/3.7.0/min/transport.js b/dist/3.7.1/min/transport.js similarity index 88% rename from dist/3.7.0/min/transport.js rename to dist/3.7.1/min/transport.js index f2417b29..95cbfa9c 100644 --- a/dist/3.7.0/min/transport.js +++ b/dist/3.7.1/min/transport.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("transport",n,["./base","./function/merge"])}(function(n,e,t,o,i,r,s){"use strict";var c;return c=n.base.extend({setup:function(e){var t=this;return t._settings=n["function/merge"]({},t._settings,e),t},serialize:function(n,e){var t,o,i,r=[];for(t in n)o=e?"".concat(e,"[",t,"]"):t,i=n[t],r.push("object"==typeof i?this.serialize(i,o):"".concat(encodeURIComponent(o),"=",encodeURIComponent(i)));return r.join("&")}})},window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/transport/jsonp.js b/dist/3.7.1/min/transport/jsonp.js similarity index 96% rename from dist/3.7.0/min/transport/jsonp.js rename to dist/3.7.1/min/transport/jsonp.js index 54fa78ec..719ad67e 100644 --- a/dist/3.7.0/min/transport/jsonp.js +++ b/dist/3.7.1/min/transport/jsonp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("transport/jsonp",t,["../transport","../function/merge","../function/unique/uuid","../url","../dom/element","../promise/defer"])}(function(t,e,i,n,o,c,r){"use strict";function s(t,e){var i=this,n=i.dfd,c=i.script,r=i.settings;e="object"==typeof e?i.serialize(e):e,t="".concat(t,t.indexOf("?")>-1?"&":"?","".concat(r.callback,"=",i.id)),t=r.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","".concat("_=",(new Date).getTime().toString())):t,t=e?"".concat(t,t.indexOf("?")>-1?"&":"?",e):t,o[i.id]=function(t){try{delete o[i.id]}catch(e){o[i.id]=null}u.call(i),n.resolve(t)},c.on("load readystatechange",function(t){a.call(i,t)}).one("error",function(){l.call(i)}).setAttribute("src",t),g.appendChild(c.element),i.timeout=setTimeout(function(){d.call(i)},r.timeout)}function a(t){var e=this,i=e.dfd;t.readyState&&"loaded"!==t.readyState&&"complete"!==t.readyState||e.script.off()&&e.script.element.dispose&&e.script.element.dispose(),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){d.call(e)},e.settings.timeout),i.notify(t)}function l(){var t=this;u.call(t),t.dfd.reject()}function d(){var t=this;u.call(t),t.dfd.reject(!1)}function u(){var t=this;t.timeout&&clearTimeout(t.timeout),t.script.off()&&t.script.element.dispose&&t.script.element.dispose()}var m,f=t["promise/defer"],p=e.pool&&e.pool.dom,g=c.getElementsByTagName("head")[0];return m=t.transport.extend({_settings:{callback:"callback",cache:!1,timeout:5e3},load:function(e,i,n){var o={};return e=t.url.resolve(e),o.id="".concat("jsonp-",t["function/unique/string"]()),o.dfd=new f,o.script=t["dom/element"].create(p?p.obtain("script"):c.createElement("script")),o.settings=t["function/merge"]({},this._settings,n),o.timeout=null,o.script.setAttribute("async",!0),s.call(o,e,i),o.dfd.promise}})},window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/transport/xhr.js b/dist/3.7.1/min/transport/xhr.js similarity index 97% rename from dist/3.7.0/min/transport/xhr.js rename to dist/3.7.1/min/transport/xhr.js index 3b417ea2..5f779343 100644 --- a/dist/3.7.0/min/transport/xhr.js +++ b/dist/3.7.1/min/transport/xhr.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("transport/xhr",t,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(t,e,n,r,o,i,u){"use strict";function s(t,e,n){var r,o=this,i=o.xhr,u=o.settings;e=u.cache===!1?"".concat(e,e.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):e,e=n&&"GET"===t?"".concat(e,e.indexOf("?")>-1?"&":"?",n):e;for(r in u.xhrOptions)i[r]=u.xhrOptions[r];if(i.open(t,e,u.async,u.username,u.password),i.setRequestHeader){i.setRequestHeader("Accept",u.accept),n&&"GET"!==t&&i.setRequestHeader("Content-Type",u.contentType);for(r in u.header)i.setRequestHeader(r,u.header[r])}i.timeout=u.timeout,i.onprogress=function(t){a.call(o,t)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){d.call(o)},u.timeout)}function a(t){var e=this;e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){d.call(e)},e.settings.timeout)}function c(){var t=this,e=t.xhr,n=t.dfd;(e.readyState===u||4===e.readyState)&&(f.call(t),e.status===u||200===e.status?n.resolve({data:e.responseText,xhr:e}):n.reject({status:e.status,xhr:e}))}function l(){var t=this;f.call(t),t.dfd.reject()}function d(){var t=this;t.xhr.abort(),f.call(t),t.dfd.reject()}function f(){var t=this,e=t.xhr;t.timeout&&clearTimeout(t.timeout),e.onprogress=e.onreadystatechange=e.onerror=null}var h,p=t["promise/defer"],m="undefined"!=typeof o.XMLHttpRequest?function(e){return t.url.isLocal(e)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(t){return null}};return h=t.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(e,n,r,o){var i={};return n=t.url.resolve(n),i.url=n,i.id="".concat("xhr-",t["function/unique/string"]()),i.dfd=new p,i.xhr=m(n),i.settings=t["function/merge"]({},this._settings,o),i.timeout=null,s.call(i,e.toUpperCase(),n,r),i.dfd.promise},get:function(t,e,n){return this.load("GET",t,e,n)},post:function(t,e,n){return this.load("POST",t,e,n)},put:function(t,e,n){return this.load("PUT",t,e,n)},"delete":function(t,e,n){return this.load("DELETE",t,e,n)},head:function(t,e,n){return this.load("HEAD",t,e,n)}})},window,document); \ No newline at end of file diff --git a/dist/3.7.0/min/url.js b/dist/3.7.1/min/url.js similarity index 91% rename from dist/3.7.0/min/url.js rename to dist/3.7.1/min/url.js index cc19d732..13ebde07 100644 --- a/dist/3.7.0/min/url.js +++ b/dist/3.7.1/min/url.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,o,r,c,i){"use strict";function a(e){var t=c.createElement("a");return t.href=e||"",t}var s,u,f=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{s=location}catch(l){s=a()}return u=new RegExp("".concat("^",s.protocol,"//",s.hostname),"i"),e.base.extend({resolve:function(e){return a(e).href},redirect:function(e,t){t=t||r,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},o=a(e).search.split("+").join(" ");t=f.exec(o);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return u.test(this.resolve(e))}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/vector/2d.js b/dist/3.7.1/min/vector/2d.js similarity index 95% rename from dist/3.7.0/min/vector/2d.js rename to dist/3.7.1/min/vector/2d.js index 3b889115..c576eade 100644 --- a/dist/3.7.0/min/vector/2d.js +++ b/dist/3.7.1/min/vector/2d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("vector/2d",t,["../base"])}(function(t,i,s,h,e,n,o){"use strict";var y,r=180/Math.PI,u=Math.PI/180,c=i.pool&&i.pool.object;return y=t.base.extend({_temp:null,x:null,y:null,_constructor:function(t,i){this._temp=c?c.obtain():{},this._temp.x=0,this._temp.y=0,this.x=t||0,this.y=i||0},_obtain:function(t,i){this.x=t||0,this.y=i||0},_destroy:function(){this._temp=this._temp.dispose&&this._temp.dispose()},getAngle:function(t){return t?Math.atan2(this.y,this.x):Math.atan2(this.y,this.x)*r%360},getLength:function(t){return t?this.x*this.x+this.y*this.y:Math.sqrt(this.x*this.x+this.y*this.y)},rotate:function(t,i){var s=Math.cos(t*(i?1:u)),h=Math.sin(t*(i?1:u));return this._temp.x=this.x,this._temp.y=this.y,this.x=this._temp.x*s-this._temp.y*h,this.y=this._temp.x*h+this._temp.y*s,this},invert:function(){return this.x=-this.x,this.y=-this.y,this},add:function(t){return this.x+="object"==typeof t?t.x:t,this.y+="object"==typeof t?t.y:t,this},subtract:function(t){return this.x-="object"==typeof t?t.x:t,this.y-="object"==typeof t?t.y:t,this},multiply:function(t){return this.x*="object"==typeof t?t.x:t,this.y*="object"==typeof t?t.y:t,this},divide:function(t){return this.x/="object"==typeof t?t.x:t,this.y/="object"==typeof t?t.y:t,this}})}); \ No newline at end of file diff --git a/dist/3.7.0/min/widget/image/adapt.js b/dist/3.7.1/min/widget/image/adapt.js similarity index 97% rename from dist/3.7.0/min/widget/image/adapt.js rename to dist/3.7.1/min/widget/image/adapt.js index d4bdf167..67b285aa 100644 --- a/dist/3.7.0/min/widget/image/adapt.js +++ b/dist/3.7.1/min/widget/image/adapt.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("widget/image/adapt",e,["../../dom/element","../../dom/element/emerge","../../component/sense"])}(function(e,t,i,n,a,o,r){"use strict";function l(e){var t=this;return t._container.setStyle("paddingBottom",100*e+"%"),t}function c(e,t){var i=this;e.mql=h.create(t).on("matched dematched",function(){d.call(i)})}function d(){for(var e,t,i,n,o,c,d=this,s=0;(e=d._candidates[s])!==r;s++)if(!e.mql||e.mql.matches&&e.mql.matches()===!0){l.call(d,e.ratio),d._visible===!0&&(t=d._image||(d._image=A.create("",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",alt:d._caption},{position:"absolute",display:"block",width:"100%",height:"100%",top:"0",left:"0",margin:"0",padding:"0"}).appendTo(d._container)),i=t.element.getBoundingClientRect(),n=Math.round(i.width),o=Math.round(i.width*e.ratio),c=e.url.replace(g,"$1."+n+"x"+o+"@"+(a.devicePixelRatio||1)+".$2"),t.setAttribute("src",c));break}}function s(){for(var e,t=0;(e=_[t])!==r;t++)d.call(e)}function m(){a.clearTimeout(u),u=a.setTimeout(s,200)}var p,u,g=new RegExp("(.+?).(jpg|jpeg|png|gif|webp)$"),A=e["dom/element"],h=e["component/sense"],_=[];return p=e["dom/element/emerge"].extend({_visible:!1,_candidates:null,_container:null,_image:null,_caption:null,_constructor:function(e,t){var i,n,a,o,s=this,m=0;for(p._parent._constructor.call(s,e,t),i=parseFloat(s.getAttribute("data-ratio")||1),n=s.find('[itemprop="source"],[itemprop="contentUrl"]'),s._candidates=[],s._container=A.create("
").setStyles({position:"relative",display:"block",width:"100%",height:0,padding:0}).appendTo(s),s._caption=(o=s.find('[itemprop="caption"]')[0])?o.getAttribute("content"):null,l.call(s,i);(a=n[m])!==r;m++){var u=parseFloat(a.getAttribute("data-ratio")||i),g=a.getAttribute("data-media")||null;s._candidates.push({ratio:u,url:a.getAttribute("content"),mql:g}),g&&c.call(s,s._candidates[s._candidates.length-1],g)}s.on("emerged demerged",function(e){s._visible="emerged"===e.type?!0:!1,d.call(s)}),_.push(s)}}),A.create(a).on("resize orientationchange",m),p}); \ No newline at end of file diff --git a/dist/3.7.0/min/worker.js b/dist/3.7.1/min/worker.js similarity index 96% rename from dist/3.7.0/min/worker.js rename to dist/3.7.1/min/worker.js index 3762c3b1..87509456 100644 --- a/dist/3.7.0/min/worker.js +++ b/dist/3.7.1/min/worker.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("worker",e,["./base","./support","./promise/defer"])}(function(e,t,s,n,r,o,p){"use strict";var u=e["promise/defer"],i=new RegExp("Blob$","i"),a=e.support.supportsMethod("Worker"),c=e.support.supportsMethod("URL")?r[e.support.getMethod("URL")]:null,l=e.support.getMethod("Blob")||e.support.getMethod("BlobBuilder"),f="var self = this, regex = new RegExp(',\\s+', 'g'); self.addEventListener('message', function(pEvent) { self.postMessage({ type: 'result', result: self.process(pEvent.data.func).apply(null, pEvent.data.args)}); }, false); self.postProgress = function(pProgress) { self.postMessage({ type: 'progress', progress: pProgress}); }; self.process = function(pFunction) { var functionArguments = pFunction.substring(pFunction.indexOf('(') + 1, pFunction.indexOf(')')).replace(regex, ',').split(','); functionArguments.push(pFunction.substring(pFunction.indexOf('{') + 1, pFunction.lastIndexOf('}'))); return Function.apply(null, functionArguments); };",g=null;return a&&c&&l&&(g=c.createObjectURL(i.test(l)===!0?new r[l]([f],{type:"text/javascript"}):(new r[l]).append(f).getBlob("text/javascript"))),e.base.extend({execute:function(e,t){var s=new u;if(t=t||[],g){var n=new Worker(g);n.addEventListener("message",function(e){switch(e.data.type){case"result":s.resolve(e.data.result)}},!1),n.addEventListener("error",function(e){s.reject(e)},!1),n.postMessage({func:e.toString(),args:t})}else setTimeout(function(){try{s.resolve(e.apply(null,t))}catch(n){s.reject()}},0);return s.promise}})}); \ No newline at end of file diff --git a/dist/latest/max/asset.js b/dist/latest/max/asset.js index f4c6b762..008781d4 100644 --- a/dist/latest/max/asset.js +++ b/dist/latest/max/asset.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/base.js b/dist/latest/max/base.js index d54f7f16..280d061b 100644 --- a/dist/latest/max/base.js +++ b/dist/latest/max/base.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/component/iterator.js b/dist/latest/max/component/iterator.js index 6860daef..6d2d9c7a 100644 --- a/dist/latest/max/component/iterator.js +++ b/dist/latest/max/component/iterator.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/component/remux.js b/dist/latest/max/component/remux.js index 89775204..614f2e6c 100644 --- a/dist/latest/max/component/remux.js +++ b/dist/latest/max/component/remux.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/component/sense.js b/dist/latest/max/component/sense.js index e8811a06..fb494aa1 100644 --- a/dist/latest/max/component/sense.js +++ b/dist/latest/max/component/sense.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/dom/collection.js b/dist/latest/max/dom/collection.js index fea5e55d..7fdcd93c 100644 --- a/dist/latest/max/dom/collection.js +++ b/dist/latest/max/dom/collection.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/dom/element.js b/dist/latest/max/dom/element.js index 5a1753bf..29cb16fc 100644 --- a/dist/latest/max/dom/element.js +++ b/dist/latest/max/dom/element.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -55,7 +55,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -109,6 +109,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -146,7 +149,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -182,13 +185,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -215,13 +215,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -231,13 +228,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -264,13 +258,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, diff --git a/dist/latest/max/dom/element/emerge.js b/dist/latest/max/dom/element/emerge.js index a54f133b..728d9370 100644 --- a/dist/latest/max/dom/element/emerge.js +++ b/dist/latest/max/dom/element/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -83,8 +83,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -108,6 +107,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; diff --git a/dist/latest/max/dom/element/lazyimage.js b/dist/latest/max/dom/element/lazyimage.js index 31d52c72..c3930c08 100644 --- a/dist/latest/max/dom/element/lazyimage.js +++ b/dist/latest/max/dom/element/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -31,8 +31,7 @@ } prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element, modules["function/merge"]({}, defaults, settings || {})); + var self = prototype._parent._constructor.call(this, element, modules["function/merge"]({}, defaults, settings || {})); self.on(EVENT_EMERGED, function onEmerge(event) { if (queue === 0 || event.data === 1) { self.remove(); diff --git a/dist/latest/max/dom/element/shrinkimage.js b/dist/latest/max/dom/element/shrinkimage.js index 230dc99f..e7127ecb 100644 --- a/dist/latest/max/dom/element/shrinkimage.js +++ b/dist/latest/max/dom/element/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -127,8 +127,8 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self = this, foreground, background; - prototype._parent._constructor.call(self, element); + var self, foreground, background; + self = prototype._parent._constructor.call(this, element); self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); @@ -138,6 +138,7 @@ if (background !== "none" && regexBackground.test(background)) { processMain.call(self, background, true); } + return self; }, hide: function() { this.setStyles({ @@ -155,13 +156,14 @@ loader = modules["dom/element"].extend({ _url: null, _constructor: function(url, element) { - var self = this; + var self; if (!element) { element = pool && pool.obtain("img") || document.createElement("img"); } - loader._parent._constructor.call(self, element); + self = loader._parent._constructor.call(this, element); self._url = url; processTransport.call(self, modules["transport/xhr"]); + return self; } }); return prototype; diff --git a/dist/latest/max/dom/event.js b/dist/latest/max/dom/event.js index e30f32cd..ef0796bb 100644 --- a/dist/latest/max/dom/event.js +++ b/dist/latest/max/dom/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/emitter.js b/dist/latest/max/emitter.js index 5f2f5ac0..a2aac40a 100644 --- a/dist/latest/max/emitter.js +++ b/dist/latest/max/emitter.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/function/load/css.js b/dist/latest/max/function/load/css.js index 924b0ac4..61238baa 100644 --- a/dist/latest/max/function/load/css.js +++ b/dist/latest/max/function/load/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/function/merge.js b/dist/latest/max/function/merge.js index 5f972a73..d0ff1233 100644 --- a/dist/latest/max/function/merge.js +++ b/dist/latest/max/function/merge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/function/proximity.js b/dist/latest/max/function/proximity.js index eb531d86..d45e7ea3 100644 --- a/dist/latest/max/function/proximity.js +++ b/dist/latest/max/function/proximity.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/function/unique/string.js b/dist/latest/max/function/unique/string.js index 939afe51..19507af8 100644 --- a/dist/latest/max/function/unique/string.js +++ b/dist/latest/max/function/unique/string.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/function/unique/uuid.js b/dist/latest/max/function/unique/uuid.js index f9f6dfd8..db630e5b 100644 --- a/dist/latest/max/function/unique/uuid.js +++ b/dist/latest/max/function/unique/uuid.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/hook/css.js b/dist/latest/max/hook/css.js index aa337839..b81503ca 100644 --- a/dist/latest/max/hook/css.js +++ b/dist/latest/max/hook/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/hook/event.js b/dist/latest/max/hook/event.js index 7fe08434..351994a2 100644 --- a/dist/latest/max/hook/event.js +++ b/dist/latest/max/hook/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/jquery/extension/selector.js b/dist/latest/max/jquery/extension/selector.js index 0871ef5d..d32c4ea2 100644 --- a/dist/latest/max/jquery/extension/selector.js +++ b/dist/latest/max/jquery/extension/selector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/jquery/function/prefetch.js b/dist/latest/max/jquery/function/prefetch.js index 91189674..0080f5bd 100644 --- a/dist/latest/max/jquery/function/prefetch.js +++ b/dist/latest/max/jquery/function/prefetch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/jquery/plugin/emerge.js b/dist/latest/max/jquery/plugin/emerge.js index 5f5588a5..90925ea4 100644 --- a/dist/latest/max/jquery/plugin/emerge.js +++ b/dist/latest/max/jquery/plugin/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/jquery/plugin/lazyimage.js b/dist/latest/max/jquery/plugin/lazyimage.js index e00ce60e..78f9a379 100644 --- a/dist/latest/max/jquery/plugin/lazyimage.js +++ b/dist/latest/max/jquery/plugin/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/jquery/plugin/shrinkimage.js b/dist/latest/max/jquery/plugin/shrinkimage.js index 62aeb12d..0f7a20bf 100644 --- a/dist/latest/max/jquery/plugin/shrinkimage.js +++ b/dist/latest/max/jquery/plugin/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/particle.js b/dist/latest/max/particle.js index f9f840b8..8ce498ec 100644 --- a/dist/latest/max/particle.js +++ b/dist/latest/max/particle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/array/indexof.js b/dist/latest/max/polyfill/array/indexof.js index 61cd0a0f..9b743578 100644 --- a/dist/latest/max/polyfill/array/indexof.js +++ b/dist/latest/max/polyfill/array/indexof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/document/getelementsbyclassname.js b/dist/latest/max/polyfill/document/getelementsbyclassname.js index d2f64dbf..9844885b 100644 --- a/dist/latest/max/polyfill/document/getelementsbyclassname.js +++ b/dist/latest/max/polyfill/document/getelementsbyclassname.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/document/queryselector.js b/dist/latest/max/polyfill/document/queryselector.js index db8eaca8..617eaf91 100644 --- a/dist/latest/max/polyfill/document/queryselector.js +++ b/dist/latest/max/polyfill/document/queryselector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/document/queryselectorall.js b/dist/latest/max/polyfill/document/queryselectorall.js index f2fb3244..637b9d14 100644 --- a/dist/latest/max/polyfill/document/queryselectorall.js +++ b/dist/latest/max/polyfill/document/queryselectorall.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/element/matches.js b/dist/latest/max/polyfill/element/matches.js index 151e184d..b2b220ef 100644 --- a/dist/latest/max/polyfill/element/matches.js +++ b/dist/latest/max/polyfill/element/matches.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/create.js b/dist/latest/max/polyfill/object/create.js index c8a634db..165b38b7 100644 --- a/dist/latest/max/polyfill/object/create.js +++ b/dist/latest/max/polyfill/object/create.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/defineproperties.js b/dist/latest/max/polyfill/object/defineproperties.js index ffab7508..74f4a575 100644 --- a/dist/latest/max/polyfill/object/defineproperties.js +++ b/dist/latest/max/polyfill/object/defineproperties.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/defineproperty.js b/dist/latest/max/polyfill/object/defineproperty.js index f8f195fd..5f511800 100644 --- a/dist/latest/max/polyfill/object/defineproperty.js +++ b/dist/latest/max/polyfill/object/defineproperty.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/getownpropertydescriptor.js b/dist/latest/max/polyfill/object/getownpropertydescriptor.js index 42789b51..8dac0b97 100644 --- a/dist/latest/max/polyfill/object/getownpropertydescriptor.js +++ b/dist/latest/max/polyfill/object/getownpropertydescriptor.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/getownpropertynames.js b/dist/latest/max/polyfill/object/getownpropertynames.js index f86fb982..dd6a701f 100644 --- a/dist/latest/max/polyfill/object/getownpropertynames.js +++ b/dist/latest/max/polyfill/object/getownpropertynames.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/getprototypeof.js b/dist/latest/max/polyfill/object/getprototypeof.js index 75667740..fa5095a7 100644 --- a/dist/latest/max/polyfill/object/getprototypeof.js +++ b/dist/latest/max/polyfill/object/getprototypeof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/object/keys.js b/dist/latest/max/polyfill/object/keys.js index cc4e2db5..9461eb1c 100644 --- a/dist/latest/max/polyfill/object/keys.js +++ b/dist/latest/max/polyfill/object/keys.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/string/lcfirst.js b/dist/latest/max/polyfill/string/lcfirst.js index 9d4c6ecb..bc86b9cf 100644 --- a/dist/latest/max/polyfill/string/lcfirst.js +++ b/dist/latest/max/polyfill/string/lcfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/string/trim.js b/dist/latest/max/polyfill/string/trim.js index 19635c0a..5fad6d52 100644 --- a/dist/latest/max/polyfill/string/trim.js +++ b/dist/latest/max/polyfill/string/trim.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/string/ucfirst.js b/dist/latest/max/polyfill/string/ucfirst.js index 861a0cbc..c5454c05 100644 --- a/dist/latest/max/polyfill/string/ucfirst.js +++ b/dist/latest/max/polyfill/string/ucfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/addeventlistener.js b/dist/latest/max/polyfill/window/addeventlistener.js index ade1bdcd..f5aba1df 100644 --- a/dist/latest/max/polyfill/window/addeventlistener.js +++ b/dist/latest/max/polyfill/window/addeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/customevent.js b/dist/latest/max/polyfill/window/customevent.js index 8e5815ca..533208cc 100644 --- a/dist/latest/max/polyfill/window/customevent.js +++ b/dist/latest/max/polyfill/window/customevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/dispatchevent.js b/dist/latest/max/polyfill/window/dispatchevent.js index 2ffad3c4..fde8b483 100644 --- a/dist/latest/max/polyfill/window/dispatchevent.js +++ b/dist/latest/max/polyfill/window/dispatchevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/getcomputedstyle.js b/dist/latest/max/polyfill/window/getcomputedstyle.js index e88971ea..de9feeb7 100644 --- a/dist/latest/max/polyfill/window/getcomputedstyle.js +++ b/dist/latest/max/polyfill/window/getcomputedstyle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/matchmedia.js b/dist/latest/max/polyfill/window/matchmedia.js index e8f49471..4673a1da 100644 --- a/dist/latest/max/polyfill/window/matchmedia.js +++ b/dist/latest/max/polyfill/window/matchmedia.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/promise.js b/dist/latest/max/polyfill/window/promise.js index d146eaf2..29cdf9f0 100644 --- a/dist/latest/max/polyfill/window/promise.js +++ b/dist/latest/max/polyfill/window/promise.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/polyfill/window/removeeventlistener.js b/dist/latest/max/polyfill/window/removeeventlistener.js index b5511e21..95fd82da 100644 --- a/dist/latest/max/polyfill/window/removeeventlistener.js +++ b/dist/latest/max/polyfill/window/removeeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/pool.js b/dist/latest/max/pool.js index b8d29c3c..c5281501 100644 --- a/dist/latest/max/pool.js +++ b/dist/latest/max/pool.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -27,9 +27,9 @@ if (metrics.inPool + spliceLength <= settings.maxPoolsize) { durationStart = new Date().getTime(); for (var i = 0; i < spliceLength; i++) { - var element = elements[i], quid = element._quid, dispose = element.dispose; + var element = elements[i], uuid = element._puid, dispose = element.dispose; element = self._dispose(element); - element._quid = quid; + element._puid = uuid; element.dispose = dispose; self._getPool.call(self, element).push(element); } @@ -84,7 +84,7 @@ }, _initElement: function(element) { var self = this; - element._quid = modules["function/unique/uuid"](); + element._puid = modules["function/unique/uuid"](); element.dispose = function() { self.dispose(element); }; @@ -110,7 +110,7 @@ }, dispose: function(element) { var self = this, queue = self._queue; - if (!element._quid) { + if (!element._puid) { element = self._initElement(element); self.metrics.inUse++; } diff --git a/dist/latest/max/pool/array.js b/dist/latest/max/pool/array.js index 63e4716e..2ccf75b1 100644 --- a/dist/latest/max/pool/array.js +++ b/dist/latest/max/pool/array.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/pool/dom.js b/dist/latest/max/pool/dom.js index 28051e6b..40127a0f 100644 --- a/dist/latest/max/pool/dom.js +++ b/dist/latest/max/pool/dom.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/pool/module.js b/dist/latest/max/pool/module.js index 2b0490f6..4a065850 100644 --- a/dist/latest/max/pool/module.js +++ b/dist/latest/max/pool/module.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -17,7 +17,7 @@ _module: null, _destroy: null, _constructor: function(module, options, useShared) { - var self = this, uuid = module._quid || (module._quid = generateUuid()), pointer = useShared && (shared.pool || (shared.pool = {})) && (shared.pool.module || (shared.pool.module = {})); + var self = this, uuid = module._puid || (module._puid = generateUuid()), pointer = useShared && (shared.pool || (shared.pool = {})) && (shared.pool.module || (shared.pool.module = {})); if (useShared === true && pointer[uuid]) { return pointer[uuid]; } else { diff --git a/dist/latest/max/pool/object.js b/dist/latest/max/pool/object.js index 46189f91..80136816 100644 --- a/dist/latest/max/pool/object.js +++ b/dist/latest/max/pool/object.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/promise/all.js b/dist/latest/max/promise/all.js index 2c63b612..0724bb7c 100644 --- a/dist/latest/max/promise/all.js +++ b/dist/latest/max/promise/all.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/promise/defer.js b/dist/latest/max/promise/defer.js index f928d876..564415d0 100644 --- a/dist/latest/max/promise/defer.js +++ b/dist/latest/max/promise/defer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/promise/race.js b/dist/latest/max/promise/race.js index 15c34283..bc9d5661 100644 --- a/dist/latest/max/promise/race.js +++ b/dist/latest/max/promise/race.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/proxy.js b/dist/latest/max/proxy.js index 6ce3c5e6..afc6920b 100644 --- a/dist/latest/max/proxy.js +++ b/dist/latest/max/proxy.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/renderer.js b/dist/latest/max/renderer.js index cdad6cd5..824f6f7b 100644 --- a/dist/latest/max/renderer.js +++ b/dist/latest/max/renderer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support.js b/dist/latest/max/support.js index 58af47ef..7667d262 100644 --- a/dist/latest/max/support.js +++ b/dist/latest/max/support.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/capability/datauri.js b/dist/latest/max/support/capability/datauri.js index ede5dc4b..fc2b1637 100644 --- a/dist/latest/max/support/capability/datauri.js +++ b/dist/latest/max/support/capability/datauri.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/capability/touch.js b/dist/latest/max/support/capability/touch.js index d929014e..77b8c4fa 100644 --- a/dist/latest/max/support/capability/touch.js +++ b/dist/latest/max/support/capability/touch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/borderradius.js b/dist/latest/max/support/css/borderradius.js index e2d478be..ba3fc165 100644 --- a/dist/latest/max/support/css/borderradius.js +++ b/dist/latest/max/support/css/borderradius.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/boxshadow.js b/dist/latest/max/support/css/boxshadow.js index e31bbca9..87400548 100644 --- a/dist/latest/max/support/css/boxshadow.js +++ b/dist/latest/max/support/css/boxshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/rem.js b/dist/latest/max/support/css/rem.js index 65fc9e67..fbd85155 100644 --- a/dist/latest/max/support/css/rem.js +++ b/dist/latest/max/support/css/rem.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/rgba.js b/dist/latest/max/support/css/rgba.js index 0861c79b..b5e83a0c 100644 --- a/dist/latest/max/support/css/rgba.js +++ b/dist/latest/max/support/css/rgba.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/textshadow.js b/dist/latest/max/support/css/textshadow.js index 1b5e2329..fa819de7 100644 --- a/dist/latest/max/support/css/textshadow.js +++ b/dist/latest/max/support/css/textshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/transform.js b/dist/latest/max/support/css/transform.js index faa946ff..72830267 100644 --- a/dist/latest/max/support/css/transform.js +++ b/dist/latest/max/support/css/transform.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/transform/2d.js b/dist/latest/max/support/css/transform/2d.js index 625b66cd..a1ca6a23 100644 --- a/dist/latest/max/support/css/transform/2d.js +++ b/dist/latest/max/support/css/transform/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/transform/3d.js b/dist/latest/max/support/css/transform/3d.js index ac708fdf..4e63c93a 100644 --- a/dist/latest/max/support/css/transform/3d.js +++ b/dist/latest/max/support/css/transform/3d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/css/transition.js b/dist/latest/max/support/css/transition.js index e8cc0e77..72ad5e67 100644 --- a/dist/latest/max/support/css/transition.js +++ b/dist/latest/max/support/css/transition.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/canvas.js b/dist/latest/max/support/element/canvas.js index 260e7205..1b280eb9 100644 --- a/dist/latest/max/support/element/canvas.js +++ b/dist/latest/max/support/element/canvas.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/canvas/todataurl.js b/dist/latest/max/support/element/canvas/todataurl.js index 50fd0515..3e0f476c 100644 --- a/dist/latest/max/support/element/canvas/todataurl.js +++ b/dist/latest/max/support/element/canvas/todataurl.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/canvas/todataurl/jpeg.js b/dist/latest/max/support/element/canvas/todataurl/jpeg.js index 7dc98840..e425edc3 100644 --- a/dist/latest/max/support/element/canvas/todataurl/jpeg.js +++ b/dist/latest/max/support/element/canvas/todataurl/jpeg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/canvas/todataurl/png.js b/dist/latest/max/support/element/canvas/todataurl/png.js index 9879acfd..b552be3e 100644 --- a/dist/latest/max/support/element/canvas/todataurl/png.js +++ b/dist/latest/max/support/element/canvas/todataurl/png.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/canvas/todataurl/webp.js b/dist/latest/max/support/element/canvas/todataurl/webp.js index e27a5592..d35bf642 100644 --- a/dist/latest/max/support/element/canvas/todataurl/webp.js +++ b/dist/latest/max/support/element/canvas/todataurl/webp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/svg.js b/dist/latest/max/support/element/svg.js index 1d2e854c..09f1f040 100644 --- a/dist/latest/max/support/element/svg.js +++ b/dist/latest/max/support/element/svg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/video.js b/dist/latest/max/support/element/video.js index 1848a511..a8eeda60 100644 --- a/dist/latest/max/support/element/video.js +++ b/dist/latest/max/support/element/video.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/video/mp4.js b/dist/latest/max/support/element/video/mp4.js index 10ed370b..40a3f87a 100644 --- a/dist/latest/max/support/element/video/mp4.js +++ b/dist/latest/max/support/element/video/mp4.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/video/ogg.js b/dist/latest/max/support/element/video/ogg.js index 711c3989..901e80ac 100644 --- a/dist/latest/max/support/element/video/ogg.js +++ b/dist/latest/max/support/element/video/ogg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/support/element/video/webm.js b/dist/latest/max/support/element/video/webm.js index 87944412..e8fa8292 100644 --- a/dist/latest/max/support/element/video/webm.js +++ b/dist/latest/max/support/element/video/webm.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/transport.js b/dist/latest/max/transport.js index 5d5eed45..d6624f2f 100644 --- a/dist/latest/max/transport.js +++ b/dist/latest/max/transport.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/transport/jsonp.js b/dist/latest/max/transport/jsonp.js index 3baa8961..bd28a906 100644 --- a/dist/latest/max/transport/jsonp.js +++ b/dist/latest/max/transport/jsonp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/transport/xhr.js b/dist/latest/max/transport/xhr.js index 958483c6..c804864a 100644 --- a/dist/latest/max/transport/xhr.js +++ b/dist/latest/max/transport/xhr.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/url.js b/dist/latest/max/url.js index a007eacb..bc98d35e 100644 --- a/dist/latest/max/url.js +++ b/dist/latest/max/url.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/vector/2d.js b/dist/latest/max/vector/2d.js index ca950101..9b23bc4f 100644 --- a/dist/latest/max/vector/2d.js +++ b/dist/latest/max/vector/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/widget/image/adapt.js b/dist/latest/max/widget/image/adapt.js index a7b826a9..c26a2f87 100644 --- a/dist/latest/max/widget/image/adapt.js +++ b/dist/latest/max/widget/image/adapt.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/worker.js b/dist/latest/max/worker.js index 13327ccb..b7a2fa94 100644 --- a/dist/latest/max/worker.js +++ b/dist/latest/max/worker.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/min/asset.js b/dist/latest/min/asset.js index 9acc112a..4745a2d6 100644 --- a/dist/latest/min/asset.js +++ b/dist/latest/min/asset.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("asset",e,["./emitter","./transport/xhr","./promise/defer","./function/unique/uuid"])}(function(e,o,t,r,i,n,u){"use strict";function a(e){m.push(e),1===m.length&&c()}function c(){l(m[0]).then(function(){m.splice(0,1)&&m.length>=1&&c()},function(){m.splice(0,1)&&m.length>=1&&c()})}function l(e){var o=d[e._uuid],t=o.dfd,r=o.url;return v.get(r,null,f).then(function(i){var u=i.data,a=o.id,c=o.version,l=o.storage;e.emit("loaded",r,a,c,u),l&&(n.cookie=o.cookie+"="+encodeURIComponent(c)+"; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",localStorage[l.version]=c,localStorage[l.value]=u,e.emit("stored",r,a,c,u,l.version,l.value)),t.resolve(localStorage[l.value])},function(){t.reject()})}var s,d={},v=e["transport/xhr"],f={cache:!0},g=e["promise/defer"],p=e["function/unique/uuid"],h=new RegExp("/","g"),m=[];return s=e.emitter.extend({_uuid:null,_constructor:function(e,o,t){var r=this,i=p(),n=d[i]={dfd:new g,url:e};s._parent._constructor.call(r),r._uuid=i,o&&t&&(n.id=o,n.version=t,n.cookie=encodeURIComponent("qoopido[asset]["+o.replace(h,"][")+"]"),n.storage={version:"@"+o,value:"©"+o})},fetch:function(){var e=this,o=d[e._uuid],t=o.dfd,r=o.url,i=o.id,n=o.version,u=o.storage,c=u&&u.version&&localStorage[u.version];if(c&&c>=n){var l=localStorage[o.storage.value];e.emit("hit",r,i,n,l),t.resolve(l)}else e.emit("miss",r,i,n),a(e);return t.promise},clear:function(){var e=this,o=d[e._uuid],t=o.storage;return t&&(n.cookie=o.cookie+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",delete localStorage[t.version],delete localStorage[t.value],e.emit("cleared",o.url,o.id,o.version)),e}})},window,document); \ No newline at end of file diff --git a/dist/latest/min/base.js b/dist/latest/min/base.js index e6cae1fe..08e757c5 100644 --- a/dist/latest/min/base.js +++ b/dist/latest/min/base.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t,r,o,n,c){"use strict";function i(e,t,i,u){var s,f=e.split("/");return d[e]?d[e]:(s=function(){if(i)for(var s,g,y=f.slice(0,-1).join("/"),j=0;(s=i[j])!==c;j++)g=l.test(s),g&&(s=p(y+"/"+s)),!d[s]&&arguments[j]&&(d[s]=arguments[j]),g&&!d[s]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",s));return d[e]=t(d,a,f,r,o,n,c),u&&u(d[e]),d[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(s):"function"==typeof define&&define.amd?i?define(i,s):define(s):s()))}function u(e,t,r){i(e,t,r,function(t){d[e]=t.create()})}function p(e){for(var t;(t=e.replace(g,""))!==e;)e=t;return e.replace(y,"")}var s=t.qoopido||(t.qoopido={register:i,registerSingleton:u}),a=s.shared||(s.shared={}),d=s.modules||(s.modules={}),f=[],l=new RegExp("^\\.+\\/"),g=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),i("base",e,f)}(function(e,t,r,o,n,c,i){"use strict";function u(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==i;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function p(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=p,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,u(e)),t===!0&&(r.extend=p),r}}},this,navigator,window,document); \ No newline at end of file diff --git a/dist/latest/min/component/iterator.js b/dist/latest/min/component/iterator.js index 2b02b709..683e0e87 100644 --- a/dist/latest/min/component/iterator.js +++ b/dist/latest/min/component/iterator.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("component/iterator",t,["../emitter","../function/merge"])}(function(t,e,n,s,a,i,r){"use strict";var u,l={loop:!0,initial:0};return u=t.emitter.extend({_settings:null,_state:null,_constructor:function(e,n){var s=this;u._parent._constructor.call(s),s._settings=t["function/merge"]({},l,n||{}),s._state={length:null,index:null,item:null,data:null},e!==r&&null!==e&&s.setData(e)},getState:function(){var t=this;return t._state},setData:function(t){var e=this;return"object"==typeof t&&t.length&&(e._state.data=t,e._state.length=t.length,null!==e._settings.initial&&e.seek(e._settings.initial)),e},getData:function(){var t=this;return t._state.data},getLength:function(){var t=this;return t._state.length},getIndex:function(){var t=this;return t._state.index},getCurrent:function(){var t=this;return t._state.data[t._state.index]||null},getItem:function(t){var e=this;return e._state.data[t]||null},first:function(){var t=this;return t.seek(0)},last:function(){var t=this;return t.seek(t._state.length-1)},previous:function(){var t,e=this;return t=e._settings.loop===!0?(e._state.index-1)%e._state.length:e._state.index-1,t=e._settings.loop===!0&&0>t?e._state.length+t:t,e.seek(t)},next:function(){var t,e=this;return t=e._settings.loop===!0?(e._state.index+1)%e._state.length:e._state.index+1,e.seek(t)},seek:function(t){var e=this;return t=parseInt(t,10),t!==e._state.index&&e._state.data[t]!==r&&(e._state.index=t,e._state.item=e._state.data[t]),e}})}); \ No newline at end of file diff --git a/dist/latest/min/component/remux.js b/dist/latest/min/component/remux.js index 9d839cbd..f911f270 100644 --- a/dist/latest/min/component/remux.js +++ b/dist/latest/min/component/remux.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("component/remux",t,["../emitter","./sense"])}(function(t,n,e,i,o,a,u){"use strict";function r(t,n){var e=this;return t&&n&&(c.className=t,c.style.fontSize=n+"px",d.layout=t,d.fontsize=n,(h.fontsize!==d.fontsize||h.layout!==d.layout)&&(d.ratio.device=o.devicePixelRatio||1,d.ratio.fontsize=d.fontsize/f,d.ratio.total=d.ratio.device*d.ratio.fontsize,h.layout!==d.layout&&e.emit("layoutchanged",d),h.fontsize!==d.fontsize&&e.emit("fontsizechanged",d),e.emit("statechanged",d),h.fontsize=d.fontsize,h.layout=d.layout)),e}function s(n,e,i){var a=this;o.setTimeout(function(){t["component/sense"].create(n).on("matched",function(){r.call(a,e,i)})},0)}var l,c=a.getElementsByTagName("html")[0],f=16,d={fontsize:null,layout:null,ratio:{}},h={fontsize:null,layout:null};return l=t.emitter.extend({_constructor:function(){var t=this,n=parseInt(c.getAttribute("data-base"),10);l._parent._constructor.call(t),isNaN(n)===!1&&(f=n)},getState:function(){return d},getLayout:function(){return d.layout},getFontsize:function(){return d.fontsize},setLayout:function(t,n){var e=this;return r.call(e,t,n),e},addLayout:function(t,n){var e,i,o,a,u,r,l,c,d=this;arguments.length>1?(e={},e[t]=n):e=arguments[0];for(i in e)for(o=e[i],a=o.min;a<=o.max;a++)l=Math.round(o.width*(a/f)),c=Math.round(o.width*((a+1)/f))-1,s.call(d,"screen and (min-width: "+l+"px) and (max-width: "+c+"px )",i,a),u=!u||l=r.width?{width:c,fontsize:a,layout:i}:r;return s.call(d,"screen and (max-width: "+(u.width-1)+"px)",u.layout,u.fontsize),s.call(d,"screen and (min-width: "+(r.width+1)+"px)",r.layout,r.fontsize),d}})}); \ No newline at end of file diff --git a/dist/latest/min/component/sense.js b/dist/latest/min/component/sense.js index b6091acb..3cd8f168 100644 --- a/dist/latest/min/component/sense.js +++ b/dist/latest/min/component/sense.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){var e=["../emitter"];window.matchMedia||e.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",t,e)}(function(t,e,n,i,c,o,a){"use strict";function r(){var t=this,e=t.mql;t.emit(e.matches===!0?"matched":"dematched")}var m,s={};return m=t.emitter.extend({mql:null,_constructor:function(t){var e=this,n=e.mql=s[t]||(s[t]=c.matchMedia(t)),i=function(){r.call(e)};m._parent._constructor.call(e),n.addListener(i),c.setTimeout(i,0)},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/dist/latest/min/dom/collection.js b/dist/latest/min/dom/collection.js index c736eacd..fb55b30e 100644 --- a/dist/latest/min/dom/collection.js +++ b/dist/latest/min/dom/collection.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("dom/collection",e,["../base","./element"])}(function(e,t,n,r,l,o,s){"use strict";function i(){for(var e,t=this,n=t.elements,r=o.createDocumentFragment(),l=0;(e=n[l])!==s;l++)r.appendChild(e.element);return r}function c(e){for(var t,n=this,r=n.elements,l=Array.prototype.slice.call(arguments,1),o=0;(t=r[o])!==s;o++)t[e].apply(t,l);return n}function a(e,t){var n=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e[t].call(e,i.call(n)),e.dispose&&e.dispose()),n}var u=e["dom/element"],p=e["pool/module"]&&e["pool/module"].create(u,null,!0)||null;return e.base.extend({elements:null,_constructor:function(e,t,n){var r,l,i,c,a=this;if(a.elements=[],e&&"string"==typeof e)for(r=e.split(","),e=[],i=0;(l=r[i])!==s;i++)try{e=e.concat(Array.prototype.slice.call(o.querySelectorAll(l)))}catch(f){}for(i=0;(c=e[i])!==s;i++)a.elements.push(p&&p.obtain(c)||u.create(c));"object"==typeof t&&null!==t&&a.setAttributes(t),"object"==typeof n&&null!==n&&a.setStyles(n)},get:function(e){return this.elements[e]||null},each:function(e){for(var t,n=this,r=n.elements,l=0;(t=r[l])!==s;l++)e.call(t,l);return n},setAttribute:function(e,t){return c.call(this,"setAttribute",e,t)},setAttributes:function(e){return c.call(this,"setAttributes",e)},removeAttribute:function(e){return c.call(this,"removeAttribute",e)},removeAttributes:function(e){return c.call(this,"removeAttributes",e)},setStyle:function(e,t){return c.call(this,"setStyle",e,t)},setStyles:function(e){return c.call(this,"setStyles",e)},removeStyle:function(e){return c.call(this,"removeStyle",e)},removeStyles:function(e){return c.call(this,"removeStyles",e)},addClass:function(e){return c.call(this,"addClass",e)},removeClass:function(e){return c.call(this,"removeClass",e)},toggleClass:function(e){return c.call(this,"toggleClass",e)},prependTo:function(e){return a.call(this,e,"prepend")},appendTo:function(e){return a.call(this,e,"append")},insertBefore:function(e){var t=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e.element.parentNode.insertBefore(i.call(t),e.element),e.dispose&&e.dispose()),t},insertAfter:function(e){var t=this;return e=e&&e.element?e:p&&p.obtain(e)||u.create(e),e&&(e.element.nextSibling?e.element.parentNode.insertBefore(i.call(t),e.element.nextSibling):e.element.appendChild(i.call(t)),e.dispose&&e.dispose()),t},replace:function(e){for(var t,n=this,r=n.elements,l=0;(t=r[l])!==s;l++)0===l?t.replace(e):t.insertAfter(r[l-1]);return n},hide:function(){return c.call(this,"hide")},show:function(){return c.call(this,"show")},remove:function(e){var t,n,r=this,l=r.elements;if(!e&&0!==e||(n=r.elements[e])===s)for(t=l.length-1;(n=l[t])!==s;t--)n.remove(),n.dispose&&n.dispose(),l.pop();else n.remove(),n.dispose&&n.dispose(),l.splice(e,1);return r},on:function(){return c.apply(this,["on"].concat(Array.prototype.slice.call(arguments)))},one:function(e){return c.apply(this,["one"].concat(Array.prototype.slice.call(arguments)))},off:function(e,t){return c.apply(this,["off"].concat(Array.prototype.slice.call(arguments)))},emit:function(e,t){return c.apply(this,["emit"].concat(Array.prototype.slice.call(arguments)))}})}); \ No newline at end of file diff --git a/dist/latest/min/dom/element.js b/dist/latest/min/dom/element.js index 0f3741d3..4d5be497 100644 --- a/dist/latest/min/dom/element.js +++ b/dist/latest/min/dom/element.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,i,o,s){"use strict";function l(e){var t,n,r;for(t in C)n=C[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function u(e,t,n){var r=this,i=l(e),s=o.createEvent(i.type);s[i.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function a(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=o.createElement(t)):e=o.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function f(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var c="object",m="string",p=e["function/unique/uuid"],d=o.getElementsByTagName("head")[0],h="textContent"in o.createElement("a")?"textContent":"innerText",v="undefined"!=typeof d.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},g="undefined"!=typeof d.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),E=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,S=e["hook/css"],w={},C={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,i=this;return e=a(e),r=e._quid,r?i=w[r]:(r=e._quid=p(),i.type=e.tagName,i.element=e,i._listener={},w[r]=i),"object"==typeof t&&null!==t&&i.setAttributes(t),"object"==typeof n&&null!==n&&i.setStyles(n),i!==this&&i.dispose&&i.dispose(),i},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(b),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===m?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[i])!==s;i++)r[t]=n.element.getAttributes(t);return r},setAttribute:function(e,t){var n=this;return e&&typeof e===m&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===c&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===m&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,n=this,r=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[r])!==s;r++)n.element.removeAttribute(t);return n},getStyle:function(e){var t=this;return e&&typeof e===m?S.process("get",t.element,e):void 0},getStyles:function(e){var t,n=this,r={},i=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[i])!==s;i++)r[t]=S.process("get",n.element,t);return r},setStyle:function(e,t){var n=this;return e&&typeof e===m&&S.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===c&&!e.length)for(t in e)S.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===m&&t.setStyle(e,""),t},removeStyles:function(e){var t,n=this,r=0;if(e)for(e=typeof e===m?e.split(" "):e;(t=e[r])!==s;r++)n.setStyle(t,"");return n},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=g.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=v.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||a(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||a(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||a(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,i=r.element,o=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],a=l._quid||(l._quid=p()),c=0;for(t=t.split(" ");(n=t[c])!==s;c++){var m=n+"-"+a,d=function(t){var n;t=E&&E.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=p(),(!o||f(t,o))&&l.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,u.call(r,n))),t.dispose&&t.dispose()};d.type=n,r._listener[m]=d,i.addEventListener(n,d)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=(arguments.length>3?arguments[3]:arguments[2])!==!1,o=function(n){t.off(i===!0?n.type:e,o),r.call(this,n,n.originalEvent.detail)};return r._quid=o._quid=p(),n?t.on(e,n,o):t.on(e,o),t},off:function(e,t){var n,r,i,o=this,l=o.element,u=0;for(e=e.split(" ");(n=e[u])!==s;u++)r=t._quid&&n+"-"+t._quid||null,i=r&&o._listener[r]||null,i?(l.removeEventListener(n,i),delete o._listener[r]):l.removeEventListener(n,t);return o},emit:function(e,t){var n=this;return u.call(n,e,t),n}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,i,o,s){"use strict";function l(e){var t,n,r;for(t in q)n=q[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function u(e,t,n){var r=this,i=l(e),s=o.createEvent(i.type);s[i.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function a(e){var t;if("string"==typeof e)try{b.test(e)===!0?(t=e.replace(b,"$1").toLowerCase(),e=o.createElement(t)):e=o.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(w)}function f(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var m="object",p="string",d=e["function/unique/uuid"],h=o.getElementsByTagName("head")[0],v="textContent"in o.createElement("a")?"textContent":"innerText",g="undefined"!=typeof h.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof h.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},b=new RegExp("^<(\\w+)\\s*/>$"),E=new RegExp("^[^-]+"),w=new RegExp(" +","g"),S=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,C=e["hook/css"],A={},q={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,i=this;return e=a(e),r=e._quid,r?i=A[r]:(r=e._quid=d(),i.type=e.tagName,i.element=e,i._listener={},A[r]=i),"object"==typeof t&&null!==t&&i.setAttributes(t),"object"==typeof n&&null!==n&&i.setStyles(n),i!==this&&this.dispose&&this.dispose(),i},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(E),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[v]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[v]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===p?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,n={},r=c(arguments),i=0;(e=r[i])!==s;i++)n[e]=t.element.getAttribute(e);return n},setAttribute:function(e,t){var n=this;return e&&typeof e===p&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===m&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===p&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,n=c(arguments),r=0;(e=n[r])!==s;r++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===p?C.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,n={},r=c(arguments),i=0;(e=r[i])!==s;i++)n[e]=C.process("get",t.element,e);return n},setStyle:function(e,t){var n=this;return e&&typeof e===p&&C.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===m&&!e.length)for(t in e)C.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===p&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,n=c(arguments),r=0;(e=n[r])!==s;r++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=y.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||a(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||a(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||a(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||a(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||a(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,i=r.element,o=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],a=l._quid||(l._quid=d()),c=0;for(t=t.split(" ");(n=t[c])!==s;c++){var m=n+"-"+a,p=function(t){var n;t=S&&S.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=d(),(!o||f(t,o))&&l.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,u.call(r,n))),t.dispose&&t.dispose()};p.type=n,r._listener[m]=p,i.addEventListener(n,p)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=(arguments.length>3?arguments[3]:arguments[2])!==!1,o=function(n){t.off(i===!0?n.type:e,o),r.call(this,n,n.originalEvent.detail)};return r._quid=o._quid=d(),n?t.on(e,n,o):t.on(e,o),t},off:function(e,t){var n,r,i,o=this,l=o.element,u=0;for(e=e.split(" ");(n=e[u])!==s;u++)r=t._quid&&n+"-"+t._quid||null,i=r&&o._listener[r]||null,i?(l.removeEventListener(n,i),delete o._listener[r]):l.removeEventListener(n,t);return o},emit:function(e,t){var n=this;return u.call(n,e,t),n}})}); \ No newline at end of file diff --git a/dist/latest/min/dom/element/emerge.js b/dist/latest/min/dom/element/emerge.js index 9fe3d027..844f4cbc 100644 --- a/dist/latest/min/dom/element/emerge.js +++ b/dist/latest/min/dom/element/emerge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(t){window.qoopido.register("dom/element/emerge",t,["../element","../../function/merge","../../function/unique/uuid"])}(function(t,e,i,o,r,n,l){"use strict";function p(t){var e,i=d[t];for(e in i)"length"!==e&&g.call(i[e]);0===i.length&&(r.element.clearInterval(c[t]),delete c[t])}function s(){a.left=0,a.top=0,a.right=r.innerWidth||m.clientWidth,a.bottom=r.innerHeight||m.clientHeight}function h(){var t=this,e=t._settings.threshold,i=e!==l?e:m.clientWidth*t._settings.auto,o=e!==l?e:m.clientHeight*t._settings.auto;t._viewport.left=a.left-i,t._viewport.top=a.top-o,t._viewport.right=a.right+i,t._viewport.bottom=a.bottom+o}function g(){var t,e=this,i=!1,o=2;!e.isVisible()||"hidden"===e.getStyle("visibility")&&e._settings.visibility!==!1||(t=e.element.getBoundingClientRect(),(t.bottom>=e._viewport.top&&t.bottom<=e._viewport.bottom||t.top>=e._viewport.top&&t.top<=e._viewport.bottom||e._viewport.bottom>=t.top&&e._viewport.bottom<=t.bottom||e._viewport.top>=t.top&&e._viewport.top<=t.bottom)&&(t.left>=e._viewport.left&&t.left<=e._viewport.right||t.right>=e._viewport.left&&t.right<=e._viewport.right||e._viewport.left>=t.left&&e._viewport.left<=t.right||e._viewport.right>=t.left&&e._viewport.right<=t.right)&&((0===e._settings.threshold||(t.bottom>=a.top&&t.bottom<=a.bottom||t.top>=a.top&&t.top<=a.bottom||a.bottom>=t.top&&a.bottom<=t.bottom||a.top>=t.top&&a.top<=t.bottom)&&(t.left>=a.left&&t.left<=a.right||t.right>=a.left&&t.right<=a.right||a.left>=t.left&&a.left<=t.right||a.right>=t.left&&a.right<=t.right))&&(o=1),i=!0)),(i!==e._state||i===!0&&o!==e._priority)&&v.call(e,i,o)}function v(t,e){var i=this;i._state=t,i._priority=e,i._settings.recur!==!0&&i.remove(),t===!0?i.emit(f,e):i.emit(w)}var _,u={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=r.document.documentElement,a={},c={},d={},f="emerged",w="demerged",b="resize orientationchange";if(r=t["dom/element"].create(r),"CSS1Compat"!==n.compatMode)throw"[Qoopido.js] Not in standards mode";return _=t["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(e,i){var o=this;_._parent._constructor.call(o,e),i=t["function/merge"]({},u,i||{}),"auto"===i.threshold&&delete i.threshold,c[i.interval]===l&&(d[i.interval]=d[i.interval]||{length:0},c[i.interval]=r.element.setInterval(function(){p(i.interval)},i.interval)),o._quid=t["function/unique/uuid"](),o._viewport={},o._settings=i,o._state=!1,o._priority=2,d[i.interval][o._quid]=o,d[i.interval].length++,r.on(b,function(){h.call(o)}),h.call(o)},remove:function(){var t=this;delete d[t._settings.interval][t._quid],d[t._settings.interval].length--}}),r.on(b,s),s(),_}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(t){window.qoopido.register("dom/element/emerge",t,["../element","../../function/merge","../../function/unique/uuid"])}(function(t,e,i,o,r,n,l){"use strict";function p(t){var e,i=d[t];for(e in i)"length"!==e&&g.call(i[e]);0===i.length&&(r.element.clearInterval(c[t]),delete c[t])}function s(){a.left=0,a.top=0,a.right=r.innerWidth||m.clientWidth,a.bottom=r.innerHeight||m.clientHeight}function h(){var t=this,e=t._settings.threshold,i=e!==l?e:m.clientWidth*t._settings.auto,o=e!==l?e:m.clientHeight*t._settings.auto;t._viewport.left=a.left-i,t._viewport.top=a.top-o,t._viewport.right=a.right+i,t._viewport.bottom=a.bottom+o}function g(){var t,e=this,i=!1,o=2;!e.isVisible()||"hidden"===e.getStyle("visibility")&&e._settings.visibility!==!1||(t=e.element.getBoundingClientRect(),(t.bottom>=e._viewport.top&&t.bottom<=e._viewport.bottom||t.top>=e._viewport.top&&t.top<=e._viewport.bottom||e._viewport.bottom>=t.top&&e._viewport.bottom<=t.bottom||e._viewport.top>=t.top&&e._viewport.top<=t.bottom)&&(t.left>=e._viewport.left&&t.left<=e._viewport.right||t.right>=e._viewport.left&&t.right<=e._viewport.right||e._viewport.left>=t.left&&e._viewport.left<=t.right||e._viewport.right>=t.left&&e._viewport.right<=t.right)&&((0===e._settings.threshold||(t.bottom>=a.top&&t.bottom<=a.bottom||t.top>=a.top&&t.top<=a.bottom||a.bottom>=t.top&&a.bottom<=t.bottom||a.top>=t.top&&a.top<=t.bottom)&&(t.left>=a.left&&t.left<=a.right||t.right>=a.left&&t.right<=a.right||a.left>=t.left&&a.left<=t.right||a.right>=t.left&&a.right<=t.right))&&(o=1),i=!0)),(i!==e._state||i===!0&&o!==e._priority)&&u.call(e,i,o)}function u(t,e){var i=this;i._state=t,i._priority=e,i._settings.recur!==!0&&i.remove(),t===!0?i.emit(f,e):i.emit(w)}var v,_={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=r.document.documentElement,a={},c={},d={},f="emerged",w="demerged",b="resize orientationchange";if(r=t["dom/element"].create(r),"CSS1Compat"!==n.compatMode)throw"[Qoopido.js] Not in standards mode";return v=t["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(e,i){var o=v._parent._constructor.call(this,e);return i=t["function/merge"]({},_,i||{}),"auto"===i.threshold&&delete i.threshold,c[i.interval]===l&&(d[i.interval]=d[i.interval]||{length:0},c[i.interval]=r.element.setInterval(function(){p(i.interval)},i.interval)),o._quid=t["function/unique/uuid"](),o._viewport={},o._settings=i,o._state=!1,o._priority=2,d[i.interval][o._quid]=o,d[i.interval].length++,r.on(b,function(){h.call(o)}),h.call(o),o},remove:function(){var t=this;delete d[t._settings.interval][t._quid],d[t._settings.interval].length--}}),r.on(b,s),s(),v}); \ No newline at end of file diff --git a/dist/latest/min/dom/element/lazyimage.js b/dist/latest/min/dom/element/lazyimage.js index 7ac6b977..f9697a4e 100644 --- a/dist/latest/min/dom/element/lazyimage.js +++ b/dist/latest/min/dom/element/lazyimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,a){"use strict";function u(){var e=this,t=e._settings.attribute;d+=1,e.emit(l).one(h,function(t){e.emit(t.type===v?s:f),d-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var c,m={interval:50,threshold:"auto",attribute:"data-lazyimage"},d=0,l="requested",s="loaded",f="failed",g="emerged",v="load",b="error",h="".concat(v," ",b);return c=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=this;c._parent._constructor.call(n,t,e["function/merge"]({},m,r||{})),n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))})}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,a){"use strict";function u(){var e=this,t=e._settings.attribute;d+=1,e.emit(l).one(h,function(t){e.emit(t.type===v?s:f),d-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var c,m={interval:50,threshold:"auto",attribute:"data-lazyimage"},d=0,l="requested",s="loaded",f="failed",g="emerged",v="load",b="error",h="".concat(v," ",b);return c=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=c._parent._constructor.call(this,t,e["function/merge"]({},m,r||{}));n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))})}})}); \ No newline at end of file diff --git a/dist/latest/min/dom/element/shrinkimage.js b/dist/latest/min/dom/element/shrinkimage.js index 33f4003d..8ff72895 100644 --- a/dist/latest/min/dom/element/shrinkimage.js +++ b/dist/latest/min/dom/element/shrinkimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(t){var e=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",t,e)}(function(t,e,n,i,a,r,o){"use strict";function l(e,n){e=t.url.resolve(v.exec(e)[1]),n=n===!0;var i=this,a=t["function/merge"]({},i._settings,t.url.getParameter(e)),r=a.target||(e=e.split("?")[0]).replace(x,"".concat(".q",a.quality,".shrunk"));n||i.removeAttribute(i._settings.attribute).hide(),_.then(function(){if(a.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof w[r]){case"object":w[r].one(E,function(t){c.call(i,t.data,n)}),i.emit(k);break;case"string":c.call(i,w[r],n);break;default:w[r]=h.create(r,n?null:i.element).one(A,function(t,a){t.type===E?(w[r]=a,i.emit(I),c.call(i,a,n)):(w[r]=e,c.call(i,e,n))},!1)}})["catch"](function(){w[r]=e,c.call(i,e,n)})}function c(t,e){var n=this;e?(n.setStyle("backgroundImage","url("+t+")"),n.emit(E)):n.one(R,function(){n.show(),n.emit(E)}).setAttribute("src",t)}function s(t){var e=this;t.get(e._url).then(function(t){try{var n=g.parse(t.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),u.call(e,n)}catch(i){e.emit(q)}},function(){e.emit(q)})}function u(t){var e,n,i=this,a=function(a){return e=b&&b.obtain("canvas")||r.createElement("canvas"),e.style.display="none",e.width=t.width,e.height=t.height,n=e.getContext("2d"),n.clearRect(0,0,t.width,t.height),n.drawImage(i.element,0,0,t.width,t.height),i.one(R,o).setAttribute("src",t.alpha),p(a)},o=function(a){var r;return n.globalCompositeOperation="xor",n.drawImage(i.element,0,0,t.width,t.height),r=e.toDataURL("image/png"),l(),i.emit(E,r),p(a)},l=function(){e&&e.dispose&&e.dispose(),i.element.dispose&&i.element.dispose()};i.one(D,function(t){t.type===R?a.call(this,t):(l(),i.emit(q))},!1).setAttribute("src",t.main)}function p(t){return t.preventDefault(),t.stopPropagation(),!1}var d,h,g=a.JSON,m=n.pop(),f={attribute:"data-"+m,quality:80,debug:!1},b=e.pool&&e.pool.dom||null,w={},y=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),v=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),_=t.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),k="queued",I="cached",E="loaded",q="failed",A="".concat(E," ",q),R="load",S="error",D="".concat(R," ",S);return d=t["dom/element"].extend({_constructor:function(e,n){var i,a,r=this;d._parent._constructor.call(r,e),r._settings=n=t["function/merge"]({},f,n),i=r.getAttribute(n.attribute),a=r.getStyle("backgroundImage"),"IMG"===r.type&&l.call(r,i),"none"!==a&&y.test(a)&&l.call(r,a,!0)},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),h=t["dom/element"].extend({_url:null,_constructor:function(e,n){var i=this;n||(n=b&&b.obtain("img")||r.createElement("img")),h._parent._constructor.call(i,n),i._url=e,s.call(i,t["transport/xhr"])}}),d},window); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(t){var e=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",t,e)}(function(t,e,n,i,a,r,o){"use strict";function l(e,n){e=t.url.resolve(v.exec(e)[1]),n=n===!0;var i=this,a=t["function/merge"]({},i._settings,t.url.getParameter(e)),r=a.target||(e=e.split("?")[0]).replace(x,"".concat(".q",a.quality,".shrunk"));n||i.removeAttribute(i._settings.attribute).hide(),_.then(function(){if(a.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof w[r]){case"object":w[r].one(E,function(t){c.call(i,t.data,n)}),i.emit(k);break;case"string":c.call(i,w[r],n);break;default:w[r]=h.create(r,n?null:i.element).one(A,function(t,a){t.type===E?(w[r]=a,i.emit(I),c.call(i,a,n)):(w[r]=e,c.call(i,e,n))},!1)}})["catch"](function(){w[r]=e,c.call(i,e,n)})}function c(t,e){var n=this;e?(n.setStyle("backgroundImage","url("+t+")"),n.emit(E)):n.one(R,function(){n.show(),n.emit(E)}).setAttribute("src",t)}function u(t){var e=this;t.get(e._url).then(function(t){try{var n=g.parse(t.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),s.call(e,n)}catch(i){e.emit(q)}},function(){e.emit(q)})}function s(t){var e,n,i=this,a=function(a){return e=b&&b.obtain("canvas")||r.createElement("canvas"),e.style.display="none",e.width=t.width,e.height=t.height,n=e.getContext("2d"),n.clearRect(0,0,t.width,t.height),n.drawImage(i.element,0,0,t.width,t.height),i.one(R,o).setAttribute("src",t.alpha),p(a)},o=function(a){var r;return n.globalCompositeOperation="xor",n.drawImage(i.element,0,0,t.width,t.height),r=e.toDataURL("image/png"),l(),i.emit(E,r),p(a)},l=function(){e&&e.dispose&&e.dispose(),i.element.dispose&&i.element.dispose()};i.one(D,function(t){t.type===R?a.call(this,t):(l(),i.emit(q))},!1).setAttribute("src",t.main)}function p(t){return t.preventDefault(),t.stopPropagation(),!1}var d,h,g=a.JSON,m=n.pop(),f={attribute:"data-"+m,quality:80,debug:!1},b=e.pool&&e.pool.dom||null,w={},y=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),v=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),_=t.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),k="queued",I="cached",E="loaded",q="failed",A="".concat(E," ",q),R="load",S="error",D="".concat(R," ",S);return d=t["dom/element"].extend({_constructor:function(e,n){var i,a,r;return i=d._parent._constructor.call(this,e),i._settings=n=t["function/merge"]({},f,n),a=i.getAttribute(n.attribute),r=i.getStyle("backgroundImage"),"IMG"===i.type&&l.call(i,a),"none"!==r&&y.test(r)&&l.call(i,r,!0),i},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),h=t["dom/element"].extend({_url:null,_constructor:function(e,n){var i;return n||(n=b&&b.obtain("img")||r.createElement("img")),i=h._parent._constructor.call(this,n),i._url=e,u.call(i,t["transport/xhr"]),i}}),d},window); \ No newline at end of file diff --git a/dist/latest/min/dom/event.js b/dist/latest/min/dom/event.js index 494a47c9..67890bdc 100644 --- a/dist/latest/min/dom/event.js +++ b/dist/latest/min/dom/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,o,i,n,a,r){"use strict";var p=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){p.process(this,e)},_dispose:function(){for(var e,t=this,o=0;(e=t._properties[o])!==r;o++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}); \ No newline at end of file diff --git a/dist/latest/min/emitter.js b/dist/latest/min/emitter.js index b6f29694..463b8e4b 100644 --- a/dist/latest/min/emitter.js +++ b/dist/latest/min/emitter.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,n,r,i,s,l){"use strict";function o(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var r,i=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+n,i]),r=e._mapped[t].apply(e,i),e.emit.apply(e,["post"+n,i,r]),r}}var p=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&p.test(e)===!1&&(t[e]=o(t,e))},on:function(e,t){var n,r=this,i=0;for(e=e.split(" ");(n=e[i])!==l;i++)(r._listener[n]=r._listener[n]||[]).push(t);return r},one:function(e,t,n){n=n!==!1;var r=this;return r.on(e,function i(s){r.off(n===!0?s:e,i),t.apply(this,arguments)}),r},off:function(e,t){var n,r,i,s=this,o=0;if(e)for(e=e.split(" ");(n=e[o])!==l;o++)if(s._listener[n]=s._listener[n]||[],t)for(r=0;(i=s._listener[n][r])!==l;r++)i===t&&(s._listener[n].splice(r,1),r--);else s._listener[n].length=0;else for(n in s._listener)s._listener[n].length=0;return s},emit:function(e){var t,n=this,r=0;if(e!==l){for(n._listener[e]=n._listener[e]||[],n._temp=n._listener[e].slice();(t=n._temp[r])!==l;r++)t.apply(n,arguments);n._temp.length=0}return n}})}); \ No newline at end of file diff --git a/dist/latest/min/function/load/css.js b/dist/latest/min/function/load/css.js index 7c78f1ee..d218b2c1 100644 --- a/dist/latest/min/function/load/css.js +++ b/dist/latest/min/function/load/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("function/load/css",e)}(function(e,t,n,i,o,r,s){"use strict";var a={};return function(e,t){t=t||"all";var n,i=e+":"+t,s=a[i];return s||(s=a[i]=r.createElement("link"),n=r.getElementsByTagName("script")[0],s.rel="stylesheet",s.media="only x",s.href=e,n.parentNode.insertBefore(s,n),o.setTimeout(function(){s.media=t})),s}},window,document); \ No newline at end of file diff --git a/dist/latest/min/function/merge.js b/dist/latest/min/function/merge.js index cf0ca453..85cbeafe 100644 --- a/dist/latest/min/function/merge.js +++ b/dist/latest/min/function/merge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("function/merge",t)}(function(t,e,n,o,r,u,f){"use strict";return function i(){var t,e,n,o,r,u=arguments[0];for(t=1;(e=arguments[t])!==f;t++)for(n in e)o=u[n],r=e[n],r!==f&&(null!==r&&"object"==typeof r?(o=r.length!==f?o&&"object"==typeof o&&o.length!==f?o:[]:o&&"object"==typeof o&&o.length===f?o:{},u[n]=i(o,r)):u[n]=r);return u}}); \ No newline at end of file diff --git a/dist/latest/min/function/proximity.js b/dist/latest/min/function/proximity.js index 25148b53..96692526 100644 --- a/dist/latest/min/function/proximity.js +++ b/dist/latest/min/function/proximity.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("function/proximity",t)}(function(t,a,o,r,e,y,x){"use strict";return function(t,a){var o=!1;return t="object"==typeof t&&null!==t?t:{x:x,y:x},a="object"==typeof a&&null!==a?a:{x:x,y:x},t.x!==x&&t.y!==x&&a.x!==x&&a.y!==x&&(t.x=parseFloat(t.x),t.y=parseFloat(t.y),a.x=parseFloat(a.x),a.y=parseFloat(a.y),o={x:parseFloat(Math.abs(a.x-t.x)),y:parseFloat(Math.abs(a.y-t.y)),total:parseFloat(Math.sqrt(Math.pow(a.x-t.x,2)+Math.pow(a.y-t.y,2)))}),o}}); \ No newline at end of file diff --git a/dist/latest/min/function/unique/string.js b/dist/latest/min/function/unique/string.js index 4612f73f..199e2b10 100644 --- a/dist/latest/min/function/unique/string.js +++ b/dist/latest/min/function/unique/string.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("function/unique/string",n)}(function(n,t,r,e,i,o,u){"use strict";function f(n){var t="",r=0;for(n=parseInt(n,10)||12;n>r;r++)t+=s[parseInt(Math.random()*(s.length-1),10)];return t}var a={},s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(n){var t;do t=f(n);while("undefined"!=typeof a[t]);return a[t]=!0,t}}); \ No newline at end of file diff --git a/dist/latest/min/function/unique/uuid.js b/dist/latest/min/function/unique/uuid.js index c7e1666b..9f354218 100644 --- a/dist/latest/min/function/unique/uuid.js +++ b/dist/latest/min/function/unique/uuid.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(x){window.qoopido.register("function/unique/uuid",x)}(function(x,n,r,t,e,u,i){"use strict";function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(f,function(x){var n=16*Math.random()|0,r="x"===x?n:3&n|8;return r.toString(16)})}var c={},f=new RegExp("[xy]","g");return function(){var x;do x=o();while("undefined"!=typeof c[x]);return c[x]=!0,x}}); \ No newline at end of file diff --git a/dist/latest/min/hook/css.js b/dist/latest/min/hook/css.js index 9bf96213..cff60026 100644 --- a/dist/latest/min/hook/css.js +++ b/dist/latest/min/hook/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){var e=["../base","../support"];window.getComputedStyle||e.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",t,e)}(function(t,e,o,n,r,i,l){"use strict";var u=t.support,s=r.getComputedStyle||t["polyfill/window/getcomputedstyle"],p={general:{get:function(t,e){return s(t,null).getPropertyValue(e[0])},set:function(t,e,o){t.style[e[1]]=o}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(t,e,o){return o=s(t,null).getPropertyValue("filter").toString().match(this.regex),o=o?o[1]/100:1},set:function(t,e,o){var n=t.style;n.zoom=1,n.filter="alpha(opacity="+(100*o+.5>>0)+")"}}};return t.base.extend({add:function(t,e){return t&&e&&p[t]&&(p[t]=e),this},get:function(t){return t&&p[t]?p[t]:null},process:function(t,e,o,n){var r;return o=u.getCssProperty(o,e)||null,o?((r=this.get(o[1]))&&r[t]||this.get("general")[t])(e,o,n):void 0}})}); \ No newline at end of file diff --git a/dist/latest/min/hook/event.js b/dist/latest/min/hook/event.js index bf5a47b8..e3879b1e 100644 --- a/dist/latest/min/hook/event.js +++ b/dist/latest/min/hook/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,a,c){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==c;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var i={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||a,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===c||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&i[e]&&(i[e]=t),this},get:function(e){return e&&i[e]?i[e]:null},process:function(e,t){var r,n,o;for(r in i)n=i[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}); \ No newline at end of file diff --git a/dist/latest/min/jquery/extension/selector.js b/dist/latest/min/jquery/extension/selector.js index 4ee03f06..8ea283b1 100644 --- a/dist/latest/min/jquery/extension/selector.js +++ b/dist/latest/min/jquery/extension/selector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("jquery/extension/selector",t,["jquery"])}(function(t,e,r,n,o,i,f){"use strict";var u=t.jquery||o.jQuery,s=u(o),h=u(i);return u.extend(u.expr[":"],{loaded:function(t){return u(t).data("loaded")},scrollable:function(t,e,r){return"auto"===u(t).css("overflow")},width:function(t,e,r){return r[3]&&/^(<|>)\d+$/.test(r[3])?">"===r[3].substr(0,1)?u(t).width()>r[3].substr(1):u(t).width())\d+$/.test(r[3])?">"===r[3].substr(0,1)?u(t).height()>r[3].substr(1):u(t).height()r.offset().left+r.width()):!1},external:function(t){return t.href?t.hostname&&t.hostname!==o.location.hostname:!1},inView:function(t){t=u(t);var e=s,r=h,n=t.offset(),o={top:r.scrollTop(),height:r.scrollLeft()};return!(n.top>e.height()+o.top||n.top+t.height()e.width()+o.left||n.left+t.width()r.width()*r.height()):!1},isBold:function(t){return"700"===u(t).css("fontWeight")},color:function(t,e,r){return r[3]?u(t).css("color")===r[3]:!1},hasId:function(t){return t=u(t),t.attr("id")!==f&&""!==t.attr("id")}}),u}); \ No newline at end of file diff --git a/dist/latest/min/jquery/function/prefetch.js b/dist/latest/min/jquery/function/prefetch.js index 43f8699a..b63e5d4e 100644 --- a/dist/latest/min/jquery/function/prefetch.js +++ b/dist/latest/min/jquery/function/prefetch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/function/prefetch",e,["jquery"])}(function(e,r,n,t,i,u,f){"use strict";var o=e.jquery||i.jQuery,c=o("head"),p=[];return o.prefetch=function(){var e=o.unique(o('a[rel="prefetch"]').removeAttr("rel").map(function(){return o(this).attr("href")}));e.each(function(e,r){-1===o.inArray(r,p)&&(o("",{rel:"prefetch",href:r}).appendTo(c),o("",{rel:"prerender",href:r}).appendTo(c))})},o}); \ No newline at end of file diff --git a/dist/latest/min/jquery/plugin/emerge.js b/dist/latest/min/jquery/plugin/emerge.js index 4839e62b..27e7a3e7 100644 --- a/dist/latest/min/jquery/plugin/emerge.js +++ b/dist/latest/min/jquery/plugin/emerge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/plugins/emerge",e,["../../dom/element/emerge","jquery"])}(function(e,r,t,n,o,c,i){"use strict";var u,g=e.jquery||o.jQuery,a=t.pop(),d="emerged",m="demerged",s="".concat(d,".",a),f="".concat(m,".",a);return g.fn[a]=function(e){return this.each(function(){u.create(this,e)})},u=e["dom/element/emerge"].extend({_constructor:function(e,r){var t=this,n=g(e);u._parent._constructor.call(t,e,r),t.on(d,function(e){n.trigger(s,{priority:e.data})}),t.on(m,function(){n.trigger(f)})}})}); \ No newline at end of file diff --git a/dist/latest/min/jquery/plugin/lazyimage.js b/dist/latest/min/jquery/plugin/lazyimage.js index 3a99e4b2..04458c70 100644 --- a/dist/latest/min/jquery/plugin/lazyimage.js +++ b/dist/latest/min/jquery/plugin/lazyimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("jquery/plugins/lazyimage",e,["../../dom/element/lazyimage","jquery"])}(function(e,n,t,r,o,i,c){"use strict";var u,a=e.jquery||o.jQuery,s=t.pop(),g="requested",l="loaded",d="".concat(g,".",s),f="".concat(l,".",s);return a.fn[s]=function(e){return this.each(function(){u.create(this,e)})},u=e["dom/element/lazyimage"].extend({_constructor:function(e,n){var t=this,r=a(e);u._parent._constructor.call(t,e,n),t.on(g,function(){r.trigger(d)}),t.on(l,function(){r.trigger(f)})}})}); \ No newline at end of file diff --git a/dist/latest/min/jquery/plugin/shrinkimage.js b/dist/latest/min/jquery/plugin/shrinkimage.js index 9987ba6f..a5e1faba 100644 --- a/dist/latest/min/jquery/plugin/shrinkimage.js +++ b/dist/latest/min/jquery/plugin/shrinkimage.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("jquery/plugins/shrinkimage",n,["../../dom/element/shrinkimage","jquery"])}(function(n,t,e,r,o,i,c){"use strict";var u,a=n.jquery||o.jQuery,g=e.pop(),s="queued",f="cached",d="loaded",h="failed",l="".concat(s,".",g),m="".concat(f,".",g),p="".concat(d,".",g),q="".concat(h,".",g);return a.fn[g]=function(n){return this.each(function(){u.create(this,n)})},u=n["dom/element/shrinkimage"].extend({_constructor:function(n,t){var e=this,r=a(n);u._parent._constructor.call(e,n,t),e.on(s,function(){r.trigger(l)}),e.on(f,function(){r.trigger(m)}),e.on(d,function(){r.trigger(p)}),e.on(h,function(){r.trigger(q)})}})}); \ No newline at end of file diff --git a/dist/latest/min/particle.js b/dist/latest/min/particle.js index 1fe5cc63..2b9c063d 100644 --- a/dist/latest/min/particle.js +++ b/dist/latest/min/particle.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("particle",t,["./emitter","./pool/module","./vector/2d"])}(function(t,i,o,e,s,c,n){"use strict";var l,a=t["pool/module"].create(t["vector/2d"],null,!0);return l=t.emitter.extend({_velocity:null,_acceleration:null,position:null,velocity:null,acceleration:null,_constructor:function(t,i){this._velocity=a.obtain(0,0),this._acceleration=a.obtain(0,0),this.position=a.obtain(t,i),this.velocity=a.obtain(0,0),this.acceleration=[],l._parent._constructor.call(this)},_obtain:function(t,i){this.position.x=t||0,this.position.y=i||0,this.velocity.x=0,this.velocity.y=0,this.acceleration.length=0},_destroy:function(){this._velocity=this._velocity.dispose(),this._acceleration=this._acceleration.dispose(),this.position=this.position.dispose(),this.velocity=this.velocity.dispose()},update:function(t){t="undefined"!=typeof t?parseFloat(t):1;for(var i,o=0;(i=this.acceleration[o])!==n;o++)this.velocity.add(i);this._velocity.x=this.velocity.x*t,this._velocity.y=this.velocity.y*t,this.position.add(this._velocity)}})}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/array/indexof.js b/dist/latest/min/polyfill/array/indexof.js index 649cc403..e9583b4a 100644 --- a/dist/latest/min/polyfill/array/indexof.js +++ b/dist/latest/min/polyfill/array/indexof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("polyfill/array/indexof",r)}(function(r,o,t,i,n,e,f){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(r){for(var o=this,t=0;o[t]!==f;++t)if(o[t]===r)return t;return-1}),Array.prototype.indexOf}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/document/getelementsbyclassname.js b/dist/latest/min/polyfill/document/getelementsbyclassname.js index 8903d0f1..a08f6ddd 100644 --- a/dist/latest/min/polyfill/document/getelementsbyclassname.js +++ b/dist/latest/min/polyfill/document/getelementsbyclassname.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Object.defineProperty||t.push("./queryselectorall"),window.qoopido.register("polyfill/document/getelementsbyclassname",e,t)}(function(e,t,l,n,s,r,a){"use strict";if(!r.getElementsByClassName){var o=new RegExp("^|\\s+","g");r.getElementsByClassName=function(e){return e=String(e).replace(o,"."),r.querySelectorAll(e)}}return r.getElementsByClassName}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/document/queryselector.js b/dist/latest/min/polyfill/document/queryselector.js index 5cae32d9..3d916f46 100644 --- a/dist/latest/min/polyfill/document/queryselector.js +++ b/dist/latest/min/polyfill/document/queryselector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var r=[];document.querySelectorAll||r.push("./queryselectorall"),window.qoopido.register("polyfill/document/queryselector",e,r)}(function(e,r,l,t,o,u,c){"use strict";return u.querySelector||(u.querySelector=function(e){var r=u.querySelectorAll(e);return r.length?r[0]:null}),u.querySelector}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/document/queryselectorall.js b/dist/latest/min/polyfill/document/queryselectorall.js index 88440245..af7af0a5 100644 --- a/dist/latest/min/polyfill/document/queryselectorall.js +++ b/dist/latest/min/polyfill/document/queryselectorall.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/document/queryselectorall",e)}(function(e,t,r,s,l,o,n){"use strict";return o.querySelectorAll||(o.querySelectorAll=function(e){var t,r=l.document.getElementsByTagName("script")[0],s=o.createElement("style"),n=[];for(r.parentNode.insertBefore(s,r),o._qsa=[],s.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",l.scrollBy(0,0),s.parentNode.removeChild(s);o._qsa.length;)t=o._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);try{delete o._qsa}catch(c){o._qsa=null}return n}),o.querySelectorAll}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/element/matches.js b/dist/latest/min/polyfill/element/matches.js index 8fdf016f..0d774cef 100644 --- a/dist/latest/min/polyfill/element/matches.js +++ b/dist/latest/min/polyfill/element/matches.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];document.querySelectorAll||t.push("../document/queryselectorall"),window.qoopido.register("polyfill/element/matches",e,t)}(function(e,t,r,o,c,l,n){"use strict";if(!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector=s.matchesSelector||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||function(e){for(var t,r=this.parentElement.querySelectorAll(e),o=0;t=r[o++];)if(t===this)return!0;return!1}}return Element.prototype.matches}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/create.js b/dist/latest/min/polyfill/object/create.js index f0e98abc..0dadea7c 100644 --- a/dist/latest/min/polyfill/object/create.js +++ b/dist/latest/min/polyfill/object/create.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,i,c,n){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/defineproperties.js b/dist/latest/min/polyfill/object/defineproperties.js index 25f09513..cf271ca5 100644 --- a/dist/latest/min/polyfill/object/defineproperties.js +++ b/dist/latest/min/polyfill/object/defineproperties.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,r){if(r.register){var t=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||t.push("./defineproperty"),r.register("polyfill/object/defineproperties",e,t)}else(r.modules=r.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,r,t,o,i,n,p){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,r){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var t;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&Object.defineProperty(e,t,r[t]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/defineproperty.js b/dist/latest/min/polyfill/object/defineproperty.js index 7b35c953..d983a8f3 100644 --- a/dist/latest/min/polyfill/object/defineproperty.js +++ b/dist/latest/min/polyfill/object/defineproperty.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var f=Object.defineProperty,p=Object.prototype.__defineGetter__,d=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(f)try{return f(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return p&&"get"in r&&p.call(e,t,r.get),d&&"set"in r&&d.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/getownpropertydescriptor.js b/dist/latest/min/polyfill/object/getownpropertydescriptor.js index 742e3249..e6bc2d59 100644 --- a/dist/latest/min/polyfill/object/getownpropertydescriptor.js +++ b/dist/latest/min/polyfill/object/getownpropertydescriptor.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r,e){e.register?e.register("polyfill/object/getownpropertydescriptor",r):(e.modules=e.modules||{})["polyfill/object/getownpropertydescriptor"]=r()}(function(r,e,t,o,c,n,i){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(r){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(r,e){if(r!==Object(r))throw new TypeError;try{return p.call(Object,r,e)}catch(t){}return Object.prototype.hasOwnProperty.call(r,e)?{value:r[e],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/getownpropertynames.js b/dist/latest/min/polyfill/object/getownpropertynames.js index 0bb7eec7..9e89446a 100644 --- a/dist/latest/min/polyfill/object/getownpropertynames.js +++ b/dist/latest/min/polyfill/object/getownpropertynames.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,o){o.register?o.register("polyfill/object/getownpropertynames",e):(o.modules=o.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,o,t,r,n,p,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var o,t=[];for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.push(o);return t}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/getprototypeof.js b/dist/latest/min/polyfill/object/getprototypeof.js index 91a31261..35c44c9c 100644 --- a/dist/latest/min/polyfill/object/getprototypeof.js +++ b/dist/latest/min/polyfill/object/getprototypeof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o,t){t.register?t.register("polyfill/object/getprototypeof",o):(t.modules=t.modules||{})["polyfill/object/getprototypeof"]=o()}(function(o,t,e,r,p,n,c){"use strict";return Object.getPrototypeOf||(Object.getPrototypeOf={}.__proto__===Object.prototype&&[].__proto__===Array.prototype?function(o){return o.__proto__}:function(o){return o.constructor?o.constructor.prototype:null}),Object.getPrototypeOf},window.qoopido=window.qoopido||{}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/object/keys.js b/dist/latest/min/polyfill/object/keys.js index eaf34069..6c36a79c 100644 --- a/dist/latest/min/polyfill/object/keys.js +++ b/dist/latest/min/polyfill/object/keys.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/object/keys",e)}(function(e,t,o,r,n,c,i){"use strict";return Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on non-object");var t,o=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.push(t);return o}),Object.keys}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/string/lcfirst.js b/dist/latest/min/polyfill/string/lcfirst.js index 822e8642..59a759eb 100644 --- a/dist/latest/min/polyfill/string/lcfirst.js +++ b/dist/latest/min/polyfill/string/lcfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/lcfirst",t)}(function(t,r,i,o,n,e,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var t=this;return t.charAt(0).toLowerCase()+t.slice(1)}),String.prototype.lcfirst}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/string/trim.js b/dist/latest/min/polyfill/string/trim.js index e79d2eee..bee09b9d 100644 --- a/dist/latest/min/polyfill/string/trim.js +++ b/dist/latest/min/polyfill/string/trim.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/trim",t)}(function(t,r,i,n,o,e,p){"use strict";if(!String.prototype.trim){var u=new RegExp("^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$","g");String.prototype.trim=function(){return this.replace(u,"")}}return String.prototype.trim}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/string/ucfirst.js b/dist/latest/min/polyfill/string/ucfirst.js index ff61bc53..bdb6fcf3 100644 --- a/dist/latest/min/polyfill/string/ucfirst.js +++ b/dist/latest/min/polyfill/string/ucfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/string/ucfirst",t)}(function(t,r,i,o,n,e,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var t=this;return t.charAt(0).toUpperCase()+t.slice(1)}),String.prototype.ucfirst}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/addeventlistener.js b/dist/latest/min/polyfill/window/addeventlistener.js index 0c4a019e..3d18cb84 100644 --- a/dist/latest/min/polyfill/window/addeventlistener.js +++ b/dist/latest/min/polyfill/window/addeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/addeventlistener",e,t)}(function(e,t,n,a,r,o,i){"use strict";return r.addEventListener||(r.addEventListener=Window.prototype.addEventListener=HTMLDocument.prototype.addEventListener=Element.prototype.addEventListener=function(e,t){var n=this;n._events||(n._events={}),n._events[e]||(n._events[e]=function(e){var t,a=n._events[e.type].list,r=Array.prototype.concat.call([],a),l=0;for(e.preventDefault=function(){e.cancelable!==!1&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=n,e.relatedTarget=e.fromElement||null,e.target=e.srcElement||n,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+o.documentElement.scrollLeft,e.pageY=e.clientY+o.documentElement.scrollTop);(t=r[l])!==i&&!e.cancelImmediate;++l)a.indexOf(t)>-1&&t.call(n,e)},n._events[e].list=[],n.attachEvent&&n.attachEvent("on"+e,n._events[e])),n._events[e].list.push(t)}),r.addEventListener}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/customevent.js b/dist/latest/min/polyfill/window/customevent.js index 3979a88e..a134c275 100644 --- a/dist/latest/min/polyfill/window/customevent.js +++ b/dist/latest/min/polyfill/window/customevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("polyfill/window/customevent",e)}(function(e,t,n,o,r,u,b){"use strict";if(!r.CustomEvent){var c=u.createEvent?function(e,t,n){var o=u.createEvent("Event"),r=t&&t.bubbles!==b?t.bubbles:!1,c=t&&t.cancelable!==b?t.cancelable:!0;return o.initEvent(e,r,c),o.detail=n,o}:function(e,t,n){var o=u.createEventObject();return o.type=e,o.bubbles=t&&t.bubbles!==b?t.bubbles:!1,o.cancelable=t&&t.cancelable!==b?t.cancelable:!0,o.detail=n,o};r.CustomEvent=Window.prototype.CustomEvent=function(e,t,n){if(!e)throw new Error("Not enough arguments");return c(e,t,n)}}return r.CustomEvent}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/dispatchevent.js b/dist/latest/min/polyfill/window/dispatchevent.js index 9b3ca6ea..c446384b 100644 --- a/dist/latest/min/polyfill/window/dispatchevent.js +++ b/dist/latest/min/polyfill/window/dispatchevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/dispatchevent",t)}(function(t,e,n,o,r,i,c){"use strict";return r.dispatchEvent||(r.dispatchEvent=Window.prototype.dispatchEvent=HTMLDocument.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var o=function(t){t.cancelBubble=!0,(e||r).detachEvent("on"+n,o)};this.attachEvent("on"+n,o)}this.fireEvent("on"+n,t)}catch(i){t.target=e;do t.currentTarget=e,e._events&&e._events[n]&&e._events[n].call(e,t),e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0}),r.dispatchEvent}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/getcomputedstyle.js b/dist/latest/min/polyfill/window/getcomputedstyle.js index 1a873ffa..4b9e5804 100644 --- a/dist/latest/min/polyfill/window/getcomputedstyle.js +++ b/dist/latest/min/polyfill/window/getcomputedstyle.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/getcomputedstyle",t)}(function(t,e,r,n,o,u,l){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var i=new RegExp("(\\-([a-z]){1})","g"),p=function(){return arguments[2].toUpperCase()};return function(t,e){var r=this;return r.getPropertyValue=function(e){return"float"===e&&(e="styleFloat"),i.test(e)&&(e=e.replace(i,p)),t.currentStyle[e]||null},r}}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/matchmedia.js b/dist/latest/min/polyfill/window/matchmedia.js index a22963fc..923562c7 100644 --- a/dist/latest/min/polyfill/window/matchmedia.js +++ b/dist/latest/min/polyfill/window/matchmedia.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,i,n,r,o,a){"use strict";function l(){var e=r.innerWidth||f.clientWidth,t=r.innerHeight||f.clientHeight,i=r.screen.width,n=r.screen.height,o=r.screen.colorDepth,a=r.devicePixelRatio;y.width=e,y.height=t,y["aspect-ratio"]=(e/t).toFixed(2),y.color=o,y["color-index"]=Math.pow(2,o),y["device-aspect-ratio"]=(i/n).toFixed(2),y["device-height"]=n,y["device-width"]=i,y["device-pixel-ratio"]=a||1,y.resolution=a&&96*a||r.screen.deviceXDPI||96,y.orientation=t>=e?"portrait":"landscape"}function s(e){var t,i,n={matches:!1,media:e,addListener:function(e){e&&i.push(e)},removeListener:function(e){for(var t,n=0;(t=i[n])!==a;n++)t===e&&i.splice(n,1)}};return n.matches=""===e?!0:d(e),x.push({mql:n,listeners:[]}),t=x.length-1,v[e]=t,i=x[t].listeners,n}function d(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],i=t.length-1,n=i,r=null,o=null,a="",l=0,s=!1,d="",c="",m=null,p=0,h=0,u=null,f="",x="",v="",w="",b="",q=!1;if(""===e)return!0;do if(r=t[n-i],s=!1,o=r.match(g.type),o&&(a=o[0],l=o.index),!o||-1===r.substring(0,l).indexOf("(")&&(l||!o[3]&&a!==o.input))q=!1;else{if(c=r,s="not"===o[1],l||(d=o[2],c=r.substring(a.length)),q=d===y.type||"all"===d||""===d,m=-1!==c.indexOf(" and ")&&c.split(" and ")||[c],p=m.length-1,h=p,q&&p>=0&&""!==c)do{if(u=m[p].match(g.media),!u||!y[u[3]]){q=!1;break}if(f=u[2],x=u[5],w=x,v=u[7],b=y[u[3]],v&&(w="px"===v?Number(x):"em"===v||"rem"===v?16*x:u[8]?(x/u[8]).toFixed(2):"dppx"===v?96*x:"dpcm"===v?.3937*x:Number(x)),q="min-"===f&&w?b>=w:"max-"===f&&w?w>=b:w?b===w:!!b,!q)break}while(p--);if(q)break}while(i--);return s?!q:q}function c(){var e,t,i=!1,n=0,o=0;if(x.length>0)for(l();(e=x[n])!==a;n++)if(i=d(e.mql.media),(i&&!e.mql.matches||!i&&e.mql.matches)&&(e.mql.matches=i,e.listeners))for(;(t=e.listeners[o])!==a;o++)t.call(r,e.mql)}function m(){r.clearTimeout(h),h=r.setTimeout(c,10)}function p(){var t,i=r.document.getElementsByTagName("script")[0],n=o.createElement("style"),l=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],s="#"+u+" { position: relative; z-index: 0; }",d="",c=r.addEventListener||(d="on")&&r.attachEvent,p=0;for(n.type="text/css",n.id=u,i.parentNode.insertBefore(n,i);(t=l[p])!==a;p++)s+="@media "+t+" { #"+u+" { position: relative; z-index: "+p+" } }";n.styleSheet?n.styleSheet.cssText=s:n.textContent=s,y.type=l[1*(r.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),c(d+"resize",m),c(d+"orientationchange",m)}var h,u="qoopidoPolyfillWindowMatchmedia",f=o.documentElement,x=[],v={},y={},g={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return r.matchMedia||(p(),l(),r.matchMedia=function(e){var t=v[e]||!1;return t===!1?s(e):x[t].mql}),r.matchMedia}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/promise.js b/dist/latest/min/polyfill/window/promise.js index b7ca4c83..ec3ade59 100644 --- a/dist/latest/min/polyfill/window/promise.js +++ b/dist/latest/min/polyfill/window/promise.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("polyfill/window/promise",t)}(function(t,n,r,e,o,i,u){"use strict";function s(t,n){var r=j.push([t,n]);1===r&&c()}function c(){o.setTimeout(f,1)}function f(){for(var t,n=0;(t=j[n])!==u;n++)t[0](t[1]);j.length=0}function a(t,n){var r,e=null;try{if(t===n)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof n||"object"==typeof n&&null!==n)&&(e=n.then,"function"==typeof e))return e.call(n,function(e){return r?!0:(r=!0,void(n!==e?h(t,e):p(t,e)))},function(n){return r?!0:(r=!0,void v(t,n))}),!0}catch(o){return r?!0:(v(t,o),!0)}return!1}function l(t,n){function r(t){h(n,t)}function e(t){v(n,t)}try{t(r,e)}catch(o){e(o)}}function _(t,n,r,e){var o,i,u,s,c="function"==typeof r;if(c)try{o=r(e),u=!0}catch(f){s=!0,i=f}else o=e,u=!0;a(n,o)||(c&&u?h(n,o):s?v(n,i):t===T?h(n,o):t===E&&v(n,o))}function h(t,n){t===n?p(t,n):a(t,n)||p(t,n)}function p(t,n){t._state===g&&(t._state=P,t._detail=n,s(b,t))}function v(t,n){t._state===g&&(t._state=P,t._detail=n,s(m,t))}function b(t){d(t,t._state=T)}function m(t){d(t,t._state=E)}function y(t,n,r,e){var o=t._subscribers,i=o.length;o[i]=n,o[i+T]=r,o[i+E]=e}function d(t,n){for(var r,e,o=t._subscribers,i=t._detail,s=0;(r=o[s])!==u;s+=3)e=o[s+n],_(n,r,e,i);t._subscribers=null}function w(t){var n=this;if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");n._subscribers=[],l(t,n)}var g=void 0,P=0,T=1,E=2,j=[];return w.prototype={_state:u,_detail:u,_subscribers:u,then:function(t,n){var r=this,e=new w(function(){});return r._state?s(function(){_(r._state,e,arguments[r._state-1],r._detail)}):y(r,e,t,n),e},"catch":function(t){return this.then(null,t)}},o.Promise||(o.Promise=w),o.Promise}); \ No newline at end of file diff --git a/dist/latest/min/polyfill/window/removeeventlistener.js b/dist/latest/min/polyfill/window/removeeventlistener.js index b6768c60..e50d9a29 100644 --- a/dist/latest/min/polyfill/window/removeeventlistener.js +++ b/dist/latest/min/polyfill/window/removeeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=[];Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/removeeventlistener",e,t)}(function(e,t,n,r,o,i,v){"use strict";return o.removeEventListener||(o.removeEventListener=Window.prototype.removeEventListener=HTMLDocument.prototype.removeEventListener=Element.prototype.removeEventListener=function(e,t){var n=this;if(n._events&&n._events[e]&&n._events[e].list){var r=n._events[e].list.indexOf(t);r>-1&&(n._events[e].list.splice(r,1),n._events[e].list.length||n.detachEvent&&n.detachEvent("on"+e,n._events[e]))}}),o.removeEventListener}); \ No newline at end of file diff --git a/dist/latest/min/pool.js b/dist/latest/min/pool.js index 1b8f0184..f8b4dbe4 100644 --- a/dist/latest/min/pool.js +++ b/dist/latest/min/pool.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e){window.qoopido.register("pool",e,["./base","./function/merge","./function/unique/uuid"])}(function(e,t,i,n,o,u,r){"use strict";function s(){var e,t,i,n=this,o=n.metrics,u=n._settings,r=n._queue,s=n._variables,a=1;if(r.length>0&&(s.durationAverage>0&&(a=~~((a=u.frameBudget/s.durationAverage)<1?1:a)),(e=Math.min(r.length,(t=r.splice(0,a)).length))>0))if(o.inPool+e<=u.maxPoolsize){i=(new Date).getTime();for(var l=0;e>l;l++){var c=t[l],d=c._quid,_=c.dispose;c=n._dispose(c),c._quid=d,c.dispose=_,n._getPool.call(n,c).push(c)}o.inPool+=e,o.inQueue-=e,s.durationSamples+=e,s.durationTotal+=(new Date).getTime()-i,s.durationAverage=s.durationTotal/s.durationSamples}else{if("function"==typeof n._destroy)for(var p=0;e>p;p++)n._destroy(t[p]);t.length=0,o.inQueue-=e,o.destroyed+=e}}var a,l={interval:1e3/60,frameBudget:.5,maxPoolsize:1e3};return a=e.base.extend({metrics:null,_settings:null,_pool:null,_queue:null,_variables:null,_constructor:function(t){var i=this;i.metrics={total:0,inPool:0,inUse:0,inQueue:0,recycled:0,destroyed:0},i._settings=e["function/merge"]({},l,t),i._pool=i._initPool(),i._queue=[],i._variables={durationSamples:0,durationTotal:0,durationAverage:0},setInterval(function(){s.call(i)},i._settings.interval)},_initPool:function(){return[]},_initElement:function(t){var i=this;return t._quid=e["function/unique/uuid"](),t.dispose=function(){i.dispose(t)},i.metrics.total++,t},_getPool:function(){return this._pool},obtain:function(){var e=this,t=e._getPool.apply(e,arguments).pop();return t?(e.metrics.inPool--,e.metrics.recycled++):t=e._initElement(e._obtain.apply(e,arguments)),"function"==typeof t._obtain&&t._obtain.apply(t,arguments),e.metrics.inUse++,t},dispose:function(e){var t=this,i=t._queue;return e._quid||(e=t._initElement(e),t.metrics.inUse++),"function"==typeof e._dispose&&e._dispose(),i.push(e),t.metrics.inUse--,t.metrics.inQueue++,null}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e){window.qoopido.register("pool",e,["./base","./function/merge","./function/unique/uuid"])}(function(e,t,i,n,o,u,r){"use strict";function s(){var e,t,i,n=this,o=n.metrics,u=n._settings,r=n._queue,s=n._variables,a=1;if(r.length>0&&(s.durationAverage>0&&(a=~~((a=u.frameBudget/s.durationAverage)<1?1:a)),(e=Math.min(r.length,(t=r.splice(0,a)).length))>0))if(o.inPool+e<=u.maxPoolsize){i=(new Date).getTime();for(var l=0;e>l;l++){var c=t[l],d=c._puid,_=c.dispose;c=n._dispose(c),c._puid=d,c.dispose=_,n._getPool.call(n,c).push(c)}o.inPool+=e,o.inQueue-=e,s.durationSamples+=e,s.durationTotal+=(new Date).getTime()-i,s.durationAverage=s.durationTotal/s.durationSamples}else{if("function"==typeof n._destroy)for(var p=0;e>p;p++)n._destroy(t[p]);t.length=0,o.inQueue-=e,o.destroyed+=e}}var a,l={interval:1e3/60,frameBudget:.5,maxPoolsize:1e3};return a=e.base.extend({metrics:null,_settings:null,_pool:null,_queue:null,_variables:null,_constructor:function(t){var i=this;i.metrics={total:0,inPool:0,inUse:0,inQueue:0,recycled:0,destroyed:0},i._settings=e["function/merge"]({},l,t),i._pool=i._initPool(),i._queue=[],i._variables={durationSamples:0,durationTotal:0,durationAverage:0},setInterval(function(){s.call(i)},i._settings.interval)},_initPool:function(){return[]},_initElement:function(t){var i=this;return t._puid=e["function/unique/uuid"](),t.dispose=function(){i.dispose(t)},i.metrics.total++,t},_getPool:function(){return this._pool},obtain:function(){var e=this,t=e._getPool.apply(e,arguments).pop();return t?(e.metrics.inPool--,e.metrics.recycled++):t=e._initElement(e._obtain.apply(e,arguments)),"function"==typeof t._obtain&&t._obtain.apply(t,arguments),e.metrics.inUse++,t},dispose:function(e){var t=this,i=t._queue;return e._puid||(e=t._initElement(e),t.metrics.inUse++),"function"==typeof e._dispose&&e._dispose(),i.push(e),t.metrics.inUse--,t.metrics.inQueue++,null}})}); \ No newline at end of file diff --git a/dist/latest/min/pool/array.js b/dist/latest/min/pool/array.js index 9e948219..8bb95816 100644 --- a/dist/latest/min/pool/array.js +++ b/dist/latest/min/pool/array.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("pool/array",o,["../pool"])}(function(o,n,r,t,e,i,p){"use strict";var u=o.pool.extend({_dispose:function(o){return o.length=0,o},_obtain:function(){return[]}});return n.pool=n.pool||{},n.pool.array=u.create(),u}); \ No newline at end of file diff --git a/dist/latest/min/pool/dom.js b/dist/latest/min/pool/dom.js index 18598d71..51be098d 100644 --- a/dist/latest/min/pool/dom.js +++ b/dist/latest/min/pool/dom.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("pool/dom",o,["../pool"])}(function(o,t,e,r,n,i,p){"use strict";var l=o.pool.extend({_initPool:function(){return{}},_getPool:function(o){var t=this;return"string"!=typeof o&&(o=o.tagName.toLowerCase()),t._pool[o]=t._pool[o]||[]},_dispose:function(o){var t;o.parentNode&&o.parentNode.removeChild(o);for(t in o)if(Object.prototype.hasOwnProperty.call(o,t))try{o.removeAttribute(t)}catch(e){o.property=null}return o},_obtain:function(o){return i.createElement(o)}});return t.pool=t.pool||{},t.pool.dom=l.create(),l}); \ No newline at end of file diff --git a/dist/latest/min/pool/module.js b/dist/latest/min/pool/module.js index d07de76a..1e6bb6ed 100644 --- a/dist/latest/min/pool/module.js +++ b/dist/latest/min/pool/module.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(o){window.qoopido.register("pool/module",o,["../pool","../function/unique/uuid"])}(function(o,u,n,t,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,n,t){var e=this,i=o._quid||(o._quid=l()),r=t&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return t===!0&&r[i]?r[i]:(d._parent._constructor.call(e,n),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),t===!0&&(r[i]=e),void 0)},_dispose:function(o){return o},_obtain:function(){return this._module.create.apply(this._module,arguments)}});return d}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(o){window.qoopido.register("pool/module",o,["../pool","../function/unique/uuid"])}(function(o,u,n,t,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,n,t){var e=this,i=o._puid||(o._puid=l()),r=t&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return t===!0&&r[i]?r[i]:(d._parent._constructor.call(e,n),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),t===!0&&(r[i]=e),void 0)},_dispose:function(o){return o},_obtain:function(){return this._module.create.apply(this._module,arguments)}});return d}); \ No newline at end of file diff --git a/dist/latest/min/pool/object.js b/dist/latest/min/pool/object.js index fcc535cd..4dd5caf0 100644 --- a/dist/latest/min/pool/object.js +++ b/dist/latest/min/pool/object.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("pool/object",e,["../pool"])}(function(e,t,o,r,n,l,p){"use strict";var i,c=null===Object.prototype.__proto__,d=c?"__proto__":"prototype",u=c?null:function(){var e=l.createElement("iframe"),t=l.body||l.documentElement;e.style.display="none",t.appendChild(e),e.src="javascript:";var o=e.contentWindow.Object.prototype;return t.removeChild(e),e=null,delete o.constructor,delete o.hasOwnProperty,delete o.propertyIsEnumerable,delete o.isPrototypeOf,delete o.toLocaleString,delete o.toString,delete o.valueOf,o.__proto__=null,o}();return i=e.pool.extend({getModel:function(){return u},_dispose:function(e){var t;e[d]=u;for(t in e)delete e[t];return e},_obtain:function(){return{}}}),t.pool=t.pool||{},t.pool.object=i.create(),i}); \ No newline at end of file diff --git a/dist/latest/min/promise/all.js b/dist/latest/min/promise/all.js index d7f0eb66..317a8945 100644 --- a/dist/latest/min/promise/all.js +++ b/dist/latest/min/promise/all.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){var o=[];window.Promise||o.push("../polyfill/window/promise"),window.qoopido.register("promise/all",n,o)}(function(n,o,t,r,i,e,u){"use strict";return function(n){if("[object Array]"!==Object.prototype.toString.call(n))throw new TypeError("You must pass an array to all.");return new i.Promise(function(o,t){function r(n){return function(o){i(n,o)}}function i(n,t){c[n]=t,0===--f&&o(c)}var e,c=[],f=n.length,s=0;for(0===f&&o([]);(e=n[s])!==u;s++)e&&"function"==typeof e.then?e.then(r(s),t):i(s,e)})}}); \ No newline at end of file diff --git a/dist/latest/min/promise/defer.js b/dist/latest/min/promise/defer.js index 4da06d4f..1b746cc4 100644 --- a/dist/latest/min/promise/defer.js +++ b/dist/latest/min/promise/defer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(i){var o=[];window.Promise||o.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",i,o)}(function(i,o,e,r,n,s,t){"use strict";return function(){var i=this;i.promise=new n.Promise(function(o,e){i.resolve=o,i.reject=e})}}); \ No newline at end of file diff --git a/dist/latest/min/promise/race.js b/dist/latest/min/promise/race.js index 973b86f9..0234cccd 100644 --- a/dist/latest/min/promise/race.js +++ b/dist/latest/min/promise/race.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){var r=[];window.Promise||r.push("../polyfill/window/promise"),window.qoopido.register("promise/race",o,r)}(function(o,r,t,n,e,i,s){"use strict";return function(o){if("[object Array]"!==Object.prototype.toString.call(o))throw new TypeError("You must pass an array to all.");return new e.Promise(function(r,t){for(var n,e=0;(n=o[e])!==s;e++)n&&"function"==typeof n.then?n.then(r,t):r(n)})}}); \ No newline at end of file diff --git a/dist/latest/min/proxy.js b/dist/latest/min/proxy.js index 044e8438..29e7b672 100644 --- a/dist/latest/min/proxy.js +++ b/dist/latest/min/proxy.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("proxy",n,["./base","./function/unique/uuid"])}(function(n,t,u,r,e,o,i){"use strict";return n.base.extend({_constructor:function(t,u){var r=Array.prototype.splice.call(arguments,2),e=function(){return u.apply(t,Array.prototype.slice.call(arguments).concat(r))};return e._quid=n["function/unique/uuid"](),e}})}); \ No newline at end of file diff --git a/dist/latest/min/renderer.js b/dist/latest/min/renderer.js index bcdf21db..9a215928 100644 --- a/dist/latest/min/renderer.js +++ b/dist/latest/min/renderer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("renderer",e,["./emitter","./support","./dom/element"])}(function(e,t,i,n,r,a,o){"use strict";function c(e){return r.setTimeout(e,y)}function u(){var e=this;a[v]?d&&(s=(new Date).getTime(),e.paused=!0,k(d),d=null,e.emit("suspend")):d||(e.paused=!1,s&&(l=(new Date).getTime()-s,f+=l,g+=l,e.emit("resume",l)),e._tick())}var m,s,l,d,g,p,f,h,_=e.support,w=e["dom/element"].create(a),T=r[_.getMethod("requestAnimationFrame")]||c,k=r[_.getMethod("cancelAnimationFrame")]||clearTimeout,v=_.getProperty("hidden",a),D=60,y=1e3/D,b=0;return m=e.emitter.extend({framerate:0,ratio:1,paused:!1,_tick:null,_constructor:function(){var e=this;m._parent._constructor.call(e),g=f=(new Date).getTime(),e._tick=function(){e.paused===!1&&(p=(new Date).getTime(),h=p-g,e.ratio=(p-f)/y,e.framerate=D/e.ratio,h>=1e3&&(g=p,b=0),f=p,b+=1,e.emit("tick",e.framerate,e.ratio),d=T(e._tick))},w.on("".concat("visibilitychange ",_.getPrefix()[0],"visibilitychange"),function(){u.call(e)}),u.call(e)}})}); \ No newline at end of file diff --git a/dist/latest/min/support.js b/dist/latest/min/support.js index 91634f7f..1eb9869e 100644 --- a/dist/latest/min/support.js +++ b/dist/latest/min/support.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,s,o,i,p){"use strict";function n(e){return e.replace(a,"$1").lcfirst().replace(c,"").replace(m,g)}var l=e["promise/all"],u=e["promise/defer"],f=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),c=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),m=new RegExp("-([a-z])","gi"),h=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},y={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==p;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var s=new u;e?s.resolve():s.reject(),t.push(s.promise);break;default:t.push(e)}return new l(t)},getPrefix:function(){var e,t=this,r=y.prefix||null;if(null===r){var s=t.pool?t.pool.obtain("div"):i.createElement("div"),o=s.style;r=!1;for(e in o)f.test(e)&&(r=e.match(f)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=y.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],s.dispose&&s.dispose()}return r},getMethod:function(e,t){e=n(e),t=t||o;var r=t.tagName,s=y.method[r]=y.method[r]||{},i=s[e]=y.method[r][e]||null;if(null===i){i=!1;var l,u,f=0,a=e.ucfirst(),c=this.getPrefix();for(l=c!==!1?(e+" "+a+" "+c.join(a+" ")+a).split(" "):[e];(u=l[f])!==p;f++)if(t[u]!==p&&("function"==typeof t[u]||"object"==typeof t[u])){i=u;break}y.method[r][e]=i}return i},getProperty:function(e,t){e=n(e),t=t||o;var r=t.tagName,s=y.property[r]=y.property[r]||{},i=s[e]=y.property[r][e]||null;if(null===i){i=!1;var l,u,f=0,a=e.ucfirst(),c=this.getPrefix();for(l=c!==!1?(e+" "+a+" "+c.join(a+" ")+a).split(" "):[e],f;(u=l[f])!==p;f++)if(t[u]!==p){i=u;break}y.property[r][e]=i}return i},getCssProperty:function(e){e=n(e);var t=this,r=y.css[e]||null;if(null===r){r=!1;var s,o=0,l=t.pool?t.pool.obtain("div"):i.createElement("div"),u=e.ucfirst(),f=this.getPrefix()||[],a=(e+" "+u+" "+f.join(u+" ")+u).split(" "),c="";for(o;(s=a[o])!==p;o++)if(l.style[s]!==p){r=s,o>0&&(c="-");break}r=y.css[e]=r!==!1?[c+r.replace(h,"-$1").toLowerCase(),r]:!1,l.dispose&&l.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=y.promises.prefix;if(null===e){var t=new u,r=this.getPrefix();r?t.resolve(r):t.reject(),e=y.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,s=y.promises.method[r]=y.promises.method[r]||{},i=s[e]=y.promises.method[r][e]||null;if(null===i){var p=new u,n=this.getMethod(e,t);n?p.resolve(n):p.reject(),i=y.promises.method[r][e]=p.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,s=y.promises.property[r]=y.promises.property[r]||{},i=s[e]=y.promises.property[r][e]||null;if(null===i){var p=new u,n=this.getProperty(e,t);n?p.resolve(n):p.reject(),i=y.promises.property[r][e]=p.promise}return i},testCssProperty:function(e){var t=y.promises.css[e]||null;if(null===t){var r=new u,s=this.getCssProperty(e);s?r.resolve(s):r.reject(),t=y.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=y.promises.test[e]||null;if(null===r){var s=new u,o=Array.prototype.slice.call(arguments);o.splice(0,0,s),t.apply(null,o),r=y.promises.test[e]=s.promise}return r}}})}); \ No newline at end of file diff --git a/dist/latest/min/support/capability/datauri.js b/dist/latest/min/support/capability/datauri.js index 7d774f3c..ac96fe2d 100644 --- a/dist/latest/min/support/capability/datauri.js +++ b/dist/latest/min/support/capability/datauri.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,o,i,A,r,a){"use strict";var n=e.support;return n.addTest("/capability/datauri",function(t){var o=e["dom/element"].create(n.pool?n.pool.obtain("img"):r.createElement("img"));o.one("error load",function(e){"load"===e.type&&1===o.element.width&&1===o.element.height?t.resolve():t.reject(),o.element.dispose&&o.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}); \ No newline at end of file diff --git a/dist/latest/min/support/capability/touch.js b/dist/latest/min/support/capability/touch.js index e6e25d8b..bc0fabcb 100644 --- a/dist/latest/min/support/capability/touch.js +++ b/dist/latest/min/support/capability/touch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/capability/touch",o,["../../support"])}(function(o,t,c,u,n,i,s){"use strict";return o.support.addTest("/capability/touch",function(o){"ontouchstart"in n||n.DocumentTouch&&i instanceof DocumentTouch||u.maxTouchPoints>0||u.msMaxTouchPoints>0?o.resolve():o.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/borderradius.js b/dist/latest/min/support/css/borderradius.js index 29615234..3807728a 100644 --- a/dist/latest/min/support/css/borderradius.js +++ b/dist/latest/min/support/css/borderradius.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("support/css/borderradius",r,["../../support"])}(function(r,s,o,t,e,p,u){"use strict";return r.support.addTest("/css/borderradius",function(s){r.support.supportsCssProperty("border-radius")?s.resolve(r.support.getCssProperty("border-radius")):s.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/boxshadow.js b/dist/latest/min/support/css/boxshadow.js index 1c89d207..ad9ef94e 100644 --- a/dist/latest/min/support/css/boxshadow.js +++ b/dist/latest/min/support/css/boxshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/css/boxshadow",o,["../../support"])}(function(o,s,t,r,p,e,u){"use strict";return o.support.addTest("/css/boxshadow",function(s){o.support.supportsCssProperty("box-shadow")?s.resolve(o.support.getCssProperty("box-shadow")):s.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/rem.js b/dist/latest/min/support/css/rem.js index 061135bf..c0fc834d 100644 --- a/dist/latest/min/support/css/rem.js +++ b/dist/latest/min/support/css/rem.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/css/rem",e,["../../support"])}(function(e,t,o,s,r,i,n){"use strict";var p=e.support;return p.addTest("/css/rem",function(e){var t=p.pool?p.pool.obtain("div"):i.createElement("div");try{t.style.fontSize="3rem"}catch(o){}/rem/.test(t.style.fontSize)?e.resolve():e.reject(),t.dispose&&t.dispose()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/rgba.js b/dist/latest/min/support/css/rgba.js index 0e16f0b1..84404ddb 100644 --- a/dist/latest/min/support/css/rgba.js +++ b/dist/latest/min/support/css/rgba.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("support/css/rgba",o,["../../support"])}(function(o,r,t,s,e,a,c){"use strict";var i=o.support;return i.addTest("/css/rgba",function(o){var r=i.pool?i.pool.obtain("div"):a.createElement("div");try{r.style.backgroundColor="rgba(0,0,0,.5)"}catch(t){}/rgba/.test(r.style.backgroundColor)?o.resolve():o.reject(),r.dispose&&r.dispose()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/textshadow.js b/dist/latest/min/support/css/textshadow.js index 4b764176..7a5bd4a4 100644 --- a/dist/latest/min/support/css/textshadow.js +++ b/dist/latest/min/support/css/textshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/textshadow",t,["../../support"])}(function(t,s,o,r,e,p,u){"use strict";return t.support.addTest("/css/textshadow",function(s){t.support.supportsCssProperty("text-shadow")?s.resolve(t.support.getCssProperty("text-shadow")):s.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/transform.js b/dist/latest/min/support/css/transform.js index 0dfa6846..344836c8 100644 --- a/dist/latest/min/support/css/transform.js +++ b/dist/latest/min/support/css/transform.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(r){window.qoopido.register("support/css/transform",r,["../../support"])}(function(r,s,t,o,p,e,n){"use strict";return r.support.addTest("/css/transform",function(s){r.support.supportsCssProperty("transform")?s.resolve(r.support.getCssProperty("transform")):s.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/transform/2d.js b/dist/latest/min/support/css/transform/2d.js index 7ffffb19..cfe9f485 100644 --- a/dist/latest/min/support/css/transform/2d.js +++ b/dist/latest/min/support/css/transform/2d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transform/2d",t,["../../../support","../transform"])}(function(t,r,o,s,e,n,p){"use strict";var c=t.support;return c.addTest("/css/transform/2d",function(r){t["support/css/transform"]().then(function(){var o=c.pool?c.pool.obtain("div"):n.createElement("div"),s=t.support.getCssProperty("transform");try{o.style[s]="rotate(30deg)"}catch(e){}/rotate/.test(o.style[s])?r.resolve():r.reject(),o.dispose&&o.dispose()},function(){r.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/transform/3d.js b/dist/latest/min/support/css/transform/3d.js index 2bc9c285..0f3f63ed 100644 --- a/dist/latest/min/support/css/transform/3d.js +++ b/dist/latest/min/support/css/transform/3d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transform/3d",t,["../../../support","../transform"])}(function(t,s,r,o,e,n,p){"use strict";var a=t.support;return a.addTest("/css/transform/3d",function(s){t["support/css/transform"]().then(function(){var r=a.pool?a.pool.obtain("div"):n.createElement("div"),o=t.support.getCssProperty("transform");try{r.style[o]="translate3d(0,0,0)"}catch(e){}/translate3d/.test(r.style[o])?s.resolve():s.reject(),r.dispose&&r.dispose()},function(){s.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/css/transition.js b/dist/latest/min/support/css/transition.js index 3f87cc59..a92062ef 100644 --- a/dist/latest/min/support/css/transition.js +++ b/dist/latest/min/support/css/transition.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/css/transition",t,["../../support"])}(function(t,s,r,o,n,i,p){"use strict";return t.support.addTest("/css/transition",function(s){t.support.supportsCssProperty("transition")?s.resolve(t.support.getCssProperty("transition")):s.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/canvas.js b/dist/latest/min/support/element/canvas.js index 193e9a35..72225bf9 100644 --- a/dist/latest/min/support/element/canvas.js +++ b/dist/latest/min/support/element/canvas.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,o,n,s,a,r){"use strict";var p=e.support;return p.addTest("/element/canvas",function(e){var t=p.pool?p.pool.obtain("canvas"):a.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/canvas/todataurl.js b/dist/latest/min/support/element/canvas/todataurl.js index 2185437b..6efd1506 100644 --- a/dist/latest/min/support/element/canvas/todataurl.js +++ b/dist/latest/min/support/element/canvas/todataurl.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/element/canvas/todataurl",t,["../../../support","../canvas"])}(function(t,e,n,o,a,s,r){"use strict";var c=t.support;return c.addTest("/element/canvas/todataurl",function(e){t["support/element/canvas"]().then(function(){var t=c.pool?c.pool.obtain("canvas"):s.createElement("canvas");t.toDataURL!==r?e.resolve():e.reject(),t.dispose&&t.dispose()},function(){e.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/canvas/todataurl/jpeg.js b/dist/latest/min/support/element/canvas/todataurl/jpeg.js index a0a44b8a..d09b41ad 100644 --- a/dist/latest/min/support/element/canvas/todataurl/jpeg.js +++ b/dist/latest/min/support/element/canvas/todataurl/jpeg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas/todataurl/jpeg",e,["../../../../support","../todataurl"])}(function(e,t,a,o,n,r,s){"use strict";var p=e.support;return p.addTest("/element/canvas/todataurl/jpeg",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===e.toDataURL("image/jpeg").indexOf("data:image/jpeg")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/canvas/todataurl/png.js b/dist/latest/min/support/element/canvas/todataurl/png.js index c8f08bd7..345ea2c1 100644 --- a/dist/latest/min/support/element/canvas/todataurl/png.js +++ b/dist/latest/min/support/element/canvas/todataurl/png.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("support/element/canvas/todataurl/png",t,["../../../../support","../todataurl"])}(function(t,e,a,n,o,r,s){"use strict";var p=t.support;return p.addTest("/element/canvas/todataurl/png",function(e){t["support/element/canvas/todataurl"]().then(function(){var t=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===t.toDataURL("image/png").indexOf("data:image/png")?e.resolve():e.reject(),t.dispose&&t.dispose()},function(){e.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/canvas/todataurl/webp.js b/dist/latest/min/support/element/canvas/todataurl/webp.js index 41fe475a..e2d6b164 100644 --- a/dist/latest/min/support/element/canvas/todataurl/webp.js +++ b/dist/latest/min/support/element/canvas/todataurl/webp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/canvas/todataurl/webp",e,["../../../../support","../todataurl"])}(function(e,t,a,o,n,r,s){"use strict";var p=e.support;return p.addTest("/element/canvas/todataurl/webp",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=p.pool?p.pool.obtain("canvas"):r.createElement("canvas");0===e.toDataURL("image/webp").indexOf("data:image/webp")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/svg.js b/dist/latest/min/support/element/svg.js index b50def0c..0efc8131 100644 --- a/dist/latest/min/support/element/svg.js +++ b/dist/latest/min/support/element/svg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/svg",e,["../../support"])}(function(e,t,r,n,o,s,c){"use strict";return e.support.addTest("/element/svg",function(e){s.createElementNS&&s.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?e.resolve():e.reject()})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/video.js b/dist/latest/min/support/element/video.js index 95e5f7dc..5bef8ba8 100644 --- a/dist/latest/min/support/element/video.js +++ b/dist/latest/min/support/element/video.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video",e,["../../support"])}(function(e,o,t,i,n,r,p){"use strict";var s=e.support;return s.addTest("/element/video",function(e){var o=s.pool?s.pool.obtain("video"):r.createElement("video");o.canPlayType?e.resolve():e.reject(),o.dispose&&o.dispose()})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/video/mp4.js b/dist/latest/min/support/element/video/mp4.js index 057b4e22..302b3ca8 100644 --- a/dist/latest/min/support/element/video/mp4.js +++ b/dist/latest/min/support/element/video/mp4.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/mp4",e,["../../../support","../video"])}(function(e,o,t,i,n,p,r){"use strict";var d=e.support;return d.addTest("/element/video/mp4",function(o){e["support/element/video"]().then(function(){var e=d.pool?d.pool.obtain("video"):p.createElement("video");e.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/video/ogg.js b/dist/latest/min/support/element/video/ogg.js index 0cea1fa7..850a52cc 100644 --- a/dist/latest/min/support/element/video/ogg.js +++ b/dist/latest/min/support/element/video/ogg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/ogg",e,["../../../support","../video"])}(function(e,o,t,i,n,r,s){"use strict";var d=e.support;return d.addTest("/element/video/ogg",function(o){e["support/element/video"]().then(function(){var e=d.pool?d.pool.obtain("video"):r.createElement("video");e.canPlayType('video/ogg; codecs="theora, vorbis"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/support/element/video/webm.js b/dist/latest/min/support/element/video/webm.js index 09bdec55..d42e8ddb 100644 --- a/dist/latest/min/support/element/video/webm.js +++ b/dist/latest/min/support/element/video/webm.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("support/element/video/webm",e,["../../../support","../video"])}(function(e,o,t,i,n,r,p){"use strict";var s=e.support;return s.addTest("/element/video/webm",function(o){e["support/element/video"]().then(function(){var e=s.pool?s.pool.obtain("video"):r.createElement("video");e.canPlayType('video/webm; codecs="vp8, vorbis"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()})})}); \ No newline at end of file diff --git a/dist/latest/min/transport.js b/dist/latest/min/transport.js index f2417b29..95cbfa9c 100644 --- a/dist/latest/min/transport.js +++ b/dist/latest/min/transport.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(n){window.qoopido.register("transport",n,["./base","./function/merge"])}(function(n,e,t,o,i,r,s){"use strict";var c;return c=n.base.extend({setup:function(e){var t=this;return t._settings=n["function/merge"]({},t._settings,e),t},serialize:function(n,e){var t,o,i,r=[];for(t in n)o=e?"".concat(e,"[",t,"]"):t,i=n[t],r.push("object"==typeof i?this.serialize(i,o):"".concat(encodeURIComponent(o),"=",encodeURIComponent(i)));return r.join("&")}})},window,document); \ No newline at end of file diff --git a/dist/latest/min/transport/jsonp.js b/dist/latest/min/transport/jsonp.js index 54fa78ec..719ad67e 100644 --- a/dist/latest/min/transport/jsonp.js +++ b/dist/latest/min/transport/jsonp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("transport/jsonp",t,["../transport","../function/merge","../function/unique/uuid","../url","../dom/element","../promise/defer"])}(function(t,e,i,n,o,c,r){"use strict";function s(t,e){var i=this,n=i.dfd,c=i.script,r=i.settings;e="object"==typeof e?i.serialize(e):e,t="".concat(t,t.indexOf("?")>-1?"&":"?","".concat(r.callback,"=",i.id)),t=r.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","".concat("_=",(new Date).getTime().toString())):t,t=e?"".concat(t,t.indexOf("?")>-1?"&":"?",e):t,o[i.id]=function(t){try{delete o[i.id]}catch(e){o[i.id]=null}u.call(i),n.resolve(t)},c.on("load readystatechange",function(t){a.call(i,t)}).one("error",function(){l.call(i)}).setAttribute("src",t),g.appendChild(c.element),i.timeout=setTimeout(function(){d.call(i)},r.timeout)}function a(t){var e=this,i=e.dfd;t.readyState&&"loaded"!==t.readyState&&"complete"!==t.readyState||e.script.off()&&e.script.element.dispose&&e.script.element.dispose(),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){d.call(e)},e.settings.timeout),i.notify(t)}function l(){var t=this;u.call(t),t.dfd.reject()}function d(){var t=this;u.call(t),t.dfd.reject(!1)}function u(){var t=this;t.timeout&&clearTimeout(t.timeout),t.script.off()&&t.script.element.dispose&&t.script.element.dispose()}var m,f=t["promise/defer"],p=e.pool&&e.pool.dom,g=c.getElementsByTagName("head")[0];return m=t.transport.extend({_settings:{callback:"callback",cache:!1,timeout:5e3},load:function(e,i,n){var o={};return e=t.url.resolve(e),o.id="".concat("jsonp-",t["function/unique/string"]()),o.dfd=new f,o.script=t["dom/element"].create(p?p.obtain("script"):c.createElement("script")),o.settings=t["function/merge"]({},this._settings,n),o.timeout=null,o.script.setAttribute("async",!0),s.call(o,e,i),o.dfd.promise}})},window,document); \ No newline at end of file diff --git a/dist/latest/min/transport/xhr.js b/dist/latest/min/transport/xhr.js index 3b417ea2..5f779343 100644 --- a/dist/latest/min/transport/xhr.js +++ b/dist/latest/min/transport/xhr.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.registerSingleton("transport/xhr",t,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(t,e,n,r,o,i,u){"use strict";function s(t,e,n){var r,o=this,i=o.xhr,u=o.settings;e=u.cache===!1?"".concat(e,e.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):e,e=n&&"GET"===t?"".concat(e,e.indexOf("?")>-1?"&":"?",n):e;for(r in u.xhrOptions)i[r]=u.xhrOptions[r];if(i.open(t,e,u.async,u.username,u.password),i.setRequestHeader){i.setRequestHeader("Accept",u.accept),n&&"GET"!==t&&i.setRequestHeader("Content-Type",u.contentType);for(r in u.header)i.setRequestHeader(r,u.header[r])}i.timeout=u.timeout,i.onprogress=function(t){a.call(o,t)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){d.call(o)},u.timeout)}function a(t){var e=this;e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){d.call(e)},e.settings.timeout)}function c(){var t=this,e=t.xhr,n=t.dfd;(e.readyState===u||4===e.readyState)&&(f.call(t),e.status===u||200===e.status?n.resolve({data:e.responseText,xhr:e}):n.reject({status:e.status,xhr:e}))}function l(){var t=this;f.call(t),t.dfd.reject()}function d(){var t=this;t.xhr.abort(),f.call(t),t.dfd.reject()}function f(){var t=this,e=t.xhr;t.timeout&&clearTimeout(t.timeout),e.onprogress=e.onreadystatechange=e.onerror=null}var h,p=t["promise/defer"],m="undefined"!=typeof o.XMLHttpRequest?function(e){return t.url.isLocal(e)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(t){return null}};return h=t.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(e,n,r,o){var i={};return n=t.url.resolve(n),i.url=n,i.id="".concat("xhr-",t["function/unique/string"]()),i.dfd=new p,i.xhr=m(n),i.settings=t["function/merge"]({},this._settings,o),i.timeout=null,s.call(i,e.toUpperCase(),n,r),i.dfd.promise},get:function(t,e,n){return this.load("GET",t,e,n)},post:function(t,e,n){return this.load("POST",t,e,n)},put:function(t,e,n){return this.load("PUT",t,e,n)},"delete":function(t,e,n){return this.load("DELETE",t,e,n)},head:function(t,e,n){return this.load("HEAD",t,e,n)}})},window,document); \ No newline at end of file diff --git a/dist/latest/min/url.js b/dist/latest/min/url.js index cc19d732..13ebde07 100644 --- a/dist/latest/min/url.js +++ b/dist/latest/min/url.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,o,r,c,i){"use strict";function a(e){var t=c.createElement("a");return t.href=e||"",t}var s,u,f=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{s=location}catch(l){s=a()}return u=new RegExp("".concat("^",s.protocol,"//",s.hostname),"i"),e.base.extend({resolve:function(e){return a(e).href},redirect:function(e,t){t=t||r,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},o=a(e).search.split("+").join(" ");t=f.exec(o);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return u.test(this.resolve(e))}})}); \ No newline at end of file diff --git a/dist/latest/min/vector/2d.js b/dist/latest/min/vector/2d.js index 3b889115..c576eade 100644 --- a/dist/latest/min/vector/2d.js +++ b/dist/latest/min/vector/2d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(t){window.qoopido.register("vector/2d",t,["../base"])}(function(t,i,s,h,e,n,o){"use strict";var y,r=180/Math.PI,u=Math.PI/180,c=i.pool&&i.pool.object;return y=t.base.extend({_temp:null,x:null,y:null,_constructor:function(t,i){this._temp=c?c.obtain():{},this._temp.x=0,this._temp.y=0,this.x=t||0,this.y=i||0},_obtain:function(t,i){this.x=t||0,this.y=i||0},_destroy:function(){this._temp=this._temp.dispose&&this._temp.dispose()},getAngle:function(t){return t?Math.atan2(this.y,this.x):Math.atan2(this.y,this.x)*r%360},getLength:function(t){return t?this.x*this.x+this.y*this.y:Math.sqrt(this.x*this.x+this.y*this.y)},rotate:function(t,i){var s=Math.cos(t*(i?1:u)),h=Math.sin(t*(i?1:u));return this._temp.x=this.x,this._temp.y=this.y,this.x=this._temp.x*s-this._temp.y*h,this.y=this._temp.x*h+this._temp.y*s,this},invert:function(){return this.x=-this.x,this.y=-this.y,this},add:function(t){return this.x+="object"==typeof t?t.x:t,this.y+="object"==typeof t?t.y:t,this},subtract:function(t){return this.x-="object"==typeof t?t.x:t,this.y-="object"==typeof t?t.y:t,this},multiply:function(t){return this.x*="object"==typeof t?t.x:t,this.y*="object"==typeof t?t.y:t,this},divide:function(t){return this.x/="object"==typeof t?t.x:t,this.y/="object"==typeof t?t.y:t,this}})}); \ No newline at end of file diff --git a/dist/latest/min/widget/image/adapt.js b/dist/latest/min/widget/image/adapt.js index d4bdf167..67b285aa 100644 --- a/dist/latest/min/widget/image/adapt.js +++ b/dist/latest/min/widget/image/adapt.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("widget/image/adapt",e,["../../dom/element","../../dom/element/emerge","../../component/sense"])}(function(e,t,i,n,a,o,r){"use strict";function l(e){var t=this;return t._container.setStyle("paddingBottom",100*e+"%"),t}function c(e,t){var i=this;e.mql=h.create(t).on("matched dematched",function(){d.call(i)})}function d(){for(var e,t,i,n,o,c,d=this,s=0;(e=d._candidates[s])!==r;s++)if(!e.mql||e.mql.matches&&e.mql.matches()===!0){l.call(d,e.ratio),d._visible===!0&&(t=d._image||(d._image=A.create("",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",alt:d._caption},{position:"absolute",display:"block",width:"100%",height:"100%",top:"0",left:"0",margin:"0",padding:"0"}).appendTo(d._container)),i=t.element.getBoundingClientRect(),n=Math.round(i.width),o=Math.round(i.width*e.ratio),c=e.url.replace(g,"$1."+n+"x"+o+"@"+(a.devicePixelRatio||1)+".$2"),t.setAttribute("src",c));break}}function s(){for(var e,t=0;(e=_[t])!==r;t++)d.call(e)}function m(){a.clearTimeout(u),u=a.setTimeout(s,200)}var p,u,g=new RegExp("(.+?).(jpg|jpeg|png|gif|webp)$"),A=e["dom/element"],h=e["component/sense"],_=[];return p=e["dom/element/emerge"].extend({_visible:!1,_candidates:null,_container:null,_image:null,_caption:null,_constructor:function(e,t){var i,n,a,o,s=this,m=0;for(p._parent._constructor.call(s,e,t),i=parseFloat(s.getAttribute("data-ratio")||1),n=s.find('[itemprop="source"],[itemprop="contentUrl"]'),s._candidates=[],s._container=A.create("
").setStyles({position:"relative",display:"block",width:"100%",height:0,padding:0}).appendTo(s),s._caption=(o=s.find('[itemprop="caption"]')[0])?o.getAttribute("content"):null,l.call(s,i);(a=n[m])!==r;m++){var u=parseFloat(a.getAttribute("data-ratio")||i),g=a.getAttribute("data-media")||null;s._candidates.push({ratio:u,url:a.getAttribute("content"),mql:g}),g&&c.call(s,s._candidates[s._candidates.length-1],g)}s.on("emerged demerged",function(e){s._visible="emerged"===e.type?!0:!1,d.call(s)}),_.push(s)}}),A.create(a).on("resize orientationchange",m),p}); \ No newline at end of file diff --git a/dist/latest/min/worker.js b/dist/latest/min/worker.js index 3762c3b1..87509456 100644 --- a/dist/latest/min/worker.js +++ b/dist/latest/min/worker.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e){window.qoopido.register("worker",e,["./base","./support","./promise/defer"])}(function(e,t,s,n,r,o,p){"use strict";var u=e["promise/defer"],i=new RegExp("Blob$","i"),a=e.support.supportsMethod("Worker"),c=e.support.supportsMethod("URL")?r[e.support.getMethod("URL")]:null,l=e.support.getMethod("Blob")||e.support.getMethod("BlobBuilder"),f="var self = this, regex = new RegExp(',\\s+', 'g'); self.addEventListener('message', function(pEvent) { self.postMessage({ type: 'result', result: self.process(pEvent.data.func).apply(null, pEvent.data.args)}); }, false); self.postProgress = function(pProgress) { self.postMessage({ type: 'progress', progress: pProgress}); }; self.process = function(pFunction) { var functionArguments = pFunction.substring(pFunction.indexOf('(') + 1, pFunction.indexOf(')')).replace(regex, ',').split(','); functionArguments.push(pFunction.substring(pFunction.indexOf('{') + 1, pFunction.lastIndexOf('}'))); return Function.apply(null, functionArguments); };",g=null;return a&&c&&l&&(g=c.createObjectURL(i.test(l)===!0?new r[l]([f],{type:"text/javascript"}):(new r[l]).append(f).getBlob("text/javascript"))),e.base.extend({execute:function(e,t){var s=new u;if(t=t||[],g){var n=new Worker(g);n.addEventListener("message",function(e){switch(e.data.type){case"result":s.resolve(e.data.result)}},!1),n.addEventListener("error",function(e){s.reject(e)},!1),n.postMessage({func:e.toString(),args:t})}else setTimeout(function(){try{s.resolve(e.apply(null,t))}catch(n){s.reject()}},0);return s.promise}})}); \ No newline at end of file diff --git a/package.json b/package.json index 5cc05dfc..5c049a35 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "qoopido.js", "title": "Qoopido.js library", "description": "Modular library of dry, extendable and AMD compatible JavaScript modules", - "version": "3.7.0", + "version": "3.7.1", "homepage": "https://github.com/dlueth/qoopido.js", "author": { "name": "Dirk Lueth", diff --git a/packages/qoopido.base.3.7.0.js b/packages/qoopido.base.3.7.1.js similarity index 99% rename from packages/qoopido.base.3.7.0.js rename to packages/qoopido.base.3.7.1.js index 84af108e..aeae734c 100644 --- a/packages/qoopido.base.3.7.0.js +++ b/packages/qoopido.base.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.base.3.7.0.min.js b/packages/qoopido.base.3.7.1.min.js similarity index 98% rename from packages/qoopido.base.3.7.0.min.js rename to packages/qoopido.base.3.7.1.min.js index 65f5d2ae..ad4e8f68 100644 --- a/packages/qoopido.base.3.7.0.min.js +++ b/packages/qoopido.base.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var p=Object.defineProperty,s=Object.prototype.__defineGetter__,u=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(p)try{return p(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return s&&"get"in r&&s.call(e,t,r.get),u&&"set"in r&&u.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return p.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,o,n,i){"use strict";function c(e,t,c,p){var u,l=e.split("/");return d[e]?d[e]:(u=function(){if(c)for(var u,y,b=l.slice(0,-1).join("/"),j=0;(u=c[j])!==i;j++)y=a.test(u),y&&(u=s(b+"/"+u)),!d[u]&&arguments[j]&&(d[u]=arguments[j]),y&&!d[u]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",u));return d[e]=t(d,f,l,r,o,n,i),p&&p(d[e]),d[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(u):"function"==typeof define&&define.amd?c?define(c,u):define(u):u()))}function p(e,t,r){c(e,t,r,function(t){d[e]=t.create()})}function s(e){for(var t;(t=e.replace(y,""))!==e;)e=t;return e.replace(b,"")}var u=t.qoopido||(t.qoopido={register:c,registerSingleton:p}),f=u.shared||(u.shared={}),d=u.modules||(u.modules={}),l=[],a=new RegExp("^\\.+\\/"),y=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),b=new RegExp("(^\\/)|\\.\\/","g");Object.create||l.push("./polyfill/object/create"),Object.getOwnPropertyNames||l.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||l.push("./polyfill/object/getownpropertydescriptor"),c("base",e,l)}(function(e,t,r,o,n,i,c){"use strict";function p(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==c;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function s(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,p(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=s,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,p(e)),t===!0&&(r.extend=s),r}}},this,navigator,window,document); \ No newline at end of file diff --git a/packages/qoopido.base.latest.js b/packages/qoopido.base.latest.js index 84af108e..aeae734c 100644 --- a/packages/qoopido.base.latest.js +++ b/packages/qoopido.base.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.base.latest.min.js b/packages/qoopido.base.latest.min.js index 65f5d2ae..ad4e8f68 100644 --- a/packages/qoopido.base.latest.min.js +++ b/packages/qoopido.base.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var p=Object.defineProperty,s=Object.prototype.__defineGetter__,u=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(p)try{return p(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return s&&"get"in r&&s.call(e,t,r.get),u&&"set"in r&&u.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return p.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,o,n,i){"use strict";function c(e,t,c,p){var u,l=e.split("/");return d[e]?d[e]:(u=function(){if(c)for(var u,y,b=l.slice(0,-1).join("/"),j=0;(u=c[j])!==i;j++)y=a.test(u),y&&(u=s(b+"/"+u)),!d[u]&&arguments[j]&&(d[u]=arguments[j]),y&&!d[u]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",u));return d[e]=t(d,f,l,r,o,n,i),p&&p(d[e]),d[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(u):"function"==typeof define&&define.amd?c?define(c,u):define(u):u()))}function p(e,t,r){c(e,t,r,function(t){d[e]=t.create()})}function s(e){for(var t;(t=e.replace(y,""))!==e;)e=t;return e.replace(b,"")}var u=t.qoopido||(t.qoopido={register:c,registerSingleton:p}),f=u.shared||(u.shared={}),d=u.modules||(u.modules={}),l=[],a=new RegExp("^\\.+\\/"),y=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),b=new RegExp("(^\\/)|\\.\\/","g");Object.create||l.push("./polyfill/object/create"),Object.getOwnPropertyNames||l.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||l.push("./polyfill/object/getownpropertydescriptor"),c("base",e,l)}(function(e,t,r,o,n,i,c){"use strict";function p(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==c;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function s(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,p(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=s,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,p(e)),t===!0&&(r.extend=s),r}}},this,navigator,window,document); \ No newline at end of file diff --git a/packages/qoopido.emerge.3.7.0.js b/packages/qoopido.emerge.3.7.1.js similarity index 97% rename from packages/qoopido.emerge.3.7.0.js rename to packages/qoopido.emerge.3.7.1.js index f5e56d66..c12d9645 100644 --- a/packages/qoopido.emerge.3.7.0.js +++ b/packages/qoopido.emerge.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1076,7 +1076,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1130,6 +1130,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1167,7 +1170,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1203,13 +1206,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1236,13 +1236,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1252,13 +1249,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1285,13 +1279,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1620,8 +1611,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -1645,6 +1635,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; diff --git a/packages/qoopido.emerge.3.7.0.min.js b/packages/qoopido.emerge.3.7.1.min.js similarity index 63% rename from packages/qoopido.emerge.3.7.0.min.js rename to packages/qoopido.emerge.3.7.1.min.js index 5631cc24..c380c109 100644 --- a/packages/qoopido.emerge.3.7.0.min.js +++ b/packages/qoopido.emerge.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in j)r=j[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var a="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],g="textContent"in i.createElement("a")?"textContent":"innerText",h="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,_=e["hook/css"],x={},j={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=x[n]:(n=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},x[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(w),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[g]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[g]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=r.element.getAttributes(t);return n},setAttribute:function(e,t){var r=this;return e&&typeof e===f&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.element.removeAttribute(t);return r},getStyle:function(e){var t=this;return e&&typeof e===f?_.process("get",t.element,e):void 0},getStyles:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=_.process("get",r.element,t);return n},setStyle:function(e,t){var r=this;return e&&typeof e===f&&_.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)_.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.setStyle(t,"");return r},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=v.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=h.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=h.call(this.element);if(!e)return t;for(;t;t=h.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=d()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+p,m=function(t){var r;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=d(),(!i||c(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};m.type=r,n._listener[f]=m,o.addEventListener(r,m)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=d(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=this;f._parent._constructor.call(n,t),r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n)},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in E)r=E[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(_)}function a(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",v="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),_=new RegExp(" +","g"),x=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,j=e["hook/css"],P={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=P[n]:(n=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(b),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[h]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,r={},n=c(arguments),o=0;(e=n[o])!==s;o++)r[e]=t.element.getAttribute(e);return r},setAttribute:function(e,t){var r=this;return e&&typeof e===d&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,r=c(arguments),n=0;(e=r[n])!==s;n++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?j.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,r={},n=c(arguments),o=0;(e=n[o])!==s;o++)r[e]=j.process("get",t.element,e);return r},setStyle:function(e,t){var r=this;return e&&typeof e===d&&j.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)j.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,r=c(arguments),n=0;(e=r[n])!==s;n++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=y.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=y.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=m()),c=0;for(t=t.split(" ");(r=t[c])!==s;c++){var f=r+"-"+p,d=function(t){var r;t=x&&x.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=m(),(!i||a(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};d.type=r,n._listener[f]=d,o.addEventListener(r,d)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=m(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=f._parent._constructor.call(this,t);return r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n),n},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}); \ No newline at end of file diff --git a/packages/qoopido.emerge.latest.js b/packages/qoopido.emerge.latest.js index f5e56d66..c12d9645 100644 --- a/packages/qoopido.emerge.latest.js +++ b/packages/qoopido.emerge.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1076,7 +1076,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1130,6 +1130,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1167,7 +1170,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1203,13 +1206,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1236,13 +1236,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1252,13 +1249,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1285,13 +1279,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1620,8 +1611,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -1645,6 +1635,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; diff --git a/packages/qoopido.emerge.latest.min.js b/packages/qoopido.emerge.latest.min.js index 5631cc24..c380c109 100644 --- a/packages/qoopido.emerge.latest.min.js +++ b/packages/qoopido.emerge.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in j)r=j[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var a="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],g="textContent"in i.createElement("a")?"textContent":"innerText",h="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,_=e["hook/css"],x={},j={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=x[n]:(n=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},x[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(w),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[g]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[g]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=r.element.getAttributes(t);return n},setAttribute:function(e,t){var r=this;return e&&typeof e===f&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.element.removeAttribute(t);return r},getStyle:function(e){var t=this;return e&&typeof e===f?_.process("get",t.element,e):void 0},getStyles:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=_.process("get",r.element,t);return n},setStyle:function(e,t){var r=this;return e&&typeof e===f&&_.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)_.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.setStyle(t,"");return r},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=v.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=h.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=h.call(this.element);if(!e)return t;for(;t;t=h.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=d()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+p,m=function(t){var r;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=d(),(!i||c(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};m.type=r,n._listener[f]=m,o.addEventListener(r,m)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=d(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=this;f._parent._constructor.call(n,t),r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n)},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in E)r=E[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(_)}function a(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",v="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),_=new RegExp(" +","g"),x=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,j=e["hook/css"],P={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=P[n]:(n=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(b),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[h]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,r={},n=c(arguments),o=0;(e=n[o])!==s;o++)r[e]=t.element.getAttribute(e);return r},setAttribute:function(e,t){var r=this;return e&&typeof e===d&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,r=c(arguments),n=0;(e=r[n])!==s;n++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?j.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,r={},n=c(arguments),o=0;(e=n[o])!==s;o++)r[e]=j.process("get",t.element,e);return r},setStyle:function(e,t){var r=this;return e&&typeof e===d&&j.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)j.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,r=c(arguments),n=0;(e=r[n])!==s;n++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=y.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=y.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=m()),c=0;for(t=t.split(" ");(r=t[c])!==s;c++){var f=r+"-"+p,d=function(t){var r;t=x&&x.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=m(),(!i||a(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};d.type=r,n._listener[f]=d,o.addEventListener(r,d)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=m(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=f._parent._constructor.call(this,t);return r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n),n},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}); \ No newline at end of file diff --git a/packages/qoopido.emitter.3.7.0.js b/packages/qoopido.emitter.3.7.1.js similarity index 99% rename from packages/qoopido.emitter.3.7.0.js rename to packages/qoopido.emitter.3.7.1.js index afee231a..19271f2e 100644 --- a/packages/qoopido.emitter.3.7.0.js +++ b/packages/qoopido.emitter.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.emitter.3.7.0.min.js b/packages/qoopido.emitter.3.7.1.min.js similarity index 98% rename from packages/qoopido.emitter.3.7.0.min.js rename to packages/qoopido.emitter.3.7.1.min.js index 1b99ea67..18a28337 100644 --- a/packages/qoopido.emitter.3.7.0.min.js +++ b/packages/qoopido.emitter.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var p=Object.defineProperty,s=Object.prototype.__defineGetter__,u=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(p)try{return p(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return s&&"get"in r&&s.call(e,t,r.get),u&&"set"in r&&u.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return p.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,o,n,i){"use strict";function c(e,t,c,p){var u,a=e.split("/");return f[e]?f[e]:(u=function(){if(c)for(var u,y,b=a.slice(0,-1).join("/"),j=0;(u=c[j])!==i;j++)y=d.test(u),y&&(u=s(b+"/"+u)),!f[u]&&arguments[j]&&(f[u]=arguments[j]),y&&!f[u]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",u));return f[e]=t(f,l,a,r,o,n,i),p&&p(f[e]),f[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(u):"function"==typeof define&&define.amd?c?define(c,u):define(u):u()))}function p(e,t,r){c(e,t,r,function(t){f[e]=t.create()})}function s(e){for(var t;(t=e.replace(y,""))!==e;)e=t;return e.replace(b,"")}var u=t.qoopido||(t.qoopido={register:c,registerSingleton:p}),l=u.shared||(u.shared={}),f=u.modules||(u.modules={}),a=[],d=new RegExp("^\\.+\\/"),y=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),b=new RegExp("(^\\/)|\\.\\/","g");Object.create||a.push("./polyfill/object/create"),Object.getOwnPropertyNames||a.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||a.push("./polyfill/object/getownpropertydescriptor"),c("base",e,a)}(function(e,t,r,o,n,i,c){"use strict";function p(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==c;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function s(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,p(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=s,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,p(e)),t===!0&&(r.extend=s),r}}},this,navigator,window,document),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,o,n,i,c){"use strict";function p(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var o,n=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,n]),o=e._mapped[t].apply(e,n),e.emit.apply(e,["post"+r,n,o]),o}}var s=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&s.test(e)===!1&&(t[e]=p(t,e))},on:function(e,t){var r,o=this,n=0;for(e=e.split(" ");(r=e[n])!==c;n++)(o._listener[r]=o._listener[r]||[]).push(t);return o},one:function(e,t,r){r=r!==!1;var o=this;return o.on(e,function n(i){o.off(r===!0?i:e,n),t.apply(this,arguments)}),o},off:function(e,t){var r,o,n,i=this,p=0;if(e)for(e=e.split(" ");(r=e[p])!==c;p++)if(i._listener[r]=i._listener[r]||[],t)for(o=0;(n=i._listener[r][o])!==c;o++)n===t&&(i._listener[r].splice(o,1),o--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,o=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[o])!==c;o++)t.apply(r,arguments);r._temp.length=0}return r}})}); \ No newline at end of file diff --git a/packages/qoopido.emitter.latest.js b/packages/qoopido.emitter.latest.js index afee231a..19271f2e 100644 --- a/packages/qoopido.emitter.latest.js +++ b/packages/qoopido.emitter.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.emitter.latest.min.js b/packages/qoopido.emitter.latest.min.js index 1b99ea67..18a28337 100644 --- a/packages/qoopido.emitter.latest.min.js +++ b/packages/qoopido.emitter.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var p=Object.defineProperty,s=Object.prototype.__defineGetter__,u=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(p)try{return p(e,t,r)}catch(o){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return s&&"get"in r&&s.call(e,t,r.get),u&&"set"in r&&u.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var o=new r;if(e&&(o.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(o,t)}return o}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,o,n,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,o,n,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var p=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return p.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,o,n,i){"use strict";function c(e,t,c,p){var u,a=e.split("/");return f[e]?f[e]:(u=function(){if(c)for(var u,y,b=a.slice(0,-1).join("/"),j=0;(u=c[j])!==i;j++)y=d.test(u),y&&(u=s(b+"/"+u)),!f[u]&&arguments[j]&&(f[u]=arguments[j]),y&&!f[u]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",u));return f[e]=t(f,l,a,r,o,n,i),p&&p(f[e]),f[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(u):"function"==typeof define&&define.amd?c?define(c,u):define(u):u()))}function p(e,t,r){c(e,t,r,function(t){f[e]=t.create()})}function s(e){for(var t;(t=e.replace(y,""))!==e;)e=t;return e.replace(b,"")}var u=t.qoopido||(t.qoopido={register:c,registerSingleton:p}),l=u.shared||(u.shared={}),f=u.modules||(u.modules={}),a=[],d=new RegExp("^\\.+\\/"),y=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),b=new RegExp("(^\\/)|\\.\\/","g");Object.create||a.push("./polyfill/object/create"),Object.getOwnPropertyNames||a.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||a.push("./polyfill/object/getownpropertydescriptor"),c("base",e,a)}(function(e,t,r,o,n,i,c){"use strict";function p(e){for(var t,r={},o=Object.getOwnPropertyNames(e),n=0;(t=o[n])!==c;n++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function s(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,p(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=s,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,p(e)),t===!0&&(r.extend=s),r}}},this,navigator,window,document),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,o,n,i,c){"use strict";function p(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var o,n=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,n]),o=e._mapped[t].apply(e,n),e.emit.apply(e,["post"+r,n,o]),o}}var s=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&s.test(e)===!1&&(t[e]=p(t,e))},on:function(e,t){var r,o=this,n=0;for(e=e.split(" ");(r=e[n])!==c;n++)(o._listener[r]=o._listener[r]||[]).push(t);return o},one:function(e,t,r){r=r!==!1;var o=this;return o.on(e,function n(i){o.off(r===!0?i:e,n),t.apply(this,arguments)}),o},off:function(e,t){var r,o,n,i=this,p=0;if(e)for(e=e.split(" ");(r=e[p])!==c;p++)if(i._listener[r]=i._listener[r]||[],t)for(o=0;(n=i._listener[r][o])!==c;o++)n===t&&(i._listener[r].splice(o,1),o--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,o=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[o])!==c;o++)t.apply(r,arguments);r._temp.length=0}return r}})}); \ No newline at end of file diff --git a/packages/qoopido.lazyimage.3.7.0.js b/packages/qoopido.lazyimage.3.7.1.js similarity index 97% rename from packages/qoopido.lazyimage.3.7.0.js rename to packages/qoopido.lazyimage.3.7.1.js index fd64145a..ba23a1f3 100644 --- a/packages/qoopido.lazyimage.3.7.0.js +++ b/packages/qoopido.lazyimage.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1076,7 +1076,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1130,6 +1130,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1167,7 +1170,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1203,13 +1206,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1236,13 +1236,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1252,13 +1249,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1285,13 +1279,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1620,8 +1611,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -1645,6 +1635,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; @@ -1679,8 +1670,7 @@ } prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element, modules["function/merge"]({}, defaults, settings || {})); + var self = prototype._parent._constructor.call(this, element, modules["function/merge"]({}, defaults, settings || {})); self.on(EVENT_EMERGED, function onEmerge(event) { if (queue === 0 || event.data === 1) { self.remove(); diff --git a/packages/qoopido.lazyimage.3.7.0.min.js b/packages/qoopido.lazyimage.3.7.1.min.js similarity index 52% rename from packages/qoopido.lazyimage.3.7.0.min.js rename to packages/qoopido.lazyimage.3.7.1.min.js index b589bd8c..797d97b7 100644 --- a/packages/qoopido.lazyimage.3.7.0.min.js +++ b/packages/qoopido.lazyimage.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in j)r=j[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var a="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],g="textContent"in i.createElement("a")?"textContent":"innerText",h="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,_=e["hook/css"],x={},j={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=x[n]:(n=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},x[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(w),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[g]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[g]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=r.element.getAttributes(t);return n},setAttribute:function(e,t){var r=this;return e&&typeof e===f&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.element.removeAttribute(t);return r},getStyle:function(e){var t=this;return e&&typeof e===f?_.process("get",t.element,e):void 0},getStyles:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=_.process("get",r.element,t);return n},setStyle:function(e,t){var r=this;return e&&typeof e===f&&_.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)_.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.setStyle(t,"");return r},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=v.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=h.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=h.call(this.element);if(!e)return t;for(;t;t=h.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=d()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+p,m=function(t){var r;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=d(),(!i||c(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};m.type=r,n._listener[f]=m,o.addEventListener(r,m)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=d(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=this;f._parent._constructor.call(n,t),r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n)},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}),function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,s){"use strict";function l(){var e=this,t=e._settings.attribute;c+=1,e.emit(a).one(v,function(t){e.emit(t.type===g?f:d),c-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var u,p={interval:50,threshold:"auto",attribute:"data-lazyimage"},c=0,a="requested",f="loaded",d="failed",m="emerged",g="load",h="error",v="".concat(g," ",h);return u=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=this;u._parent._constructor.call(n,t,e["function/merge"]({},p,r||{})),n.on(m,function o(e){(0===c||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))})}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),c&&"set"in r&&c.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,g=f.slice(0,-1).join("/"),h=0;(c=s[h])!==i;h++)m=d.test(c),m&&(c=u(g+"/"+c)),!p[c]&&arguments[h]&&(p[c]=arguments[h]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,a,f,r,n,o,i),l&&l(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function l(e,t,r){s(e,t,r,function(t){p[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),a=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function a(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function p(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(c){l=!0,i=c}else o=n,s=!0;a(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):a(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,c=0;for(0===u&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(n(c),r):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],c=e["promise/defer"],a=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new c;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)a.test(e)&&(r=e.match(a)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,c,a=0,p=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=u[a])!==s;a++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,c,a=0,p=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],a;(c=u[a])!==s;a++)if(t[c]!==s){i=c;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),a=this.getPrefix()||[],p=(e+" "+c+" "+a.join(c+" ")+c).split(" "),f="";for(o;(n=p[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new c,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new c,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new c,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new c,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},c=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in E)r=E[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function a(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(_)}function p(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",v="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),_=new RegExp(" +","g"),x=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,j=e["hook/css"],P={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=c(e),n=e._quid,n?o=P[n]:(n=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(b),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[h]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,r={},n=a(arguments),o=0;(e=n[o])!==s;o++)r[e]=t.element.getAttribute(e);return r},setAttribute:function(e,t){var r=this;return e&&typeof e===d&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,r=a(arguments),n=0;(e=r[n])!==s;n++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?j.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,r={},n=a(arguments),o=0;(e=n[o])!==s;o++)r[e]=j.process("get",t.element,e);return r},setStyle:function(e,t){var r=this;return e&&typeof e===d&&j.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)j.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,r=a(arguments),n=0;(e=r[n])!==s;n++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=y.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=y.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||c(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||c(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],c=l._quid||(l._quid=m()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+c,d=function(t){var r;t=x&&x.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=m(),(!i||p(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};d.type=r,n._listener[f]=d,o.addEventListener(r,d)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=m(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&a.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function c(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function a(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&p.call(t,r,n)}function p(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=f._parent._constructor.call(this,t);return r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){c.call(n)}),c.call(n),n},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}),function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,s){"use strict";function l(){var e=this,t=e._settings.attribute;a+=1,e.emit(p).one(v,function(t){e.emit(t.type===g?f:d),a-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var u,c={interval:50,threshold:"auto",attribute:"data-lazyimage"},a=0,p="requested",f="loaded",d="failed",m="emerged",g="load",h="error",v="".concat(g," ",h);return u=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=u._parent._constructor.call(this,t,e["function/merge"]({},c,r||{}));n.on(m,function o(e){(0===a||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))})}})}); \ No newline at end of file diff --git a/packages/qoopido.lazyimage.latest.js b/packages/qoopido.lazyimage.latest.js index fd64145a..ba23a1f3 100644 --- a/packages/qoopido.lazyimage.latest.js +++ b/packages/qoopido.lazyimage.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1076,7 +1076,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1130,6 +1130,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1167,7 +1170,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1203,13 +1206,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1236,13 +1236,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1252,13 +1249,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1285,13 +1279,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1620,8 +1611,7 @@ _state: null, _priority: null, _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element); + var self = prototype._parent._constructor.call(this, element); settings = modules["function/merge"]({}, defaults, settings || {}); if (settings.threshold === "auto") { delete settings.threshold; @@ -1645,6 +1635,7 @@ instanceOnResize.call(self); }); instanceOnResize.call(self); + return self; }, remove: function() { var self = this; @@ -1679,8 +1670,7 @@ } prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this; - prototype._parent._constructor.call(self, element, modules["function/merge"]({}, defaults, settings || {})); + var self = prototype._parent._constructor.call(this, element, modules["function/merge"]({}, defaults, settings || {})); self.on(EVENT_EMERGED, function onEmerge(event) { if (queue === 0 || event.data === 1) { self.remove(); diff --git a/packages/qoopido.lazyimage.latest.min.js b/packages/qoopido.lazyimage.latest.min.js index b589bd8c..797d97b7 100644 --- a/packages/qoopido.lazyimage.latest.min.js +++ b/packages/qoopido.lazyimage.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,p=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),p&&"set"in r&&p.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var p,f=e.split("/");return a[e]?a[e]:(p=function(){if(s)for(var p,m,g=f.slice(0,-1).join("/"),h=0;(p=s[h])!==i;h++)m=d.test(p),m&&(p=u(g+"/"+p)),!a[p]&&arguments[h]&&(a[p]=arguments[h]),m&&!a[p]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",p));return a[e]=t(a,c,f,r,n,o,i),l&&l(a[e]),a[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(p):"function"==typeof define&&define.amd?s?define(s,p):define(p):p()))}function l(e,t,r){s(e,t,r,function(t){a[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var p=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),c=p.shared||(p.shared={}),a=p.modules||(p.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(p,1)}function p(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function c(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function a(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(p){l=!0,i=p}else o=n,s=!0;c(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):c(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],a(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,p=0;for(0===u&&t([]);(i=e[p])!==s;p++)i&&"function"==typeof i.then?i.then(n(p),r):o(p,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(a,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],p=e["promise/defer"],c=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),a=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new p;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)c.test(e)&&(r=e.match(c)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e];(p=u[c])!==s;c++)if(t[p]!==s&&("function"==typeof t[p]||"object"==typeof t[p])){i=p;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,p,c=0,a=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+a+" "+f.join(a+" ")+a).split(" "):[e],c;(p=u[c])!==s;c++)if(t[p]!==s){i=p;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),p=e.ucfirst(),c=this.getPrefix()||[],a=(e+" "+p+" "+c.join(p+" ")+p).split(" "),f="";for(o;(n=a[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new p,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new p,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new p,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new p,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new p,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},p=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],p={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&p[e]&&(p[e]=t),this},get:function(e){return e&&p[e]?p[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in j)r=j[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function p(e){var t;if("string"==typeof e)try{y.test(e)===!0?(t=e.replace(y,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function c(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var a="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],g="textContent"in i.createElement("a")?"textContent":"innerText",h="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},y=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,_=e["hook/css"],x={},j={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=p(e),n=e._quid,n?o=x[n]:(n=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},x[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(w),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[g]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[g]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=r.element.getAttributes(t);return n},setAttribute:function(e,t){var r=this;return e&&typeof e===f&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.element.removeAttribute(t);return r},getStyle:function(e){var t=this;return e&&typeof e===f?_.process("get",t.element,e):void 0},getStyles:function(e){var t,r=this,n={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)n[t]=_.process("get",r.element,t);return n},setStyle:function(e,t){var r=this;return e&&typeof e===f&&_.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===a&&!e.length)for(t in e)_.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,r=this,n=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[n])!==s;n++)r.setStyle(t,"");return r},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=v.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=h.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=h.call(this.element);if(!e)return t;for(;t;t=h.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||p(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||p(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||p(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||p(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||p(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],p=l._quid||(l._quid=d()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+p,m=function(t){var r;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=d(),(!i||c(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};m.type=r,n._listener[f]=m,o.addEventListener(r,m)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=d(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&c.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function p(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function c(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&a.call(t,r,n)}function a(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=this;f._parent._constructor.call(n,t),r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){p.call(n)}),p.call(n)},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}),function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,s){"use strict";function l(){var e=this,t=e._settings.attribute;c+=1,e.emit(a).one(v,function(t){e.emit(t.type===g?f:d),c-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var u,p={interval:50,threshold:"auto",attribute:"data-lazyimage"},c=0,a="requested",f="loaded",d="failed",m="emerged",g="load",h="error",v="".concat(g," ",h);return u=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=this;u._parent._constructor.call(n,t,e["function/merge"]({},p,r||{})),n.on(m,function o(e){(0===c||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))})}})}); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var l=Object.defineProperty,u=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(l)try{return l(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return u&&"get"in r&&u.call(e,t,r.get),c&&"set"in r&&c.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var l=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return l.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function s(e,t,s,l){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,g=f.slice(0,-1).join("/"),h=0;(c=s[h])!==i;h++)m=d.test(c),m&&(c=u(g+"/"+c)),!p[c]&&arguments[h]&&(p[c]=arguments[h]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,a,f,r,n,o,i),l&&l(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function l(e,t,r){s(e,t,r,function(t){p[e]=t.create()})}function u(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:l}),a=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,r,n,o,i,s){"use strict";function l(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==s;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function u(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,l(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=u,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,l(e)),t===!0&&(r.extend=u),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,r,n,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var l=new RegExp("(\\-([a-z]){1})","g"),u=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),l.test(t)&&(t=t.replace(l,u)),e.currentStyle[t]||null},r}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,r,n,o,i,s){"use strict";function l(e,t){var r=E.push([e,t]);1===r&&u()}function u(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=E[t])!==s;t++)e[0](e[1]);E.length=0}function a(e,t){var r,n=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(n=t.then,"function"==typeof n))return n.call(t,function(n){return r?!0:(r=!0,void(t!==n?d(e,n):m(e,n)))},function(t){return r?!0:(r=!0,void g(e,t))}),!0}catch(o){return r?!0:(g(e,o),!0)}return!1}function p(e,t){function r(e){d(t,e)}function n(e){g(t,e)}try{e(r,n)}catch(o){n(o)}}function f(e,t,r,n){var o,i,s,l,u="function"==typeof r;if(u)try{o=r(n),s=!0}catch(c){l=!0,i=c}else o=n,s=!0;a(t,o)||(u&&s?d(t,o):l?g(t,i):e===j?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):a(e,t)||m(e,t)}function m(e,t){e._state===_&&(e._state=x,e._detail=t,l(h,e))}function g(e,t){e._state===_&&(e._state=x,e._detail=t,l(v,e))}function h(e){w(e,e._state=j)}function v(e){w(e,e._state=P)}function y(e,t,r,n){var o=e._subscribers,i=o.length;o[i]=t,o[i+j]=r,o[i+P]=n}function w(e,t){for(var r,n,o=e._subscribers,i=e._detail,l=0;(r=o[l])!==s;l+=3)n=o[l+t],f(t,r,n,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var _=void 0,x=0,j=1,P=2,E=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var r=this,n=new b(function(){});return r._state?l(function(){f(r._state,n,arguments[r._state-1],r._detail)}):y(r,n,e,t),n},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,r){function n(e){return function(t){o(e,t)}}function o(e,r){l[e]=r,0===--u&&t(l)}var i,l=[],u=e.length,c=0;for(0===u&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(n(c),r):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,r,n,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,r){e.resolve=t,e.reject=r})}}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,g)}var u=e["promise/all"],c=e["promise/defer"],a=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],r=0;(e=arguments[r])!==s;r++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var n=new c;e?n.resolve():n.reject(),t.push(n.promise);break;default:t.push(e)}return new u(t)},getPrefix:function(){var e,t=this,r=h.prefix||null;if(null===r){var n=t.pool?t.pool.obtain("div"):i.createElement("div"),o=n.style;r=!1;for(e in o)a.test(e)&&(r=e.match(a)[0]);r===!1&&"WebkitOpacity"in o&&(r="WebKit"),r===!1&&"KhtmlOpacity"in o&&(r="Khtml"),r=h.prefix=r===!1?!1:[r.toLowerCase(),r.toLowerCase().ucfirst(),r],n.dispose&&n.dispose()}return r},getMethod:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.method[r]=h.method[r]||{},i=n[e]=h.method[r][e]||null;if(null===i){i=!1;var u,c,a=0,p=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=u[a])!==s;a++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}h.method[r][e]=i}return i},getProperty:function(e,t){e=l(e),t=t||o;var r=t.tagName,n=h.property[r]=h.property[r]||{},i=n[e]=h.property[r][e]||null;if(null===i){i=!1;var u,c,a=0,p=e.ucfirst(),f=this.getPrefix();for(u=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],a;(c=u[a])!==s;a++)if(t[c]!==s){i=c;break}h.property[r][e]=i}return i},getCssProperty:function(e){e=l(e);var t=this,r=h.css[e]||null;if(null===r){r=!1;var n,o=0,u=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),a=this.getPrefix()||[],p=(e+" "+c+" "+a.join(c+" ")+c).split(" "),f="";for(o;(n=p[o])!==s;o++)if(u.style[n]!==s){r=n,o>0&&(f="-");break}r=h.css[e]=r!==!1?[f+r.replace(m,"-$1").toLowerCase(),r]:!1,u.dispose&&u.dispose()}return r},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new c,r=this.getPrefix();r?t.resolve(r):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var r=t.tagName,n=h.promises.method[r]=h.promises.method[r]||{},i=n[e]=h.promises.method[r][e]||null;if(null===i){var s=new c,l=this.getMethod(e,t);l?s.resolve(l):s.reject(),i=h.promises.method[r][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var r=t.tagName,n=h.promises.property[r]=h.promises.property[r]||{},i=n[e]=h.promises.property[r][e]||null;if(null===i){var s=new c,l=this.getProperty(e,t);l?s.resolve(l):s.reject(),i=h.promises.property[r][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var r=new c,n=this.getCssProperty(e);n?r.resolve(n):r.reject(),t=h.promises.css[e]=r.promise}return t},addTest:function(e,t){return this.test[e]=function(){var r=h.promises.test[e]||null;if(null===r){var n=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,n),t.apply(null,o),r=h.promises.test[e]=n.promise}return r}}})}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,r,n,o,i,s){"use strict";return function l(){var e,t,r,n,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(r in t)n=i[r],o=t[r],o!==s&&(null!==o&&"object"==typeof o?(n=o.length!==s?n&&"object"==typeof n&&n.length!==s?n:[]:n&&"object"==typeof n&&n.length===s?n:{},i[r]=l(n,o)):i[r]=o);return i}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,r,n,o,i,s){"use strict";function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)})}var u={},c=new RegExp("[xy]","g");return function(){var e;do e=l();while("undefined"!=typeof u[e]);return u[e]=!0,e}}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,r,n,o,i,s){"use strict";function l(e,t,r){for(var n,o=0;(n=r[o])!==s;o++)e[n]=t[n];e._properties=e._properties.concat(r)}var u={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var r;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],r=e.target;do e.path.push(r);while(r=r.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var r,n,o;n=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(r=e.target.ownerDocument||i,r=r.documentElement||r.body,e.pageX=t.clientX+(r.scrollLeft||0)-(r.clientLeft||0),e.pageY=t.clientY+(r.scrollTop||0)-(r.clientTop||0)),!e.relatedTarget&&n&&(e.relatedTarget=n===e.target?t.toElement:n),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&u[e]&&(u[e]=t),this},get:function(e){return e&&u[e]?u[e]:null},process:function(e,t){var r,n,o;for(r in u)n=u[r],o=!n.regex||n.regex.test(t.type),o&&(n.properties&&l(e,t,n.properties),n.process&&n.process(e,t),n.delegate&&(e.delegate=n.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,r,n,o,i,s){"use strict";var l=e.support,u=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return u(e,null).getPropertyValue(t[0])},set:function(e,t,r){e.style[t[1]]=r}},opacity:l.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,r){return r=u(e,null).getPropertyValue("filter").toString().match(this.regex),r=r?r[1]/100:1},set:function(e,t,r){var n=e.style;n.zoom=1,n.filter="alpha(opacity="+(100*r+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,r,n){var o;return r=l.getCssProperty(r,t)||null,r?((o=this.get(r[1]))&&o[e]||this.get("general")[e])(t,r,n):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,r,n,o,i,s){"use strict";var l=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){l.process(this,e)},_dispose:function(){for(var e,t=this,r=0;(e=t._properties[r])!==s;r++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r,n;for(t in E)r=E[t],(!r.regex||r.regex.test(e))&&(n=r);return n}function u(e,t,r){var n=this,o=l(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),r&&(s._quid=r,s.isDelegate=!0),n.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(r){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function a(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(_)}function p(e,t){for(var r,n=0;(r=e.path[n])!==s;n++){if(r.matches(t))return e.currentTarget=r,!0;if(r===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",v="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),_=new RegExp(" +","g"),x=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,j=e["hook/css"],P={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,r){var n,o=this;return e=c(e),n=e._quid,n?o=P[n]:(n=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[n]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof r&&null!==r&&o.setStyles(r),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,r){this._constructor(e,t,r)},_dispose:function(){var e,t,r=this;for(e in r._listener)t=e.match(b),r.element.removeEventListener(t,r._listener[e]),delete r._listener[e];r.type=null,r.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var r=this,n=r.element;return t&&t!==!1?n.innerHTML=e:n[h]=e,r},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,r={},n=a(arguments),o=0;(e=n[o])!==s;o++)r[e]=t.element.getAttribute(e);return r},setAttribute:function(e,t){var r=this;return e&&typeof e===d&&r.element.setAttribute(e,t),r},setAttributes:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)r.element.setAttribute(t,e[t]);return r},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,r=a(arguments),n=0;(e=r[n])!==s;n++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?j.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,r={},n=a(arguments),o=0;(e=n[o])!==s;o++)r[e]=j.process("get",t.element,e);return r},setStyle:function(e,t){var r=this;return e&&typeof e===d&&j.process("set",r.element,e,t),r},setStyles:function(e){var t,r=this;if(e&&typeof e===f&&!e.length)for(t in e)j.process("set",r.element,t,e[t]);return r},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,r=a(arguments),n=0;(e=r[n])!==s;n++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,r=t.parentNode.firstChild,n=[];r;r=y.call(r))r===t||e&&!r.matches(e)||n.push(r);return n},siblingsBefore:function(e){for(var t=this.element.previousSibling,r=[];t;t=v.call(t))(!e||t.matches(e))&&r.push(t);return r},siblingsAfter:function(e){for(var t=this.element.nextSibling,r=[];t;t=y.call(t))(!e||t.matches(e))&&r.push(t);return r},previous:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,r,n=this.element;return e=e.trim(),">"===e.charAt(0)?(t=n._quid,n.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,r=n.parentNode.querySelectorAll(e),n.removeAttribute("data-quid")):r=n.querySelectorAll(e),r},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,r=[];t;t=t.parentNode){if(9===t.nodeType)return r;1===t.nodeType&&(!e||t.matches(e))&&r.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,r=t.element;if(e)try{e=e.element||c(e),r.firstChild?r.insertBefore(e,r.firstChild):t.append(e)}catch(n){r.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,r=t.element;if(e)try{r.appendChild(e.element||c(e))}catch(n){r.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,r=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(r,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(r,e),t},insertAfter:function(e){var t=this,r=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(r,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(r,e),t},replaceWith:function(e){var t=this,r=t.element;return e&&(e=e.element||c(e),r.parentNode.replaceChild(e,r)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var r,n=this,o=n.element,i=arguments.length>2?arguments[1]:null,l=arguments.length>2?arguments[2]:arguments[1],c=l._quid||(l._quid=m()),a=0;for(t=t.split(" ");(r=t[a])!==s;a++){var f=r+"-"+c,d=function(t){var r;t=x&&x.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(r=t.delegate,t._quid=m(),(!i||p(t,i))&&l.call(t.currentTarget,t,t.originalEvent.detail),r&&(delete t.delegate,u.call(n,r))),t.dispose&&t.dispose()};d.type=r,n._listener[f]=d,o.addEventListener(r,d)}return n},one:function(e){var t=this,r=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,n=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(r){t.off(o===!0?r.type:e,i),n.call(this,r,r.originalEvent.detail)};return n._quid=i._quid=m(),r?t.on(e,r,i):t.on(e,i),t},off:function(e,t){var r,n,o,i=this,l=i.element,u=0;for(e=e.split(" ");(r=e[u])!==s;u++)n=t._quid&&r+"-"+t._quid||null,o=n&&i._listener[n]||null,o?(l.removeEventListener(r,o),delete i._listener[n]):l.removeEventListener(r,t);return i},emit:function(e,t){var r=this;return u.call(r,e,t),r}})}),function(e){window.qoopido.register("dom/element/emerge",e,["../element","../../function/merge","../../function/unique/uuid"])}(function(e,t,r,n,o,i,s){"use strict";function l(e){var t,r=v[e];for(t in r)"length"!==t&&a.call(r[t]);0===r.length&&(o.element.clearInterval(h[e]),delete h[e])}function u(){g.left=0,g.top=0,g.right=o.innerWidth||m.clientWidth,g.bottom=o.innerHeight||m.clientHeight}function c(){var e=this,t=e._settings.threshold,r=t!==s?t:m.clientWidth*e._settings.auto,n=t!==s?t:m.clientHeight*e._settings.auto;e._viewport.left=g.left-r,e._viewport.top=g.top-n,e._viewport.right=g.right+r,e._viewport.bottom=g.bottom+n}function a(){var e,t=this,r=!1,n=2;!t.isVisible()||"hidden"===t.getStyle("visibility")&&t._settings.visibility!==!1||(e=t.element.getBoundingClientRect(),(e.bottom>=t._viewport.top&&e.bottom<=t._viewport.bottom||e.top>=t._viewport.top&&e.top<=t._viewport.bottom||t._viewport.bottom>=e.top&&t._viewport.bottom<=e.bottom||t._viewport.top>=e.top&&t._viewport.top<=e.bottom)&&(e.left>=t._viewport.left&&e.left<=t._viewport.right||e.right>=t._viewport.left&&e.right<=t._viewport.right||t._viewport.left>=e.left&&t._viewport.left<=e.right||t._viewport.right>=e.left&&t._viewport.right<=e.right)&&((0===t._settings.threshold||(e.bottom>=g.top&&e.bottom<=g.bottom||e.top>=g.top&&e.top<=g.bottom||g.bottom>=e.top&&g.bottom<=e.bottom||g.top>=e.top&&g.top<=e.bottom)&&(e.left>=g.left&&e.left<=g.right||e.right>=g.left&&e.right<=g.right||g.left>=e.left&&g.left<=e.right||g.right>=e.left&&g.right<=e.right))&&(n=1),r=!0)),(r!==t._state||r===!0&&n!==t._priority)&&p.call(t,r,n)}function p(e,t){var r=this;r._state=e,r._priority=t,r._settings.recur!==!0&&r.remove(),e===!0?r.emit(y,t):r.emit(w)}var f,d={interval:50,threshold:"auto",recur:!0,auto:1,visibility:!0},m=o.document.documentElement,g={},h={},v={},y="emerged",w="demerged",b="resize orientationchange";if(o=e["dom/element"].create(o),"CSS1Compat"!==i.compatMode)throw"[Qoopido.js] Not in standards mode";return f=e["dom/element"].extend({_quid:null,_viewport:null,_settings:null,_state:null,_priority:null,_constructor:function(t,r){var n=f._parent._constructor.call(this,t);return r=e["function/merge"]({},d,r||{}),"auto"===r.threshold&&delete r.threshold,h[r.interval]===s&&(v[r.interval]=v[r.interval]||{length:0},h[r.interval]=o.element.setInterval(function(){l(r.interval)},r.interval)),n._quid=e["function/unique/uuid"](),n._viewport={},n._settings=r,n._state=!1,n._priority=2,v[r.interval][n._quid]=n,v[r.interval].length++,o.on(b,function(){c.call(n)}),c.call(n),n},remove:function(){var e=this;delete v[e._settings.interval][e._quid],v[e._settings.interval].length--}}),o.on(b,u),u(),f}),function(e){window.qoopido.register("dom/element/lazyimage",e,["./emerge","../../function/merge"])}(function(e,t,r,n,o,i,s){"use strict";function l(){var e=this,t=e._settings.attribute;a+=1,e.emit(p).one(v,function(t){e.emit(t.type===g?f:d),a-=1},!1).setAttribute("src",e.getAttribute(t)).removeAttribute(t)}var u,c={interval:50,threshold:"auto",attribute:"data-lazyimage"},a=0,p="requested",f="loaded",d="failed",m="emerged",g="load",h="error",v="".concat(g," ",h);return u=e["dom/element/emerge"].extend({_constructor:function(t,r){var n=u._parent._constructor.call(this,t,e["function/merge"]({},c,r||{}));n.on(m,function o(e){(0===a||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))})}})}); \ No newline at end of file diff --git a/packages/qoopido.remux.3.7.0.js b/packages/qoopido.remux.3.7.1.js similarity index 99% rename from packages/qoopido.remux.3.7.0.js rename to packages/qoopido.remux.3.7.1.js index aed2d87d..82dca6b2 100644 --- a/packages/qoopido.remux.3.7.0.js +++ b/packages/qoopido.remux.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.remux.3.7.0.min.js b/packages/qoopido.remux.3.7.1.min.js similarity index 99% rename from packages/qoopido.remux.3.7.0.min.js rename to packages/qoopido.remux.3.7.1.min.js index 6b3011f6..49e910e7 100644 --- a/packages/qoopido.remux.3.7.0.min.js +++ b/packages/qoopido.remux.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var s=Object.defineProperty,a=Object.prototype.__defineGetter__,l=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(s)try{return s(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in r&&a.call(e,t,r.get),l&&"set"in r&&l.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var s=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return s.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function c(e,t,c,s){var l,d=e.split("/");return p[e]?p[e]:(l=function(){if(c)for(var l,m,y=d.slice(0,-1).join("/"),h=0;(l=c[h])!==i;h++)m=f.test(l),m&&(l=a(y+"/"+l)),!p[l]&&arguments[h]&&(p[l]=arguments[h]),m&&!p[l]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",l));return p[e]=t(p,u,d,r,n,o,i),s&&s(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(l):"function"==typeof define&&define.amd?c?define(c,l):define(l):l()))}function s(e,t,r){c(e,t,r,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(y,"")}var l=t.qoopido||(t.qoopido={register:c,registerSingleton:s}),u=l.shared||(l.shared={}),p=l.modules||(l.modules={}),d=[],f=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||d.push("./polyfill/object/create"),Object.getOwnPropertyNames||d.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||d.push("./polyfill/object/getownpropertydescriptor"),c("base",e,d)}(function(e,t,r,n,o,i,c){"use strict";function s(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==c;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,s(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,s(e)),t===!0&&(r.extend=a),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,c){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var s=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),s.test(t)&&(t=t.replace(s,a)),e.currentStyle[t]||null},r}}),function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=o.innerWidth||y.clientWidth,t=o.innerHeight||y.clientHeight,r=o.screen.width,n=o.screen.height,i=o.screen.colorDepth,c=o.devicePixelRatio;g.width=e,g.height=t,g["aspect-ratio"]=(e/t).toFixed(2),g.color=i,g["color-index"]=Math.pow(2,i),g["device-aspect-ratio"]=(r/n).toFixed(2),g["device-height"]=n,g["device-width"]=r,g["device-pixel-ratio"]=c||1,g.resolution=c&&96*c||o.screen.deviceXDPI||96,g.orientation=t>=e?"portrait":"landscape"}function a(e){var t,r,n={matches:!1,media:e,addListener:function(e){e&&r.push(e)},removeListener:function(e){for(var t,n=0;(t=r[n])!==c;n++)t===e&&r.splice(n,1)}};return n.matches=""===e?!0:l(e),h.push({mql:n,listeners:[]}),t=h.length-1,w[e]=t,r=h[t].listeners,n}function l(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],r=t.length-1,n=r,o=null,i=null,c="",s=0,a=!1,l="",u="",p=null,d=0,f=0,m=null,y="",h="",w="",O="",j="",v=!1;if(""===e)return!0;do if(o=t[n-r],a=!1,i=o.match(b.type),i&&(c=i[0],s=i.index),!i||-1===o.substring(0,s).indexOf("(")&&(s||!i[3]&&c!==i.input))v=!1;else{if(u=o,a="not"===i[1],s||(l=i[2],u=o.substring(c.length)),v=l===g.type||"all"===l||""===l,p=-1!==u.indexOf(" and ")&&u.split(" and ")||[u],d=p.length-1,f=d,v&&d>=0&&""!==u)do{if(m=p[d].match(b.media),!m||!g[m[3]]){v=!1;break}if(y=m[2],h=m[5],O=h,w=m[7],j=g[m[3]],w&&(O="px"===w?Number(h):"em"===w||"rem"===w?16*h:m[8]?(h/m[8]).toFixed(2):"dppx"===w?96*h:"dpcm"===w?.3937*h:Number(h)),v="min-"===y&&O?j>=O:"max-"===y&&O?O>=j:O?j===O:!!j,!v)break}while(d--);if(v)break}while(r--);return a?!v:v}function u(){var e,t,r=!1,n=0,i=0;if(h.length>0)for(s();(e=h[n])!==c;n++)if(r=l(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners))for(;(t=e.listeners[i])!==c;i++)t.call(o,e.mql)}function p(){o.clearTimeout(f),f=o.setTimeout(u,10)}function d(){var t,r=o.document.getElementsByTagName("script")[0],n=i.createElement("style"),s=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],a="#"+m+" { position: relative; z-index: 0; }",l="",u=o.addEventListener||(l="on")&&o.attachEvent,d=0;for(n.type="text/css",n.id=m,r.parentNode.insertBefore(n,r);(t=s[d])!==c;d++)a+="@media "+t+" { #"+m+" { position: relative; z-index: "+d+" } }";n.styleSheet?n.styleSheet.cssText=a:n.textContent=a,g.type=s[1*(o.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),u(l+"resize",p),u(l+"orientationchange",p)}var f,m="qoopidoPolyfillWindowMatchmedia",y=i.documentElement,h=[],w={},g={},b={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return o.matchMedia||(d(),s(),o.matchMedia=function(e){var t=w[e]||!1;return t===!1?a(e):h[t].mql}),o.matchMedia}),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var n,o=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,o]),n=e._mapped[t].apply(e,o),e.emit.apply(e,["post"+r,o,n]),n}}var a=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&a.test(e)===!1&&(t[e]=s(t,e))},on:function(e,t){var r,n=this,o=0;for(e=e.split(" ");(r=e[o])!==c;o++)(n._listener[r]=n._listener[r]||[]).push(t);return n},one:function(e,t,r){r=r!==!1;var n=this;return n.on(e,function o(i){n.off(r===!0?i:e,o),t.apply(this,arguments)}),n},off:function(e,t){var r,n,o,i=this,s=0;if(e)for(e=e.split(" ");(r=e[s])!==c;s++)if(i._listener[r]=i._listener[r]||[],t)for(n=0;(o=i._listener[r][n])!==c;n++)o===t&&(i._listener[r].splice(n,1),n--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,n=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[n])!==c;n++)t.apply(r,arguments);r._temp.length=0}return r}})}),function(e){var t=["../emitter"];window.matchMedia||t.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=this,t=e.mql;e.emit(t.matches===!0?"matched":"dematched")}var a,l={};return a=e.emitter.extend({mql:null,_constructor:function(e){var t=this,r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};a._parent._constructor.call(t),r.addListener(n),o.setTimeout(n,0)},matches:function(){return this.mql.matches}})}),function(e){window.qoopido.registerSingleton("component/remux",e,["../emitter","./sense"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=this;return e&&t&&(u.className=e,u.style.fontSize=t+"px",d.layout=e,d.fontsize=t,(f.fontsize!==d.fontsize||f.layout!==d.layout)&&(d.ratio.device=o.devicePixelRatio||1,d.ratio.fontsize=d.fontsize/p,d.ratio.total=d.ratio.device*d.ratio.fontsize,f.layout!==d.layout&&r.emit("layoutchanged",d),f.fontsize!==d.fontsize&&r.emit("fontsizechanged",d),r.emit("statechanged",d),f.fontsize=d.fontsize,f.layout=d.layout)),r}function a(t,r,n){var i=this;o.setTimeout(function(){e["component/sense"].create(t).on("matched",function(){s.call(i,r,n)})},0)}var l,u=i.getElementsByTagName("html")[0],p=16,d={fontsize:null,layout:null,ratio:{}},f={fontsize:null,layout:null};return l=e.emitter.extend({_constructor:function(){var e=this,t=parseInt(u.getAttribute("data-base"),10);l._parent._constructor.call(e),isNaN(t)===!1&&(p=t)},getState:function(){return d},getLayout:function(){return d.layout},getFontsize:function(){return d.fontsize},setLayout:function(e,t){var r=this;return s.call(r,e,t),r},addLayout:function(e,t){var r,n,o,i,c,s,l,u,d=this;arguments.length>1?(r={},r[e]=t):r=arguments[0];for(n in r)for(o=r[n],i=o.min;i<=o.max;i++)l=Math.round(o.width*(i/p)),u=Math.round(o.width*((i+1)/p))-1,a.call(d,"screen and (min-width: "+l+"px) and (max-width: "+u+"px )",n,i),c=!c||l=s.width?{width:u,fontsize:i,layout:n}:s;return a.call(d,"screen and (max-width: "+(c.width-1)+"px)",c.layout,c.fontsize),a.call(d,"screen and (min-width: "+(s.width+1)+"px)",s.layout,s.fontsize),d}})}); \ No newline at end of file diff --git a/packages/qoopido.remux.latest.js b/packages/qoopido.remux.latest.js index aed2d87d..82dca6b2 100644 --- a/packages/qoopido.remux.latest.js +++ b/packages/qoopido.remux.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.remux.latest.min.js b/packages/qoopido.remux.latest.min.js index 6b3011f6..49e910e7 100644 --- a/packages/qoopido.remux.latest.min.js +++ b/packages/qoopido.remux.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var s=Object.defineProperty,a=Object.prototype.__defineGetter__,l=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(s)try{return s(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in r&&a.call(e,t,r.get),l&&"set"in r&&l.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var s=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return s.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function c(e,t,c,s){var l,d=e.split("/");return p[e]?p[e]:(l=function(){if(c)for(var l,m,y=d.slice(0,-1).join("/"),h=0;(l=c[h])!==i;h++)m=f.test(l),m&&(l=a(y+"/"+l)),!p[l]&&arguments[h]&&(p[l]=arguments[h]),m&&!p[l]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",l));return p[e]=t(p,u,d,r,n,o,i),s&&s(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(l):"function"==typeof define&&define.amd?c?define(c,l):define(l):l()))}function s(e,t,r){c(e,t,r,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(y,"")}var l=t.qoopido||(t.qoopido={register:c,registerSingleton:s}),u=l.shared||(l.shared={}),p=l.modules||(l.modules={}),d=[],f=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||d.push("./polyfill/object/create"),Object.getOwnPropertyNames||d.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||d.push("./polyfill/object/getownpropertydescriptor"),c("base",e,d)}(function(e,t,r,n,o,i,c){"use strict";function s(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==c;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,s(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,s(e)),t===!0&&(r.extend=a),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,c){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var s=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),s.test(t)&&(t=t.replace(s,a)),e.currentStyle[t]||null},r}}),function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=o.innerWidth||y.clientWidth,t=o.innerHeight||y.clientHeight,r=o.screen.width,n=o.screen.height,i=o.screen.colorDepth,c=o.devicePixelRatio;g.width=e,g.height=t,g["aspect-ratio"]=(e/t).toFixed(2),g.color=i,g["color-index"]=Math.pow(2,i),g["device-aspect-ratio"]=(r/n).toFixed(2),g["device-height"]=n,g["device-width"]=r,g["device-pixel-ratio"]=c||1,g.resolution=c&&96*c||o.screen.deviceXDPI||96,g.orientation=t>=e?"portrait":"landscape"}function a(e){var t,r,n={matches:!1,media:e,addListener:function(e){e&&r.push(e)},removeListener:function(e){for(var t,n=0;(t=r[n])!==c;n++)t===e&&r.splice(n,1)}};return n.matches=""===e?!0:l(e),h.push({mql:n,listeners:[]}),t=h.length-1,w[e]=t,r=h[t].listeners,n}function l(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],r=t.length-1,n=r,o=null,i=null,c="",s=0,a=!1,l="",u="",p=null,d=0,f=0,m=null,y="",h="",w="",O="",j="",v=!1;if(""===e)return!0;do if(o=t[n-r],a=!1,i=o.match(b.type),i&&(c=i[0],s=i.index),!i||-1===o.substring(0,s).indexOf("(")&&(s||!i[3]&&c!==i.input))v=!1;else{if(u=o,a="not"===i[1],s||(l=i[2],u=o.substring(c.length)),v=l===g.type||"all"===l||""===l,p=-1!==u.indexOf(" and ")&&u.split(" and ")||[u],d=p.length-1,f=d,v&&d>=0&&""!==u)do{if(m=p[d].match(b.media),!m||!g[m[3]]){v=!1;break}if(y=m[2],h=m[5],O=h,w=m[7],j=g[m[3]],w&&(O="px"===w?Number(h):"em"===w||"rem"===w?16*h:m[8]?(h/m[8]).toFixed(2):"dppx"===w?96*h:"dpcm"===w?.3937*h:Number(h)),v="min-"===y&&O?j>=O:"max-"===y&&O?O>=j:O?j===O:!!j,!v)break}while(d--);if(v)break}while(r--);return a?!v:v}function u(){var e,t,r=!1,n=0,i=0;if(h.length>0)for(s();(e=h[n])!==c;n++)if(r=l(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners))for(;(t=e.listeners[i])!==c;i++)t.call(o,e.mql)}function p(){o.clearTimeout(f),f=o.setTimeout(u,10)}function d(){var t,r=o.document.getElementsByTagName("script")[0],n=i.createElement("style"),s=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],a="#"+m+" { position: relative; z-index: 0; }",l="",u=o.addEventListener||(l="on")&&o.attachEvent,d=0;for(n.type="text/css",n.id=m,r.parentNode.insertBefore(n,r);(t=s[d])!==c;d++)a+="@media "+t+" { #"+m+" { position: relative; z-index: "+d+" } }";n.styleSheet?n.styleSheet.cssText=a:n.textContent=a,g.type=s[1*(o.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),u(l+"resize",p),u(l+"orientationchange",p)}var f,m="qoopidoPolyfillWindowMatchmedia",y=i.documentElement,h=[],w={},g={},b={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return o.matchMedia||(d(),s(),o.matchMedia=function(e){var t=w[e]||!1;return t===!1?a(e):h[t].mql}),o.matchMedia}),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var n,o=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,o]),n=e._mapped[t].apply(e,o),e.emit.apply(e,["post"+r,o,n]),n}}var a=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&a.test(e)===!1&&(t[e]=s(t,e))},on:function(e,t){var r,n=this,o=0;for(e=e.split(" ");(r=e[o])!==c;o++)(n._listener[r]=n._listener[r]||[]).push(t);return n},one:function(e,t,r){r=r!==!1;var n=this;return n.on(e,function o(i){n.off(r===!0?i:e,o),t.apply(this,arguments)}),n},off:function(e,t){var r,n,o,i=this,s=0;if(e)for(e=e.split(" ");(r=e[s])!==c;s++)if(i._listener[r]=i._listener[r]||[],t)for(n=0;(o=i._listener[r][n])!==c;n++)o===t&&(i._listener[r].splice(n,1),n--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,n=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[n])!==c;n++)t.apply(r,arguments);r._temp.length=0}return r}})}),function(e){var t=["../emitter"];window.matchMedia||t.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=this,t=e.mql;e.emit(t.matches===!0?"matched":"dematched")}var a,l={};return a=e.emitter.extend({mql:null,_constructor:function(e){var t=this,r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};a._parent._constructor.call(t),r.addListener(n),o.setTimeout(n,0)},matches:function(){return this.mql.matches}})}),function(e){window.qoopido.registerSingleton("component/remux",e,["../emitter","./sense"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=this;return e&&t&&(u.className=e,u.style.fontSize=t+"px",d.layout=e,d.fontsize=t,(f.fontsize!==d.fontsize||f.layout!==d.layout)&&(d.ratio.device=o.devicePixelRatio||1,d.ratio.fontsize=d.fontsize/p,d.ratio.total=d.ratio.device*d.ratio.fontsize,f.layout!==d.layout&&r.emit("layoutchanged",d),f.fontsize!==d.fontsize&&r.emit("fontsizechanged",d),r.emit("statechanged",d),f.fontsize=d.fontsize,f.layout=d.layout)),r}function a(t,r,n){var i=this;o.setTimeout(function(){e["component/sense"].create(t).on("matched",function(){s.call(i,r,n)})},0)}var l,u=i.getElementsByTagName("html")[0],p=16,d={fontsize:null,layout:null,ratio:{}},f={fontsize:null,layout:null};return l=e.emitter.extend({_constructor:function(){var e=this,t=parseInt(u.getAttribute("data-base"),10);l._parent._constructor.call(e),isNaN(t)===!1&&(p=t)},getState:function(){return d},getLayout:function(){return d.layout},getFontsize:function(){return d.fontsize},setLayout:function(e,t){var r=this;return s.call(r,e,t),r},addLayout:function(e,t){var r,n,o,i,c,s,l,u,d=this;arguments.length>1?(r={},r[e]=t):r=arguments[0];for(n in r)for(o=r[n],i=o.min;i<=o.max;i++)l=Math.round(o.width*(i/p)),u=Math.round(o.width*((i+1)/p))-1,a.call(d,"screen and (min-width: "+l+"px) and (max-width: "+u+"px )",n,i),c=!c||l=s.width?{width:u,fontsize:i,layout:n}:s;return a.call(d,"screen and (max-width: "+(c.width-1)+"px)",c.layout,c.fontsize),a.call(d,"screen and (min-width: "+(s.width+1)+"px)",s.layout,s.fontsize),d}})}); \ No newline at end of file diff --git a/packages/qoopido.sense.3.7.0.js b/packages/qoopido.sense.3.7.1.js similarity index 99% rename from packages/qoopido.sense.3.7.0.js rename to packages/qoopido.sense.3.7.1.js index 2e0befe2..d967205e 100644 --- a/packages/qoopido.sense.3.7.0.js +++ b/packages/qoopido.sense.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.sense.3.7.0.min.js b/packages/qoopido.sense.3.7.1.min.js similarity index 99% rename from packages/qoopido.sense.3.7.0.min.js rename to packages/qoopido.sense.3.7.1.min.js index 6e8ad2ce..ccf46727 100644 --- a/packages/qoopido.sense.3.7.0.min.js +++ b/packages/qoopido.sense.3.7.1.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var s=Object.defineProperty,p=Object.prototype.__defineGetter__,l=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(s)try{return s(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return p&&"get"in r&&p.call(e,t,r.get),l&&"set"in r&&l.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var s=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return s.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function c(e,t,c,s){var l,d=e.split("/");return u[e]?u[e]:(l=function(){if(c)for(var l,m,y=d.slice(0,-1).join("/"),h=0;(l=c[h])!==i;h++)m=f.test(l),m&&(l=p(y+"/"+l)),!u[l]&&arguments[h]&&(u[l]=arguments[h]),m&&!u[l]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",l));return u[e]=t(u,a,d,r,n,o,i),s&&s(u[e]),u[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(l):"function"==typeof define&&define.amd?c?define(c,l):define(l):l()))}function s(e,t,r){c(e,t,r,function(t){u[e]=t.create()})}function p(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(y,"")}var l=t.qoopido||(t.qoopido={register:c,registerSingleton:s}),a=l.shared||(l.shared={}),u=l.modules||(l.modules={}),d=[],f=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||d.push("./polyfill/object/create"),Object.getOwnPropertyNames||d.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||d.push("./polyfill/object/getownpropertydescriptor"),c("base",e,d)}(function(e,t,r,n,o,i,c){"use strict";function s(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==c;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function p(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,s(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=p,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,s(e)),t===!0&&(r.extend=p),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,c){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var s=new RegExp("(\\-([a-z]){1})","g"),p=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),s.test(t)&&(t=t.replace(s,p)),e.currentStyle[t]||null},r}}),function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=o.innerWidth||y.clientWidth,t=o.innerHeight||y.clientHeight,r=o.screen.width,n=o.screen.height,i=o.screen.colorDepth,c=o.devicePixelRatio;g.width=e,g.height=t,g["aspect-ratio"]=(e/t).toFixed(2),g.color=i,g["color-index"]=Math.pow(2,i),g["device-aspect-ratio"]=(r/n).toFixed(2),g["device-height"]=n,g["device-width"]=r,g["device-pixel-ratio"]=c||1,g.resolution=c&&96*c||o.screen.deviceXDPI||96,g.orientation=t>=e?"portrait":"landscape"}function p(e){var t,r,n={matches:!1,media:e,addListener:function(e){e&&r.push(e)},removeListener:function(e){for(var t,n=0;(t=r[n])!==c;n++)t===e&&r.splice(n,1)}};return n.matches=""===e?!0:l(e),h.push({mql:n,listeners:[]}),t=h.length-1,w[e]=t,r=h[t].listeners,n}function l(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],r=t.length-1,n=r,o=null,i=null,c="",s=0,p=!1,l="",a="",u=null,d=0,f=0,m=null,y="",h="",w="",O="",j="",v=!1;if(""===e)return!0;do if(o=t[n-r],p=!1,i=o.match(b.type),i&&(c=i[0],s=i.index),!i||-1===o.substring(0,s).indexOf("(")&&(s||!i[3]&&c!==i.input))v=!1;else{if(a=o,p="not"===i[1],s||(l=i[2],a=o.substring(c.length)),v=l===g.type||"all"===l||""===l,u=-1!==a.indexOf(" and ")&&a.split(" and ")||[a],d=u.length-1,f=d,v&&d>=0&&""!==a)do{if(m=u[d].match(b.media),!m||!g[m[3]]){v=!1;break}if(y=m[2],h=m[5],O=h,w=m[7],j=g[m[3]],w&&(O="px"===w?Number(h):"em"===w||"rem"===w?16*h:m[8]?(h/m[8]).toFixed(2):"dppx"===w?96*h:"dpcm"===w?.3937*h:Number(h)),v="min-"===y&&O?j>=O:"max-"===y&&O?O>=j:O?j===O:!!j,!v)break}while(d--);if(v)break}while(r--);return p?!v:v}function a(){var e,t,r=!1,n=0,i=0;if(h.length>0)for(s();(e=h[n])!==c;n++)if(r=l(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners))for(;(t=e.listeners[i])!==c;i++)t.call(o,e.mql)}function u(){o.clearTimeout(f),f=o.setTimeout(a,10)}function d(){var t,r=o.document.getElementsByTagName("script")[0],n=i.createElement("style"),s=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],p="#"+m+" { position: relative; z-index: 0; }",l="",a=o.addEventListener||(l="on")&&o.attachEvent,d=0;for(n.type="text/css",n.id=m,r.parentNode.insertBefore(n,r);(t=s[d])!==c;d++)p+="@media "+t+" { #"+m+" { position: relative; z-index: "+d+" } }";n.styleSheet?n.styleSheet.cssText=p:n.textContent=p,g.type=s[1*(o.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),a(l+"resize",u),a(l+"orientationchange",u)}var f,m="qoopidoPolyfillWindowMatchmedia",y=i.documentElement,h=[],w={},g={},b={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return o.matchMedia||(d(),s(),o.matchMedia=function(e){var t=w[e]||!1;return t===!1?p(e):h[t].mql}),o.matchMedia}),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var n,o=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,o]),n=e._mapped[t].apply(e,o),e.emit.apply(e,["post"+r,o,n]),n}}var p=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&p.test(e)===!1&&(t[e]=s(t,e))},on:function(e,t){var r,n=this,o=0;for(e=e.split(" ");(r=e[o])!==c;o++)(n._listener[r]=n._listener[r]||[]).push(t);return n},one:function(e,t,r){r=r!==!1;var n=this;return n.on(e,function o(i){n.off(r===!0?i:e,o),t.apply(this,arguments)}),n},off:function(e,t){var r,n,o,i=this,s=0;if(e)for(e=e.split(" ");(r=e[s])!==c;s++)if(i._listener[r]=i._listener[r]||[],t)for(n=0;(o=i._listener[r][n])!==c;n++)o===t&&(i._listener[r].splice(n,1),n--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,n=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[n])!==c;n++)t.apply(r,arguments);r._temp.length=0}return r}})}),function(e){var t=["../emitter"];window.matchMedia||t.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=this,t=e.mql;e.emit(t.matches===!0?"matched":"dematched")}var p,l={};return p=e.emitter.extend({mql:null,_constructor:function(e){var t=this,r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};p._parent._constructor.call(t),r.addListener(n),o.setTimeout(n,0)},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/packages/qoopido.sense.latest.js b/packages/qoopido.sense.latest.js index 2e0befe2..d967205e 100644 --- a/packages/qoopido.sense.latest.js +++ b/packages/qoopido.sense.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.sense.latest.min.js b/packages/qoopido.sense.latest.min.js index 6e8ad2ce..ccf46727 100644 --- a/packages/qoopido.sense.latest.min.js +++ b/packages/qoopido.sense.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var s=Object.defineProperty,p=Object.prototype.__defineGetter__,l=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,r){if(s)try{return s(e,t,r)}catch(n){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return p&&"get"in r&&p.call(e,t,r.get),l&&"set"in r&&l.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||r.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,r)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var r=[];Object.defineProperties||r.push("./defineproperties"),t.register("polyfill/object/create",e,r)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.create||(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw new TypeError;r.prototype=e;var n=new r;if(e&&(n.constructor=r),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(n,t)}return n}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,r,n,o,i,c){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,r,n,o,i,c){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var s=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return s.call(Object,e,t)}catch(r){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,r,n,o,i){"use strict";function c(e,t,c,s){var l,d=e.split("/");return u[e]?u[e]:(l=function(){if(c)for(var l,m,y=d.slice(0,-1).join("/"),h=0;(l=c[h])!==i;h++)m=f.test(l),m&&(l=p(y+"/"+l)),!u[l]&&arguments[h]&&(u[l]=arguments[h]),m&&!u[l]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",l));return u[e]=t(u,a,d,r,n,o,i),s&&s(u[e]),u[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(l):"function"==typeof define&&define.amd?c?define(c,l):define(l):l()))}function s(e,t,r){c(e,t,r,function(t){u[e]=t.create()})}function p(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(y,"")}var l=t.qoopido||(t.qoopido={register:c,registerSingleton:s}),a=l.shared||(l.shared={}),u=l.modules||(l.modules={}),d=[],f=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),y=new RegExp("(^\\/)|\\.\\/","g");Object.create||d.push("./polyfill/object/create"),Object.getOwnPropertyNames||d.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||d.push("./polyfill/object/getownpropertydescriptor"),c("base",e,d)}(function(e,t,r,n,o,i,c){"use strict";function s(e){for(var t,r={},n=Object.getOwnPropertyNames(e),o=0;(t=n[o])!==c;o++)r[t]=Object.getOwnPropertyDescriptor(e,t);return r}function p(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,s(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=p,e||t},extend:function(e,t){var r;return e=e||{},t=t===!0,e._parent=this,r=Object.create(this,s(e)),t===!0&&(r.extend=p),r}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,r,n,o,i,c){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var s=new RegExp("(\\-([a-z]){1})","g"),p=function(){return arguments[2].toUpperCase()};return function(e,t){var r=this;return r.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),s.test(t)&&(t=t.replace(s,p)),e.currentStyle[t]||null},r}}),function(e){var t=[];window.getComputedStyle||t.push("polyfill/window/getcomputedstyle"),Array.prototype.indexOf||t.push("../array/indexof"),window.qoopido.register("polyfill/window/matchmedia",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=o.innerWidth||y.clientWidth,t=o.innerHeight||y.clientHeight,r=o.screen.width,n=o.screen.height,i=o.screen.colorDepth,c=o.devicePixelRatio;g.width=e,g.height=t,g["aspect-ratio"]=(e/t).toFixed(2),g.color=i,g["color-index"]=Math.pow(2,i),g["device-aspect-ratio"]=(r/n).toFixed(2),g["device-height"]=n,g["device-width"]=r,g["device-pixel-ratio"]=c||1,g.resolution=c&&96*c||o.screen.deviceXDPI||96,g.orientation=t>=e?"portrait":"landscape"}function p(e){var t,r,n={matches:!1,media:e,addListener:function(e){e&&r.push(e)},removeListener:function(e){for(var t,n=0;(t=r[n])!==c;n++)t===e&&r.splice(n,1)}};return n.matches=""===e?!0:l(e),h.push({mql:n,listeners:[]}),t=h.length-1,w[e]=t,r=h[t].listeners,n}function l(e){var t=-1!==e.indexOf(",")&&e.split(",")||[e],r=t.length-1,n=r,o=null,i=null,c="",s=0,p=!1,l="",a="",u=null,d=0,f=0,m=null,y="",h="",w="",O="",j="",v=!1;if(""===e)return!0;do if(o=t[n-r],p=!1,i=o.match(b.type),i&&(c=i[0],s=i.index),!i||-1===o.substring(0,s).indexOf("(")&&(s||!i[3]&&c!==i.input))v=!1;else{if(a=o,p="not"===i[1],s||(l=i[2],a=o.substring(c.length)),v=l===g.type||"all"===l||""===l,u=-1!==a.indexOf(" and ")&&a.split(" and ")||[a],d=u.length-1,f=d,v&&d>=0&&""!==a)do{if(m=u[d].match(b.media),!m||!g[m[3]]){v=!1;break}if(y=m[2],h=m[5],O=h,w=m[7],j=g[m[3]],w&&(O="px"===w?Number(h):"em"===w||"rem"===w?16*h:m[8]?(h/m[8]).toFixed(2):"dppx"===w?96*h:"dpcm"===w?.3937*h:Number(h)),v="min-"===y&&O?j>=O:"max-"===y&&O?O>=j:O?j===O:!!j,!v)break}while(d--);if(v)break}while(r--);return p?!v:v}function a(){var e,t,r=!1,n=0,i=0;if(h.length>0)for(s();(e=h[n])!==c;n++)if(r=l(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners))for(;(t=e.listeners[i])!==c;i++)t.call(o,e.mql)}function u(){o.clearTimeout(f),f=o.setTimeout(a,10)}function d(){var t,r=o.document.getElementsByTagName("script")[0],n=i.createElement("style"),s=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],p="#"+m+" { position: relative; z-index: 0; }",l="",a=o.addEventListener||(l="on")&&o.attachEvent,d=0;for(n.type="text/css",n.id=m,r.parentNode.insertBefore(n,r);(t=s[d])!==c;d++)p+="@media "+t+" { #"+m+" { position: relative; z-index: "+d+" } }";n.styleSheet?n.styleSheet.cssText=p:n.textContent=p,g.type=s[1*(o.getComputedStyle||e["polyfill/window/getcomputedstyle"])(n).zIndex||0],n.parentNode.removeChild(n),a(l+"resize",u),a(l+"orientationchange",u)}var f,m="qoopidoPolyfillWindowMatchmedia",y=i.documentElement,h=[],w={},g={},b={type:/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,media:/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/};return o.matchMedia||(d(),s(),o.matchMedia=function(e){var t=w[e]||!1;return t===!1?p(e):h[t].mql}),o.matchMedia}),function(e){window.qoopido.register("emitter",e,["./base"])}(function(e,t,r,n,o,i,c){"use strict";function s(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);return e._mapped[t]=e[t],function(){var n,o=Array.prototype.slice.call(arguments);return e.emit.apply(e,["pre"+r,o]),n=e._mapped[t].apply(e,o),e.emit.apply(e,["post"+r,o,n]),n}}var p=/^(_|extend$|create$|on$|one$|off$|emit$|get.+)/;return e.base.extend({_mapped:null,_listener:null,_temp:null,_constructor:function(){var e,t=this;t._mapped={},t._listener={};for(e in t)"function"==typeof t[e]&&p.test(e)===!1&&(t[e]=s(t,e))},on:function(e,t){var r,n=this,o=0;for(e=e.split(" ");(r=e[o])!==c;o++)(n._listener[r]=n._listener[r]||[]).push(t);return n},one:function(e,t,r){r=r!==!1;var n=this;return n.on(e,function o(i){n.off(r===!0?i:e,o),t.apply(this,arguments)}),n},off:function(e,t){var r,n,o,i=this,s=0;if(e)for(e=e.split(" ");(r=e[s])!==c;s++)if(i._listener[r]=i._listener[r]||[],t)for(n=0;(o=i._listener[r][n])!==c;n++)o===t&&(i._listener[r].splice(n,1),n--);else i._listener[r].length=0;else for(r in i._listener)i._listener[r].length=0;return i},emit:function(e){var t,r=this,n=0;if(e!==c){for(r._listener[e]=r._listener[e]||[],r._temp=r._listener[e].slice();(t=r._temp[n])!==c;n++)t.apply(r,arguments);r._temp.length=0}return r}})}),function(e){var t=["../emitter"];window.matchMedia||t.push("../polyfill/window/matchmedia"),window.qoopido.register("component/sense",e,t)}(function(e,t,r,n,o,i,c){"use strict";function s(){var e=this,t=e.mql;e.emit(t.matches===!0?"matched":"dematched")}var p,l={};return p=e.emitter.extend({mql:null,_constructor:function(e){var t=this,r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};p._parent._constructor.call(t),r.addListener(n),o.setTimeout(n,0)},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/packages/qoopido.shrinkimage.3.7.0.js b/packages/qoopido.shrinkimage.3.7.1.js similarity index 97% rename from packages/qoopido.shrinkimage.3.7.0.js rename to packages/qoopido.shrinkimage.3.7.1.js index f8266fea..eea601bf 100644 --- a/packages/qoopido.shrinkimage.3.7.0.js +++ b/packages/qoopido.shrinkimage.3.7.1.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1170,7 +1170,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1224,6 +1224,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1261,7 +1264,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1297,13 +1300,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1330,13 +1330,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1346,13 +1343,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1379,13 +1373,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1952,8 +1943,8 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self = this, foreground, background; - prototype._parent._constructor.call(self, element); + var self, foreground, background; + self = prototype._parent._constructor.call(this, element); self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); @@ -1963,6 +1954,7 @@ if (background !== "none" && regexBackground.test(background)) { processMain.call(self, background, true); } + return self; }, hide: function() { this.setStyles({ @@ -1980,13 +1972,14 @@ loader = modules["dom/element"].extend({ _url: null, _constructor: function(url, element) { - var self = this; + var self; if (!element) { element = pool && pool.obtain("img") || document.createElement("img"); } - loader._parent._constructor.call(self, element); + self = loader._parent._constructor.call(this, element); self._url = url; processTransport.call(self, modules["transport/xhr"]); + return self; } }); return prototype; diff --git a/packages/qoopido.shrinkimage.3.7.0.min.js b/packages/qoopido.shrinkimage.3.7.1.min.js similarity index 52% rename from packages/qoopido.shrinkimage.3.7.0.min.js rename to packages/qoopido.shrinkimage.3.7.1.min.js index 420a7c47..0ba3b9d5 100644 --- a/packages/qoopido.shrinkimage.3.7.0.min.js +++ b/packages/qoopido.shrinkimage.3.7.1.min.js @@ -1,3 +1,3 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var u=Object.defineProperty,a=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,n){if(u)try{return u(e,t,n)}catch(r){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in n&&a.call(e,t,n.get),c&&"set"in n&&c.call(e,t,n.set),"value"in n&&(e[t]=n.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||n.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,n)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperties||n.push("./defineproperties"),t.register("polyfill/object/create",e,n)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function n(){}if("object"!=typeof e)throw new TypeError;n.prototype=e;var r=new n;if(e&&(r.constructor=n),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(r,t)}return r}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var u=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return u.call(Object,e,t)}catch(n){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,n,r,o,i){"use strict";function s(e,t,s,u){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,h=f.slice(0,-1).join("/"),g=0;(c=s[g])!==i;g++)m=d.test(c),m&&(c=a(h+"/"+c)),!p[c]&&arguments[g]&&(p[c]=arguments[g]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,l,f,n,r,o,i),u&&u(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function u(e,t,n){s(e,t,n,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(h,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:u}),l=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),h=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,n,r,o,i,s){"use strict";function u(e){for(var t,n={},r=Object.getOwnPropertyNames(e),o=0;(t=r[o])!==s;o++)n[t]=Object.getOwnPropertyDescriptor(e,t);return n}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var n;return e=e||{},t=t===!0,e._parent=this,n=Object.create(this,u(e)),t===!0&&(n.extend=a),n}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,n,r,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var u=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var n=this;return n.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),u.test(t)&&(t=t.replace(u,a)),e.currentStyle[t]||null},n}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e,t){var n=_.push([e,t]);1===n&&a()}function a(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=_[t])!==s;t++)e[0](e[1]);_.length=0}function l(e,t){var n,r=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(r=t.then,"function"==typeof r))return r.call(t,function(r){return n?!0:(n=!0,void(t!==r?d(e,r):m(e,r)))},function(t){return n?!0:(n=!0,void h(e,t))}),!0}catch(o){return n?!0:(h(e,o),!0)}return!1}function p(e,t){function n(e){d(t,e)}function r(e){h(t,e)}try{e(n,r)}catch(o){r(o)}}function f(e,t,n,r){var o,i,s,u,a="function"==typeof n;if(a)try{o=n(r),s=!0}catch(c){u=!0,i=c}else o=r,s=!0;l(t,o)||(a&&s?d(t,o):u?h(t,i):e===E?d(t,o):e===P&&h(t,o))}function d(e,t){e===t?m(e,t):l(e,t)||m(e,t)}function m(e,t){e._state===x&&(e._state=j,e._detail=t,u(g,e))}function h(e,t){e._state===x&&(e._state=j,e._detail=t,u(y,e))}function g(e){w(e,e._state=E)}function y(e){w(e,e._state=P)}function v(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+E]=n,o[i+P]=r}function w(e,t){for(var n,r,o=e._subscribers,i=e._detail,u=0;(n=o[u])!==s;u+=3)r=o[u+t],f(t,n,r,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var x=void 0,j=0,E=1,P=2,_=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var n=this,r=new b(function(){});return n._state?u(function(){f(n._state,r,arguments[n._state-1],n._detail)}):v(n,r,e,t),r},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,n){function r(e){return function(t){o(e,t)}}function o(e,n){u[e]=n,0===--a&&t(u)}var i,u=[],a=e.length,c=0;for(0===a&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(r(c),n):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,n){e.resolve=t,e.reject=n})}}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,n,r,o,i,s){"use strict";return function u(){var e,t,n,r,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(n in t)r=i[n],o=t[n],o!==s&&(null!==o&&"object"==typeof o?(r=o.length!==s?r&&"object"==typeof r&&r.length!==s?r:[]:r&&"object"==typeof r&&r.length===s?r:{},i[n]=u(r,o)):i[n]=o);return i}}),function(e){window.qoopido.register("function/unique/string",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t="",n=0;for(e=parseInt(e,10)||12;e>n;n++)t+=c[parseInt(Math.random()*(c.length-1),10)];return t}var a={},c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(e){var t;do t=u(e);while("undefined"!=typeof a[t]);return a[t]=!0,t}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,n,r,o,i,s){"use strict";function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}var a={},c=new RegExp("[xy]","g");return function(){var e;do e=u();while("undefined"!=typeof a[e]);return a[e]=!0,e}}),function(e){window.qoopido.register("proxy",e,["./base","./function/unique/uuid"])}(function(e,t,n,r,o,i,s){"use strict";return e.base.extend({_constructor:function(t,n){var r=Array.prototype.splice.call(arguments,2),o=function(){return n.apply(t,Array.prototype.slice.call(arguments).concat(r))};return o._quid=e["function/unique/uuid"](),o}})}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,h)}var a=e["promise/all"],c=e["promise/defer"],l=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),h=function(){return arguments[1].ucfirst()},g={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],n=0;(e=arguments[n])!==s;n++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var r=new c;e?r.resolve():r.reject(),t.push(r.promise);break;default:t.push(e)}return new a(t)},getPrefix:function(){var e,t=this,n=g.prefix||null;if(null===n){var r=t.pool?t.pool.obtain("div"):i.createElement("div"),o=r.style;n=!1;for(e in o)l.test(e)&&(n=e.match(l)[0]);n===!1&&"WebkitOpacity"in o&&(n="WebKit"),n===!1&&"KhtmlOpacity"in o&&(n="Khtml"),n=g.prefix=n===!1?!1:[n.toLowerCase(),n.toLowerCase().ucfirst(),n],r.dispose&&r.dispose()}return n},getMethod:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=g.method[n]=g.method[n]||{},i=r[e]=g.method[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=a[l])!==s;l++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}g.method[n][e]=i}return i},getProperty:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=g.property[n]=g.property[n]||{},i=r[e]=g.property[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],l;(c=a[l])!==s;l++)if(t[c]!==s){i=c;break}g.property[n][e]=i}return i},getCssProperty:function(e){e=u(e);var t=this,n=g.css[e]||null;if(null===n){n=!1;var r,o=0,a=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),l=this.getPrefix()||[],p=(e+" "+c+" "+l.join(c+" ")+c).split(" "),f="";for(o;(r=p[o])!==s;o++)if(a.style[r]!==s){n=r,o>0&&(f="-");break}n=g.css[e]=n!==!1?[f+n.replace(m,"-$1").toLowerCase(),n]:!1,a.dispose&&a.dispose()}return n},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=g.promises.prefix;if(null===e){var t=new c,n=this.getPrefix();n?t.resolve(n):t.reject(),e=g.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var n=t.tagName,r=g.promises.method[n]=g.promises.method[n]||{},i=r[e]=g.promises.method[n][e]||null;if(null===i){var s=new c,u=this.getMethod(e,t);u?s.resolve(u):s.reject(),i=g.promises.method[n][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var n=t.tagName,r=g.promises.property[n]=g.promises.property[n]||{},i=r[e]=g.promises.property[n][e]||null;if(null===i){var s=new c,u=this.getProperty(e,t);u?s.resolve(u):s.reject(),i=g.promises.property[n][e]=s.promise}return i},testCssProperty:function(e){var t=g.promises.css[e]||null;if(null===t){var n=new c,r=this.getCssProperty(e);r?n.resolve(r):n.reject(),t=g.promises.css[e]=n.promise}return t},addTest:function(e,t){return this.test[e]=function(){var n=g.promises.test[e]||null;if(null===n){var r=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,r),t.apply(null,o),n=g.promises.test[e]=r.promise}return n}}})}),function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/capability/datauri",function(t){var n=e["dom/element"].create(u.pool?u.pool.obtain("img"):i.createElement("img"));n.one("error load",function(e){"load"===e.type&&1===n.element.width&&1===n.element.height?t.resolve():t.reject(),n.element.dispose&&n.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}),function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas",function(e){var t=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}),function(e){window.qoopido.register("support/element/canvas/todataurl",e,["../../../support","../canvas"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl",function(t){e["support/element/canvas"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");e.toDataURL!==s?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.register("support/element/canvas/todataurl/png",e,["../../../../support","../todataurl"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl/png",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");0===e.toDataURL("image/png").indexOf("data:image/png")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){for(var r,o=0;(r=n[o])!==s;o++)e[r]=t[r];e._properties=e._properties.concat(n)}var a={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var n;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],n=e.target;do e.path.push(n);while(n=n.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var n,r,o;r=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(n=e.target.ownerDocument||i,n=n.documentElement||n.body,e.pageX=t.clientX+(n.scrollLeft||0)-(n.clientLeft||0),e.pageY=t.clientY+(n.scrollTop||0)-(n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&a[e]&&(a[e]=t),this},get:function(e){return e&&a[e]?a[e]:null},process:function(e,t){var n,r,o;for(n in a)r=a[n],o=!r.regex||r.regex.test(t.type),o&&(r.properties&&u(e,t,r.properties),r.process&&r.process(e,t),r.delegate&&(e.delegate=r.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,n,r,o,i,s){"use strict";var u=e.support,a=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return a(e,null).getPropertyValue(t[0])},set:function(e,t,n){e.style[t[1]]=n}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,n){return n=a(e,null).getPropertyValue("filter").toString().match(this.regex),n=n?n[1]/100:1},set:function(e,t,n){var r=e.style;r.zoom=1,r.filter="alpha(opacity="+(100*n+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,n,r){var o;return n=u.getCssProperty(n,t)||null,n?((o=this.get(n[1]))&&o[e]||this.get("general")[e])(t,n,r):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,n,r,o,i,s){"use strict";var u=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){u.process(this,e)},_dispose:function(){for(var e,t=this,n=0;(e=t._properties[n])!==s;n++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t,n,r;for(t in E)n=E[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function a(e,t,n){var r=this,o=u(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{v.test(e)===!0?(t=e.replace(v,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function l(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var p="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",g="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},v=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,x=e["hook/css"],j={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,o=this;return e=c(e),r=e._quid,r?o=j[r]:(r=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},j[r]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof n&&null!==n&&o.setStyles(n),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(w),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,n=this,r={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)r[t]=n.element.getAttributes(t);return r},setAttribute:function(e,t){var n=this;return e&&typeof e===f&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===p&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,n=this,r=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[r])!==s;r++)n.element.removeAttribute(t);return n},getStyle:function(e){var t=this;return e&&typeof e===f?x.process("get",t.element,e):void 0},getStyles:function(e){var t,n=this,r={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)r[t]=x.process("get",n.element,t);return r},setStyle:function(e,t){var n=this;return e&&typeof e===f&&x.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===p&&!e.length)for(t in e)x.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,n=this,r=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[r])!==s;r++)n.setStyle(t,"");return n},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=y.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||c(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||c(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,o=r.element,i=arguments.length>2?arguments[1]:null,u=arguments.length>2?arguments[2]:arguments[1],c=u._quid||(u._quid=d()),p=0;for(t=t.split(" ");(n=t[p])!==s;p++){var f=n+"-"+c,m=function(t){var n;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=d(),(!i||l(t,i))&&u.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,a.call(r,n))),t.dispose&&t.dispose()};m.type=n,r._listener[f]=m,o.addEventListener(n,m)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(n){t.off(o===!0?n.type:e,i),r.call(this,n,n.originalEvent.detail)};return r._quid=i._quid=d(),n?t.on(e,n,i):t.on(e,i),t},off:function(e,t){var n,r,o,i=this,u=i.element,a=0;for(e=e.split(" ");(n=e[a])!==s;a++)r=t._quid&&n+"-"+t._quid||null,o=r&&i._listener[r]||null,o?(u.removeEventListener(n,o),delete i._listener[r]):u.removeEventListener(n,t);return i},emit:function(e,t){var n=this;return a.call(n,e,t),n}})}),function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t=i.createElement("a");return t.href=e||"",t}var a,c,l=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{a=location}catch(p){a=u()}return c=new RegExp("".concat("^",a.protocol,"//",a.hostname),"i"),e.base.extend({resolve:function(e){return u(e).href},redirect:function(e,t){t=t||o,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},r=u(e).search.split("+").join(" ");t=l.exec(r);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return c.test(this.resolve(e))}})}),function(e){window.qoopido.register("transport",e,["./base","./function/merge"])}(function(e,t,n,r,o,i,s){"use strict";var u;return u=e.base.extend({setup:function(t){var n=this;return n._settings=e["function/merge"]({},n._settings,t),n},serialize:function(e,t){var n,r,o,i=[];for(n in e)r=t?"".concat(t,"[",n,"]"):n,o=e[n],i.push("object"==typeof o?this.serialize(o,r):"".concat(encodeURIComponent(r),"=",encodeURIComponent(o)));return i.join("&")}})},window,document),function(e){window.qoopido.registerSingleton("transport/xhr",e,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){var r,o=this,i=o.xhr,s=o.settings;t=s.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):t,t=n&&"GET"===e?"".concat(t,t.indexOf("?")>-1?"&":"?",n):t;for(r in s.xhrOptions)i[r]=s.xhrOptions[r];if(i.open(e,t,s.async,s.username,s.password),i.setRequestHeader){i.setRequestHeader("Accept",s.accept),n&&"GET"!==e&&i.setRequestHeader("Content-Type",s.contentType);for(r in s.header)i.setRequestHeader(r,s.header[r])}i.timeout=s.timeout,i.onprogress=function(e){a.call(o,e)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){p.call(o)},s.timeout)}function a(e){var t=this;t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout(function(){p.call(t)},t.settings.timeout)}function c(){var e=this,t=e.xhr,n=e.dfd;(t.readyState===s||4===t.readyState)&&(f.call(e),t.status===s||200===t.status?n.resolve({data:t.responseText,xhr:t}):n.reject({status:t.status,xhr:t}))}function l(){var e=this;f.call(e),e.dfd.reject()}function p(){var e=this;e.xhr.abort(),f.call(e),e.dfd.reject()}function f(){var e=this,t=e.xhr;e.timeout&&clearTimeout(e.timeout),t.onprogress=t.onreadystatechange=t.onerror=null}var d,m=e["promise/defer"],h="undefined"!=typeof o.XMLHttpRequest?function(t){return e.url.isLocal(t)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return null}};return d=e.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(t,n,r,o){var i={};return n=e.url.resolve(n),i.url=n,i.id="".concat("xhr-",e["function/unique/string"]()),i.dfd=new m,i.xhr=h(n),i.settings=e["function/merge"]({},this._settings,o),i.timeout=null,u.call(i,t.toUpperCase(),n,r),i.dfd.promise},get:function(e,t,n){return this.load("GET",e,t,n)},post:function(e,t,n){return this.load("POST",e,t,n)},put:function(e,t,n){return this.load("PUT",e,t,n)},"delete":function(e,t,n){return this.load("DELETE",e,t,n)},head:function(e,t,n){return this.load("HEAD",e,t,n)}})},window,document),function(e){var t=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(t,n){t=e.url.resolve(b.exec(t)[1]),n=n===!0;var r=this,o=e["function/merge"]({},r._settings,e.url.getParameter(t)),i=o.target||(t=t.split("?")[0]).replace(x,"".concat(".q",o.quality,".shrunk"));n||r.removeAttribute(r._settings.attribute).hide(),j.then(function(){if(o.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof v[i]){case"object":v[i].one(_,function(e){a.call(r,e.data,n)}),r.emit(E);break;case"string":a.call(r,v[i],n);break;default:v[i]=d.create(i,n?null:r.element).one(q,function(e,o){e.type===_?(v[i]=o,r.emit(P),a.call(r,o,n)):(v[i]=t,a.call(r,t,n))},!1)}})["catch"](function(){v[i]=t,a.call(r,t,n)})}function a(e,t){var n=this;t?(n.setStyle("backgroundImage","url("+e+")"), -n.emit(_)):n.one(S,function(){n.show(),n.emit(_)}).setAttribute("src",e)}function c(e){var t=this;e.get(t._url).then(function(e){try{var n=m.parse(e.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),l.call(t,n)}catch(r){t.emit(O)}},function(){t.emit(O)})}function l(e){var t,n,r=this,o=function(o){return t=y&&y.obtain("canvas")||i.createElement("canvas"),t.style.display="none",t.width=e.width,t.height=e.height,n=t.getContext("2d"),n.clearRect(0,0,e.width,e.height),n.drawImage(r.element,0,0,e.width,e.height),r.one(S,s).setAttribute("src",e.alpha),p(o)},s=function(o){var i;return n.globalCompositeOperation="xor",n.drawImage(r.element,0,0,e.width,e.height),i=t.toDataURL("image/png"),u(),r.emit(_,i),p(o)},u=function(){t&&t.dispose&&t.dispose(),r.element.dispose&&r.element.dispose()};r.one(C,function(e){e.type===S?o.call(this,e):(u(),r.emit(O))},!1).setAttribute("src",e.main)}function p(e){return e.preventDefault(),e.stopPropagation(),!1}var f,d,m=o.JSON,h=n.pop(),g={attribute:"data-"+h,quality:80,debug:!1},y=t.pool&&t.pool.dom||null,v={},w=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),b=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),j=e.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),E="queued",P="cached",_="loaded",O="failed",q="".concat(_," ",O),S="load",A="error",C="".concat(S," ",A);return f=e["dom/element"].extend({_constructor:function(t,n){var r,o,i=this;f._parent._constructor.call(i,t),i._settings=n=e["function/merge"]({},g,n),r=i.getAttribute(n.attribute),o=i.getStyle("backgroundImage"),"IMG"===i.type&&u.call(i,r),"none"!==o&&w.test(o)&&u.call(i,o,!0)},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),d=e["dom/element"].extend({_url:null,_constructor:function(t,n){var r=this;n||(n=y&&y.obtain("img")||i.createElement("img")),d._parent._constructor.call(r,n),r._url=t,c.call(r,e["transport/xhr"])}}),f},window); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var u=Object.defineProperty,a=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,n){if(u)try{return u(e,t,n)}catch(r){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in n&&a.call(e,t,n.get),c&&"set"in n&&c.call(e,t,n.set),"value"in n&&(e[t]=n.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||n.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,n)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperties||n.push("./defineproperties"),t.register("polyfill/object/create",e,n)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function n(){}if("object"!=typeof e)throw new TypeError;n.prototype=e;var r=new n;if(e&&(r.constructor=n),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(r,t)}return r}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var u=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return u.call(Object,e,t)}catch(n){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,n,r,o,i){"use strict";function s(e,t,s,u){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,g=f.slice(0,-1).join("/"),h=0;(c=s[h])!==i;h++)m=d.test(c),m&&(c=a(g+"/"+c)),!p[c]&&arguments[h]&&(p[c]=arguments[h]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,l,f,n,r,o,i),u&&u(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function u(e,t,n){s(e,t,n,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:u}),l=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,n,r,o,i,s){"use strict";function u(e){for(var t,n={},r=Object.getOwnPropertyNames(e),o=0;(t=r[o])!==s;o++)n[t]=Object.getOwnPropertyDescriptor(e,t);return n}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var n;return e=e||{},t=t===!0,e._parent=this,n=Object.create(this,u(e)),t===!0&&(n.extend=a),n}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,n,r,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var u=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var n=this;return n.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),u.test(t)&&(t=t.replace(u,a)),e.currentStyle[t]||null},n}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e,t){var n=_.push([e,t]);1===n&&a()}function a(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=_[t])!==s;t++)e[0](e[1]);_.length=0}function l(e,t){var n,r=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(r=t.then,"function"==typeof r))return r.call(t,function(r){return n?!0:(n=!0,void(t!==r?d(e,r):m(e,r)))},function(t){return n?!0:(n=!0,void g(e,t))}),!0}catch(o){return n?!0:(g(e,o),!0)}return!1}function p(e,t){function n(e){d(t,e)}function r(e){g(t,e)}try{e(n,r)}catch(o){r(o)}}function f(e,t,n,r){var o,i,s,u,a="function"==typeof n;if(a)try{o=n(r),s=!0}catch(c){u=!0,i=c}else o=r,s=!0;l(t,o)||(a&&s?d(t,o):u?g(t,i):e===E?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):l(e,t)||m(e,t)}function m(e,t){e._state===x&&(e._state=j,e._detail=t,u(h,e))}function g(e,t){e._state===x&&(e._state=j,e._detail=t,u(y,e))}function h(e){w(e,e._state=E)}function y(e){w(e,e._state=P)}function v(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+E]=n,o[i+P]=r}function w(e,t){for(var n,r,o=e._subscribers,i=e._detail,u=0;(n=o[u])!==s;u+=3)r=o[u+t],f(t,n,r,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var x=void 0,j=0,E=1,P=2,_=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var n=this,r=new b(function(){});return n._state?u(function(){f(n._state,r,arguments[n._state-1],n._detail)}):v(n,r,e,t),r},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,n){function r(e){return function(t){o(e,t)}}function o(e,n){u[e]=n,0===--a&&t(u)}var i,u=[],a=e.length,c=0;for(0===a&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(r(c),n):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,n){e.resolve=t,e.reject=n})}}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,n,r,o,i,s){"use strict";return function u(){var e,t,n,r,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(n in t)r=i[n],o=t[n],o!==s&&(null!==o&&"object"==typeof o?(r=o.length!==s?r&&"object"==typeof r&&r.length!==s?r:[]:r&&"object"==typeof r&&r.length===s?r:{},i[n]=u(r,o)):i[n]=o);return i}}),function(e){window.qoopido.register("function/unique/string",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t="",n=0;for(e=parseInt(e,10)||12;e>n;n++)t+=c[parseInt(Math.random()*(c.length-1),10)];return t}var a={},c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(e){var t;do t=u(e);while("undefined"!=typeof a[t]);return a[t]=!0,t}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,n,r,o,i,s){"use strict";function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}var a={},c=new RegExp("[xy]","g");return function(){var e;do e=u();while("undefined"!=typeof a[e]);return a[e]=!0,e}}),function(e){window.qoopido.register("proxy",e,["./base","./function/unique/uuid"])}(function(e,t,n,r,o,i,s){"use strict";return e.base.extend({_constructor:function(t,n){var r=Array.prototype.splice.call(arguments,2),o=function(){return n.apply(t,Array.prototype.slice.call(arguments).concat(r))};return o._quid=e["function/unique/uuid"](),o}})}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,g)}var a=e["promise/all"],c=e["promise/defer"],l=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],n=0;(e=arguments[n])!==s;n++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var r=new c;e?r.resolve():r.reject(),t.push(r.promise);break;default:t.push(e)}return new a(t)},getPrefix:function(){var e,t=this,n=h.prefix||null;if(null===n){var r=t.pool?t.pool.obtain("div"):i.createElement("div"),o=r.style;n=!1;for(e in o)l.test(e)&&(n=e.match(l)[0]);n===!1&&"WebkitOpacity"in o&&(n="WebKit"),n===!1&&"KhtmlOpacity"in o&&(n="Khtml"),n=h.prefix=n===!1?!1:[n.toLowerCase(),n.toLowerCase().ucfirst(),n],r.dispose&&r.dispose()}return n},getMethod:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=h.method[n]=h.method[n]||{},i=r[e]=h.method[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=a[l])!==s;l++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}h.method[n][e]=i}return i},getProperty:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=h.property[n]=h.property[n]||{},i=r[e]=h.property[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],l;(c=a[l])!==s;l++)if(t[c]!==s){i=c;break}h.property[n][e]=i}return i},getCssProperty:function(e){e=u(e);var t=this,n=h.css[e]||null;if(null===n){n=!1;var r,o=0,a=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),l=this.getPrefix()||[],p=(e+" "+c+" "+l.join(c+" ")+c).split(" "),f="";for(o;(r=p[o])!==s;o++)if(a.style[r]!==s){n=r,o>0&&(f="-");break}n=h.css[e]=n!==!1?[f+n.replace(m,"-$1").toLowerCase(),n]:!1,a.dispose&&a.dispose()}return n},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new c,n=this.getPrefix();n?t.resolve(n):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var n=t.tagName,r=h.promises.method[n]=h.promises.method[n]||{},i=r[e]=h.promises.method[n][e]||null;if(null===i){var s=new c,u=this.getMethod(e,t);u?s.resolve(u):s.reject(),i=h.promises.method[n][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var n=t.tagName,r=h.promises.property[n]=h.promises.property[n]||{},i=r[e]=h.promises.property[n][e]||null;if(null===i){var s=new c,u=this.getProperty(e,t);u?s.resolve(u):s.reject(),i=h.promises.property[n][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var n=new c,r=this.getCssProperty(e);r?n.resolve(r):n.reject(),t=h.promises.css[e]=n.promise}return t},addTest:function(e,t){return this.test[e]=function(){var n=h.promises.test[e]||null;if(null===n){var r=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,r),t.apply(null,o),n=h.promises.test[e]=r.promise}return n}}})}),function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/capability/datauri",function(t){var n=e["dom/element"].create(u.pool?u.pool.obtain("img"):i.createElement("img"));n.one("error load",function(e){"load"===e.type&&1===n.element.width&&1===n.element.height?t.resolve():t.reject(),n.element.dispose&&n.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}),function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas",function(e){var t=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}),function(e){window.qoopido.register("support/element/canvas/todataurl",e,["../../../support","../canvas"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl",function(t){e["support/element/canvas"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");e.toDataURL!==s?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.register("support/element/canvas/todataurl/png",e,["../../../../support","../todataurl"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl/png",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");0===e.toDataURL("image/png").indexOf("data:image/png")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){for(var r,o=0;(r=n[o])!==s;o++)e[r]=t[r];e._properties=e._properties.concat(n)}var a={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var n;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],n=e.target;do e.path.push(n);while(n=n.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var n,r,o;r=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(n=e.target.ownerDocument||i,n=n.documentElement||n.body,e.pageX=t.clientX+(n.scrollLeft||0)-(n.clientLeft||0),e.pageY=t.clientY+(n.scrollTop||0)-(n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&a[e]&&(a[e]=t),this},get:function(e){return e&&a[e]?a[e]:null},process:function(e,t){var n,r,o;for(n in a)r=a[n],o=!r.regex||r.regex.test(t.type),o&&(r.properties&&u(e,t,r.properties),r.process&&r.process(e,t),r.delegate&&(e.delegate=r.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,n,r,o,i,s){"use strict";var u=e.support,a=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return a(e,null).getPropertyValue(t[0])},set:function(e,t,n){e.style[t[1]]=n}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,n){return n=a(e,null).getPropertyValue("filter").toString().match(this.regex),n=n?n[1]/100:1},set:function(e,t,n){var r=e.style;r.zoom=1,r.filter="alpha(opacity="+(100*n+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,n,r){var o;return n=u.getCssProperty(n,t)||null,n?((o=this.get(n[1]))&&o[e]||this.get("general")[e])(t,n,r):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,n,r,o,i,s){"use strict";var u=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){u.process(this,e)},_dispose:function(){for(var e,t=this,n=0;(e=t._properties[n])!==s;n++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t,n,r;for(t in _)n=_[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function a(e,t,n){var r=this,o=u(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function l(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(x)}function p(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",y="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),x=new RegExp(" +","g"),j=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,E=e["hook/css"],P={},_={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,o=this;return e=c(e),r=e._quid,r?o=P[r]:(r=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[r]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof n&&null!==n&&o.setStyles(n),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(b),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,n={},r=l(arguments),o=0;(e=r[o])!==s;o++)n[e]=t.element.getAttribute(e);return n},setAttribute:function(e,t){var n=this;return e&&typeof e===d&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,n=l(arguments),r=0;(e=n[r])!==s;r++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?E.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,n={},r=l(arguments),o=0;(e=r[o])!==s;o++)n[e]=E.process("get",t.element,e);return n},setStyle:function(e,t){var n=this;return e&&typeof e===d&&E.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)E.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,n=l(arguments),r=0;(e=n[r])!==s;r++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=v.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=v.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||c(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||c(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,o=r.element,i=arguments.length>2?arguments[1]:null,u=arguments.length>2?arguments[2]:arguments[1],c=u._quid||(u._quid=m()),l=0;for(t=t.split(" ");(n=t[l])!==s;l++){var f=n+"-"+c,d=function(t){var n;t=j&&j.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=m(),(!i||p(t,i))&&u.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,a.call(r,n))),t.dispose&&t.dispose()};d.type=n,r._listener[f]=d,o.addEventListener(n,d)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(n){t.off(o===!0?n.type:e,i),r.call(this,n,n.originalEvent.detail)};return r._quid=i._quid=m(),n?t.on(e,n,i):t.on(e,i),t},off:function(e,t){var n,r,o,i=this,u=i.element,a=0;for(e=e.split(" ");(n=e[a])!==s;a++)r=t._quid&&n+"-"+t._quid||null,o=r&&i._listener[r]||null,o?(u.removeEventListener(n,o),delete i._listener[r]):u.removeEventListener(n,t);return i},emit:function(e,t){var n=this;return a.call(n,e,t),n}})}),function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t=i.createElement("a");return t.href=e||"",t}var a,c,l=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{a=location}catch(p){a=u()}return c=new RegExp("".concat("^",a.protocol,"//",a.hostname),"i"),e.base.extend({resolve:function(e){return u(e).href},redirect:function(e,t){t=t||o,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},r=u(e).search.split("+").join(" ");t=l.exec(r);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return c.test(this.resolve(e))}})}),function(e){window.qoopido.register("transport",e,["./base","./function/merge"])}(function(e,t,n,r,o,i,s){"use strict";var u;return u=e.base.extend({setup:function(t){var n=this;return n._settings=e["function/merge"]({},n._settings,t),n},serialize:function(e,t){var n,r,o,i=[];for(n in e)r=t?"".concat(t,"[",n,"]"):n,o=e[n],i.push("object"==typeof o?this.serialize(o,r):"".concat(encodeURIComponent(r),"=",encodeURIComponent(o)));return i.join("&")}})},window,document),function(e){window.qoopido.registerSingleton("transport/xhr",e,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){var r,o=this,i=o.xhr,s=o.settings;t=s.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):t,t=n&&"GET"===e?"".concat(t,t.indexOf("?")>-1?"&":"?",n):t;for(r in s.xhrOptions)i[r]=s.xhrOptions[r];if(i.open(e,t,s.async,s.username,s.password),i.setRequestHeader){i.setRequestHeader("Accept",s.accept),n&&"GET"!==e&&i.setRequestHeader("Content-Type",s.contentType);for(r in s.header)i.setRequestHeader(r,s.header[r])}i.timeout=s.timeout,i.onprogress=function(e){a.call(o,e)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){p.call(o)},s.timeout)}function a(e){var t=this;t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout(function(){p.call(t)},t.settings.timeout)}function c(){var e=this,t=e.xhr,n=e.dfd;(t.readyState===s||4===t.readyState)&&(f.call(e),t.status===s||200===t.status?n.resolve({data:t.responseText,xhr:t}):n.reject({status:t.status,xhr:t}))}function l(){var e=this;f.call(e),e.dfd.reject()}function p(){var e=this;e.xhr.abort(),f.call(e),e.dfd.reject()}function f(){var e=this,t=e.xhr;e.timeout&&clearTimeout(e.timeout),t.onprogress=t.onreadystatechange=t.onerror=null}var d,m=e["promise/defer"],g="undefined"!=typeof o.XMLHttpRequest?function(t){return e.url.isLocal(t)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return null}};return d=e.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(t,n,r,o){var i={};return n=e.url.resolve(n),i.url=n,i.id="".concat("xhr-",e["function/unique/string"]()),i.dfd=new m,i.xhr=g(n),i.settings=e["function/merge"]({},this._settings,o),i.timeout=null,u.call(i,t.toUpperCase(),n,r),i.dfd.promise},get:function(e,t,n){return this.load("GET",e,t,n)},post:function(e,t,n){return this.load("POST",e,t,n)},put:function(e,t,n){return this.load("PUT",e,t,n)},"delete":function(e,t,n){return this.load("DELETE",e,t,n)},head:function(e,t,n){return this.load("HEAD",e,t,n)}})},window,document),function(e){var t=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(t,n){t=e.url.resolve(b.exec(t)[1]),n=n===!0;var r=this,o=e["function/merge"]({},r._settings,e.url.getParameter(t)),i=o.target||(t=t.split("?")[0]).replace(x,"".concat(".q",o.quality,".shrunk"));n||r.removeAttribute(r._settings.attribute).hide(),j.then(function(){if(o.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof v[i]){case"object":v[i].one(_,function(e){a.call(r,e.data,n)}),r.emit(E);break;case"string":a.call(r,v[i],n);break;default:v[i]=d.create(i,n?null:r.element).one(q,function(e,o){e.type===_?(v[i]=o,r.emit(P),a.call(r,o,n)):(v[i]=t,a.call(r,t,n))},!1)}})["catch"](function(){v[i]=t,a.call(r,t,n)})}function a(e,t){ +var n=this;t?(n.setStyle("backgroundImage","url("+e+")"),n.emit(_)):n.one(S,function(){n.show(),n.emit(_)}).setAttribute("src",e)}function c(e){var t=this;e.get(t._url).then(function(e){try{var n=m.parse(e.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),l.call(t,n)}catch(r){t.emit(O)}},function(){t.emit(O)})}function l(e){var t,n,r=this,o=function(o){return t=y&&y.obtain("canvas")||i.createElement("canvas"),t.style.display="none",t.width=e.width,t.height=e.height,n=t.getContext("2d"),n.clearRect(0,0,e.width,e.height),n.drawImage(r.element,0,0,e.width,e.height),r.one(S,s).setAttribute("src",e.alpha),p(o)},s=function(o){var i;return n.globalCompositeOperation="xor",n.drawImage(r.element,0,0,e.width,e.height),i=t.toDataURL("image/png"),u(),r.emit(_,i),p(o)},u=function(){t&&t.dispose&&t.dispose(),r.element.dispose&&r.element.dispose()};r.one(C,function(e){e.type===S?o.call(this,e):(u(),r.emit(O))},!1).setAttribute("src",e.main)}function p(e){return e.preventDefault(),e.stopPropagation(),!1}var f,d,m=o.JSON,g=n.pop(),h={attribute:"data-"+g,quality:80,debug:!1},y=t.pool&&t.pool.dom||null,v={},w=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),b=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),j=e.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),E="queued",P="cached",_="loaded",O="failed",q="".concat(_," ",O),S="load",A="error",C="".concat(S," ",A);return f=e["dom/element"].extend({_constructor:function(t,n){var r,o,i;return r=f._parent._constructor.call(this,t),r._settings=n=e["function/merge"]({},h,n),o=r.getAttribute(n.attribute),i=r.getStyle("backgroundImage"),"IMG"===r.type&&u.call(r,o),"none"!==i&&w.test(i)&&u.call(r,i,!0),r},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),d=e["dom/element"].extend({_url:null,_constructor:function(t,n){var r;return n||(n=y&&y.obtain("img")||i.createElement("img")),r=d._parent._constructor.call(this,n),r._url=t,c.call(r,e["transport/xhr"]),r}}),f},window); \ No newline at end of file diff --git a/packages/qoopido.shrinkimage.latest.js b/packages/qoopido.shrinkimage.latest.js index f8266fea..eea601bf 100644 --- a/packages/qoopido.shrinkimage.latest.js +++ b/packages/qoopido.shrinkimage.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.0 -* date: 2015-07-23 +* version: 3.7.1 +* date: 2015-07-25 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1170,7 +1170,7 @@ return element; } } - }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { + }, isTag = new RegExp("^<(\\w+)\\s*/>$"), matchEvent = new RegExp("^[^-]+"), splitList = new RegExp(" +", "g"), pool = modules["pool/module"] && modules["pool/module"].create(modules["dom/event"], null, true) || null, hooks = modules["hook/css"], storage = {}, events = { custom: { type: "CustomEvent", method: "initCustomEvent" @@ -1224,6 +1224,9 @@ } return element; } + function resolveArguments(parameters) { + return Array.prototype.concat.apply([], Array.prototype.splice.call(parameters, 0)).join(" ").split(splitList); + } function matchesDelegate(event, delegate) { var i = 0, pointer; for (;(pointer = event.path[i]) !== undefined; i++) { @@ -1261,7 +1264,7 @@ self.setStyles(styles); } if (self !== this) { - self.dispose && self.dispose(); + this.dispose && this.dispose(); } return self; }, @@ -1297,13 +1300,10 @@ return self.element.getAttribute(attribute); } }, - getAttributes: function(attributes) { - var self = this, result = {}, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - result[attribute] = self.element.getAttributes(attribute); - } + getAttributes: function() { + var self = this, result = {}, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + result[attribute] = self.element.getAttribute(attribute); } return result; }, @@ -1330,13 +1330,10 @@ } return self; }, - removeAttributes: function(attributes) { - var self = this, i = 0, attribute; - if (attributes) { - attributes = typeof attributes === stringString ? attributes.split(" ") : attributes; - for (;(attribute = attributes[i]) !== undefined; i++) { - self.element.removeAttribute(attribute); - } + removeAttributes: function() { + var self = this, attributes = resolveArguments(arguments), i = 0, attribute; + for (;(attribute = attributes[i]) !== undefined; i++) { + self.element.removeAttribute(attribute); } return self; }, @@ -1346,13 +1343,10 @@ return hooks.process("get", self.element, property); } }, - getStyles: function(properties) { - var self = this, result = {}, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - result[property] = hooks.process("get", self.element, property); - } + getStyles: function() { + var self = this, result = {}, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + result[property] = hooks.process("get", self.element, property); } return result; }, @@ -1379,13 +1373,10 @@ } return self; }, - removeStyles: function(properties) { - var self = this, i = 0, property; - if (properties) { - properties = typeof properties === stringString ? properties.split(" ") : properties; - for (;(property = properties[i]) !== undefined; i++) { - self.setStyle(property, ""); - } + removeStyles: function() { + var self = this, properties = resolveArguments(arguments), i = 0, property; + for (;(property = properties[i]) !== undefined; i++) { + self.setStyle(property, ""); } return self; }, @@ -1952,8 +1943,8 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self = this, foreground, background; - prototype._parent._constructor.call(self, element); + var self, foreground, background; + self = prototype._parent._constructor.call(this, element); self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); @@ -1963,6 +1954,7 @@ if (background !== "none" && regexBackground.test(background)) { processMain.call(self, background, true); } + return self; }, hide: function() { this.setStyles({ @@ -1980,13 +1972,14 @@ loader = modules["dom/element"].extend({ _url: null, _constructor: function(url, element) { - var self = this; + var self; if (!element) { element = pool && pool.obtain("img") || document.createElement("img"); } - loader._parent._constructor.call(self, element); + self = loader._parent._constructor.call(this, element); self._url = url; processTransport.call(self, modules["transport/xhr"]); + return self; } }); return prototype; diff --git a/packages/qoopido.shrinkimage.latest.min.js b/packages/qoopido.shrinkimage.latest.min.js index 420a7c47..0ba3b9d5 100644 --- a/packages/qoopido.shrinkimage.latest.min.js +++ b/packages/qoopido.shrinkimage.latest.min.js @@ -1,3 +1,3 @@ -/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ -!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var u=Object.defineProperty,a=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,n){if(u)try{return u(e,t,n)}catch(r){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in n&&a.call(e,t,n.get),c&&"set"in n&&c.call(e,t,n.set),"value"in n&&(e[t]=n.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||n.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,n)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperties||n.push("./defineproperties"),t.register("polyfill/object/create",e,n)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function n(){}if("object"!=typeof e)throw new TypeError;n.prototype=e;var r=new n;if(e&&(r.constructor=n),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(r,t)}return r}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var u=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return u.call(Object,e,t)}catch(n){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,n,r,o,i){"use strict";function s(e,t,s,u){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,h=f.slice(0,-1).join("/"),g=0;(c=s[g])!==i;g++)m=d.test(c),m&&(c=a(h+"/"+c)),!p[c]&&arguments[g]&&(p[c]=arguments[g]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,l,f,n,r,o,i),u&&u(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function u(e,t,n){s(e,t,n,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(h,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:u}),l=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),h=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,n,r,o,i,s){"use strict";function u(e){for(var t,n={},r=Object.getOwnPropertyNames(e),o=0;(t=r[o])!==s;o++)n[t]=Object.getOwnPropertyDescriptor(e,t);return n}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var n;return e=e||{},t=t===!0,e._parent=this,n=Object.create(this,u(e)),t===!0&&(n.extend=a),n}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,n,r,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var u=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var n=this;return n.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),u.test(t)&&(t=t.replace(u,a)),e.currentStyle[t]||null},n}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e,t){var n=_.push([e,t]);1===n&&a()}function a(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=_[t])!==s;t++)e[0](e[1]);_.length=0}function l(e,t){var n,r=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(r=t.then,"function"==typeof r))return r.call(t,function(r){return n?!0:(n=!0,void(t!==r?d(e,r):m(e,r)))},function(t){return n?!0:(n=!0,void h(e,t))}),!0}catch(o){return n?!0:(h(e,o),!0)}return!1}function p(e,t){function n(e){d(t,e)}function r(e){h(t,e)}try{e(n,r)}catch(o){r(o)}}function f(e,t,n,r){var o,i,s,u,a="function"==typeof n;if(a)try{o=n(r),s=!0}catch(c){u=!0,i=c}else o=r,s=!0;l(t,o)||(a&&s?d(t,o):u?h(t,i):e===E?d(t,o):e===P&&h(t,o))}function d(e,t){e===t?m(e,t):l(e,t)||m(e,t)}function m(e,t){e._state===x&&(e._state=j,e._detail=t,u(g,e))}function h(e,t){e._state===x&&(e._state=j,e._detail=t,u(y,e))}function g(e){w(e,e._state=E)}function y(e){w(e,e._state=P)}function v(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+E]=n,o[i+P]=r}function w(e,t){for(var n,r,o=e._subscribers,i=e._detail,u=0;(n=o[u])!==s;u+=3)r=o[u+t],f(t,n,r,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var x=void 0,j=0,E=1,P=2,_=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var n=this,r=new b(function(){});return n._state?u(function(){f(n._state,r,arguments[n._state-1],n._detail)}):v(n,r,e,t),r},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,n){function r(e){return function(t){o(e,t)}}function o(e,n){u[e]=n,0===--a&&t(u)}var i,u=[],a=e.length,c=0;for(0===a&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(r(c),n):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,n){e.resolve=t,e.reject=n})}}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,n,r,o,i,s){"use strict";return function u(){var e,t,n,r,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(n in t)r=i[n],o=t[n],o!==s&&(null!==o&&"object"==typeof o?(r=o.length!==s?r&&"object"==typeof r&&r.length!==s?r:[]:r&&"object"==typeof r&&r.length===s?r:{},i[n]=u(r,o)):i[n]=o);return i}}),function(e){window.qoopido.register("function/unique/string",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t="",n=0;for(e=parseInt(e,10)||12;e>n;n++)t+=c[parseInt(Math.random()*(c.length-1),10)];return t}var a={},c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(e){var t;do t=u(e);while("undefined"!=typeof a[t]);return a[t]=!0,t}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,n,r,o,i,s){"use strict";function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}var a={},c=new RegExp("[xy]","g");return function(){var e;do e=u();while("undefined"!=typeof a[e]);return a[e]=!0,e}}),function(e){window.qoopido.register("proxy",e,["./base","./function/unique/uuid"])}(function(e,t,n,r,o,i,s){"use strict";return e.base.extend({_constructor:function(t,n){var r=Array.prototype.splice.call(arguments,2),o=function(){return n.apply(t,Array.prototype.slice.call(arguments).concat(r))};return o._quid=e["function/unique/uuid"](),o}})}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,h)}var a=e["promise/all"],c=e["promise/defer"],l=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),h=function(){return arguments[1].ucfirst()},g={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],n=0;(e=arguments[n])!==s;n++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var r=new c;e?r.resolve():r.reject(),t.push(r.promise);break;default:t.push(e)}return new a(t)},getPrefix:function(){var e,t=this,n=g.prefix||null;if(null===n){var r=t.pool?t.pool.obtain("div"):i.createElement("div"),o=r.style;n=!1;for(e in o)l.test(e)&&(n=e.match(l)[0]);n===!1&&"WebkitOpacity"in o&&(n="WebKit"),n===!1&&"KhtmlOpacity"in o&&(n="Khtml"),n=g.prefix=n===!1?!1:[n.toLowerCase(),n.toLowerCase().ucfirst(),n],r.dispose&&r.dispose()}return n},getMethod:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=g.method[n]=g.method[n]||{},i=r[e]=g.method[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=a[l])!==s;l++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}g.method[n][e]=i}return i},getProperty:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=g.property[n]=g.property[n]||{},i=r[e]=g.property[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],l;(c=a[l])!==s;l++)if(t[c]!==s){i=c;break}g.property[n][e]=i}return i},getCssProperty:function(e){e=u(e);var t=this,n=g.css[e]||null;if(null===n){n=!1;var r,o=0,a=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),l=this.getPrefix()||[],p=(e+" "+c+" "+l.join(c+" ")+c).split(" "),f="";for(o;(r=p[o])!==s;o++)if(a.style[r]!==s){n=r,o>0&&(f="-");break}n=g.css[e]=n!==!1?[f+n.replace(m,"-$1").toLowerCase(),n]:!1,a.dispose&&a.dispose()}return n},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=g.promises.prefix;if(null===e){var t=new c,n=this.getPrefix();n?t.resolve(n):t.reject(),e=g.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var n=t.tagName,r=g.promises.method[n]=g.promises.method[n]||{},i=r[e]=g.promises.method[n][e]||null;if(null===i){var s=new c,u=this.getMethod(e,t);u?s.resolve(u):s.reject(),i=g.promises.method[n][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var n=t.tagName,r=g.promises.property[n]=g.promises.property[n]||{},i=r[e]=g.promises.property[n][e]||null;if(null===i){var s=new c,u=this.getProperty(e,t);u?s.resolve(u):s.reject(),i=g.promises.property[n][e]=s.promise}return i},testCssProperty:function(e){var t=g.promises.css[e]||null;if(null===t){var n=new c,r=this.getCssProperty(e);r?n.resolve(r):n.reject(),t=g.promises.css[e]=n.promise}return t},addTest:function(e,t){return this.test[e]=function(){var n=g.promises.test[e]||null;if(null===n){var r=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,r),t.apply(null,o),n=g.promises.test[e]=r.promise}return n}}})}),function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/capability/datauri",function(t){var n=e["dom/element"].create(u.pool?u.pool.obtain("img"):i.createElement("img"));n.one("error load",function(e){"load"===e.type&&1===n.element.width&&1===n.element.height?t.resolve():t.reject(),n.element.dispose&&n.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}),function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas",function(e){var t=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}),function(e){window.qoopido.register("support/element/canvas/todataurl",e,["../../../support","../canvas"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl",function(t){e["support/element/canvas"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");e.toDataURL!==s?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.register("support/element/canvas/todataurl/png",e,["../../../../support","../todataurl"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl/png",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");0===e.toDataURL("image/png").indexOf("data:image/png")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){for(var r,o=0;(r=n[o])!==s;o++)e[r]=t[r];e._properties=e._properties.concat(n)}var a={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var n;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],n=e.target;do e.path.push(n);while(n=n.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var n,r,o;r=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(n=e.target.ownerDocument||i,n=n.documentElement||n.body,e.pageX=t.clientX+(n.scrollLeft||0)-(n.clientLeft||0),e.pageY=t.clientY+(n.scrollTop||0)-(n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&a[e]&&(a[e]=t),this},get:function(e){return e&&a[e]?a[e]:null},process:function(e,t){var n,r,o;for(n in a)r=a[n],o=!r.regex||r.regex.test(t.type),o&&(r.properties&&u(e,t,r.properties),r.process&&r.process(e,t),r.delegate&&(e.delegate=r.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,n,r,o,i,s){"use strict";var u=e.support,a=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return a(e,null).getPropertyValue(t[0])},set:function(e,t,n){e.style[t[1]]=n}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,n){return n=a(e,null).getPropertyValue("filter").toString().match(this.regex),n=n?n[1]/100:1},set:function(e,t,n){var r=e.style;r.zoom=1,r.filter="alpha(opacity="+(100*n+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,n,r){var o;return n=u.getCssProperty(n,t)||null,n?((o=this.get(n[1]))&&o[e]||this.get("general")[e])(t,n,r):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,n,r,o,i,s){"use strict";var u=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){u.process(this,e)},_dispose:function(){for(var e,t=this,n=0;(e=t._properties[n])!==s;n++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t,n,r;for(t in E)n=E[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function a(e,t,n){var r=this,o=u(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{v.test(e)===!0?(t=e.replace(v,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function l(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var p="object",f="string",d=e["function/unique/uuid"],m=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",g="undefined"!=typeof m.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},y="undefined"!=typeof m.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},v=new RegExp("^<(\\w+)\\s*/>$"),w=new RegExp("^[^-]+"),b=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,x=e["hook/css"],j={},E={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,o=this;return e=c(e),r=e._quid,r?o=j[r]:(r=e._quid=d(),o.type=e.tagName,o.element=e,o._listener={},j[r]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof n&&null!==n&&o.setStyles(n),o!==this&&o.dispose&&o.dispose(),o},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(w),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===f?t.element.getAttribute(e):void 0},getAttributes:function(e){var t,n=this,r={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)r[t]=n.element.getAttributes(t);return r},setAttribute:function(e,t){var n=this;return e&&typeof e===f&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===p&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===f&&t.element.removeAttribute(e),t},removeAttributes:function(e){var t,n=this,r=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[r])!==s;r++)n.element.removeAttribute(t);return n},getStyle:function(e){var t=this;return e&&typeof e===f?x.process("get",t.element,e):void 0},getStyles:function(e){var t,n=this,r={},o=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[o])!==s;o++)r[t]=x.process("get",n.element,t);return r},setStyle:function(e,t){var n=this;return e&&typeof e===f&&x.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===p&&!e.length)for(t in e)x.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===f&&t.setStyle(e,""),t},removeStyles:function(e){var t,n=this,r=0;if(e)for(e=typeof e===f?e.split(" "):e;(t=e[r])!==s;r++)n.setStyle(t,"");return n},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=y.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=g.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=g.call(this.element);if(!e)return t;for(;t;t=g.call(t))if(t.matches(e))return t},next:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||c(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||c(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,o=r.element,i=arguments.length>2?arguments[1]:null,u=arguments.length>2?arguments[2]:arguments[1],c=u._quid||(u._quid=d()),p=0;for(t=t.split(" ");(n=t[p])!==s;p++){var f=n+"-"+c,m=function(t){var n;t=b&&b.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=d(),(!i||l(t,i))&&u.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,a.call(r,n))),t.dispose&&t.dispose()};m.type=n,r._listener[f]=m,o.addEventListener(n,m)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(n){t.off(o===!0?n.type:e,i),r.call(this,n,n.originalEvent.detail)};return r._quid=i._quid=d(),n?t.on(e,n,i):t.on(e,i),t},off:function(e,t){var n,r,o,i=this,u=i.element,a=0;for(e=e.split(" ");(n=e[a])!==s;a++)r=t._quid&&n+"-"+t._quid||null,o=r&&i._listener[r]||null,o?(u.removeEventListener(n,o),delete i._listener[r]):u.removeEventListener(n,t);return i},emit:function(e,t){var n=this;return a.call(n,e,t),n}})}),function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t=i.createElement("a");return t.href=e||"",t}var a,c,l=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{a=location}catch(p){a=u()}return c=new RegExp("".concat("^",a.protocol,"//",a.hostname),"i"),e.base.extend({resolve:function(e){return u(e).href},redirect:function(e,t){t=t||o,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},r=u(e).search.split("+").join(" ");t=l.exec(r);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return c.test(this.resolve(e))}})}),function(e){window.qoopido.register("transport",e,["./base","./function/merge"])}(function(e,t,n,r,o,i,s){"use strict";var u;return u=e.base.extend({setup:function(t){var n=this;return n._settings=e["function/merge"]({},n._settings,t),n},serialize:function(e,t){var n,r,o,i=[];for(n in e)r=t?"".concat(t,"[",n,"]"):n,o=e[n],i.push("object"==typeof o?this.serialize(o,r):"".concat(encodeURIComponent(r),"=",encodeURIComponent(o)));return i.join("&")}})},window,document),function(e){window.qoopido.registerSingleton("transport/xhr",e,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){var r,o=this,i=o.xhr,s=o.settings;t=s.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):t,t=n&&"GET"===e?"".concat(t,t.indexOf("?")>-1?"&":"?",n):t;for(r in s.xhrOptions)i[r]=s.xhrOptions[r];if(i.open(e,t,s.async,s.username,s.password),i.setRequestHeader){i.setRequestHeader("Accept",s.accept),n&&"GET"!==e&&i.setRequestHeader("Content-Type",s.contentType);for(r in s.header)i.setRequestHeader(r,s.header[r])}i.timeout=s.timeout,i.onprogress=function(e){a.call(o,e)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){p.call(o)},s.timeout)}function a(e){var t=this;t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout(function(){p.call(t)},t.settings.timeout)}function c(){var e=this,t=e.xhr,n=e.dfd;(t.readyState===s||4===t.readyState)&&(f.call(e),t.status===s||200===t.status?n.resolve({data:t.responseText,xhr:t}):n.reject({status:t.status,xhr:t}))}function l(){var e=this;f.call(e),e.dfd.reject()}function p(){var e=this;e.xhr.abort(),f.call(e),e.dfd.reject()}function f(){var e=this,t=e.xhr;e.timeout&&clearTimeout(e.timeout),t.onprogress=t.onreadystatechange=t.onerror=null}var d,m=e["promise/defer"],h="undefined"!=typeof o.XMLHttpRequest?function(t){return e.url.isLocal(t)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return null}};return d=e.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(t,n,r,o){var i={};return n=e.url.resolve(n),i.url=n,i.id="".concat("xhr-",e["function/unique/string"]()),i.dfd=new m,i.xhr=h(n),i.settings=e["function/merge"]({},this._settings,o),i.timeout=null,u.call(i,t.toUpperCase(),n,r),i.dfd.promise},get:function(e,t,n){return this.load("GET",e,t,n)},post:function(e,t,n){return this.load("POST",e,t,n)},put:function(e,t,n){return this.load("PUT",e,t,n)},"delete":function(e,t,n){return this.load("DELETE",e,t,n)},head:function(e,t,n){return this.load("HEAD",e,t,n)}})},window,document),function(e){var t=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(t,n){t=e.url.resolve(b.exec(t)[1]),n=n===!0;var r=this,o=e["function/merge"]({},r._settings,e.url.getParameter(t)),i=o.target||(t=t.split("?")[0]).replace(x,"".concat(".q",o.quality,".shrunk"));n||r.removeAttribute(r._settings.attribute).hide(),j.then(function(){if(o.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof v[i]){case"object":v[i].one(_,function(e){a.call(r,e.data,n)}),r.emit(E);break;case"string":a.call(r,v[i],n);break;default:v[i]=d.create(i,n?null:r.element).one(q,function(e,o){e.type===_?(v[i]=o,r.emit(P),a.call(r,o,n)):(v[i]=t,a.call(r,t,n))},!1)}})["catch"](function(){v[i]=t,a.call(r,t,n)})}function a(e,t){var n=this;t?(n.setStyle("backgroundImage","url("+e+")"), -n.emit(_)):n.one(S,function(){n.show(),n.emit(_)}).setAttribute("src",e)}function c(e){var t=this;e.get(t._url).then(function(e){try{var n=m.parse(e.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),l.call(t,n)}catch(r){t.emit(O)}},function(){t.emit(O)})}function l(e){var t,n,r=this,o=function(o){return t=y&&y.obtain("canvas")||i.createElement("canvas"),t.style.display="none",t.width=e.width,t.height=e.height,n=t.getContext("2d"),n.clearRect(0,0,e.width,e.height),n.drawImage(r.element,0,0,e.width,e.height),r.one(S,s).setAttribute("src",e.alpha),p(o)},s=function(o){var i;return n.globalCompositeOperation="xor",n.drawImage(r.element,0,0,e.width,e.height),i=t.toDataURL("image/png"),u(),r.emit(_,i),p(o)},u=function(){t&&t.dispose&&t.dispose(),r.element.dispose&&r.element.dispose()};r.one(C,function(e){e.type===S?o.call(this,e):(u(),r.emit(O))},!1).setAttribute("src",e.main)}function p(e){return e.preventDefault(),e.stopPropagation(),!1}var f,d,m=o.JSON,h=n.pop(),g={attribute:"data-"+h,quality:80,debug:!1},y=t.pool&&t.pool.dom||null,v={},w=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),b=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),j=e.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),E="queued",P="cached",_="loaded",O="failed",q="".concat(_," ",O),S="load",A="error",C="".concat(S," ",A);return f=e["dom/element"].extend({_constructor:function(t,n){var r,o,i=this;f._parent._constructor.call(i,t),i._settings=n=e["function/merge"]({},g,n),r=i.getAttribute(n.attribute),o=i.getStyle("backgroundImage"),"IMG"===i.type&&u.call(i,r),"none"!==o&&w.test(o)&&u.call(i,o,!0)},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),d=e["dom/element"].extend({_url:null,_constructor:function(t,n){var r=this;n||(n=y&&y.obtain("img")||i.createElement("img")),d._parent._constructor.call(r,n),r._url=t,c.call(r,e["transport/xhr"])}}),f},window); \ No newline at end of file +/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +!function(e,t){t.register?t.register("polyfill/object/defineproperty",e):(t.modules=t.modules||{})["polyfill/object/defineproperty"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var u=Object.defineProperty,a=Object.prototype.__defineGetter__,c=Object.prototype.__defineSetter__;Object.defineProperty=function(e,t,n){if(u)try{return u(e,t,n)}catch(r){}if(e!==Object(e))throw new TypeError("Object.defineProperty called on non-object");return a&&"get"in n&&a.call(e,t,n.get),c&&"set"in n&&c.call(e,t,n.set),"value"in n&&(e[t]=n.value),e}}return Object.defineProperty},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()||n.push("./defineproperty"),t.register("polyfill/object/defineproperties",e,n)}else(t.modules=t.modules||{})["polyfill/object/defineproperties"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.defineProperties||(Object.defineProperties=function(e,t){if(e!==Object(e))throw new TypeError("Object.defineProperties called on non-object");var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.defineProperties},window.qoopido=window.qoopido||{}),function(e,t){if(t.register){var n=[];Object.defineProperties||n.push("./defineproperties"),t.register("polyfill/object/create",e,n)}else(t.modules=t.modules||{})["polyfill/object/create"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.create||(Object.create=function(e,t){function n(){}if("object"!=typeof e)throw new TypeError;n.prototype=e;var r=new n;if(e&&(r.constructor=n),arguments.length>1){if(t!==Object(t))throw new TypeError;Object.defineProperties(r,t)}return r}),Object.create},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertynames",e):(t.modules=t.modules||{})["polyfill/object/getownpropertynames"]=e()}(function(e,t,n,r,o,i,s){"use strict";return Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Object.getOwnPropertyNames},window.qoopido=window.qoopido||{}),function(e,t){t.register?t.register("polyfill/object/getownpropertydescriptor",e):(t.modules=t.modules||{})["polyfill/object/getownpropertydescriptor"]=e()}(function(e,t,n,r,o,i,s){"use strict";if(!Object.getOwnPropertyDescriptor||!function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()){var u=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(e!==Object(e))throw new TypeError;try{return u.call(Object,e,t)}catch(n){}return Object.prototype.hasOwnProperty.call(e,t)?{value:e[t],enumerable:!0,writable:!0,configurable:!0}:void 0}}return Object.getOwnPropertyDescriptor},window.qoopido=window.qoopido||{}),function(e,t,n,r,o,i){"use strict";function s(e,t,s,u){var c,f=e.split("/");return p[e]?p[e]:(c=function(){if(s)for(var c,m,g=f.slice(0,-1).join("/"),h=0;(c=s[h])!==i;h++)m=d.test(c),m&&(c=a(g+"/"+c)),!p[c]&&arguments[h]&&(p[c]=arguments[h]),m&&!p[c]&&"undefined"!=typeof console&&console.error("".concat("[Qoopido.js] ",e,": Could not load dependency ",c));return p[e]=t(p,l,f,n,r,o,i),u&&u(p[e]),p[e]},void("undefined"!=typeof module&&module.exports?module.exports=define(c):"function"==typeof define&&define.amd?s?define(s,c):define(c):c()))}function u(e,t,n){s(e,t,n,function(t){p[e]=t.create()})}function a(e){for(var t;(t=e.replace(m,""))!==e;)e=t;return e.replace(g,"")}var c=t.qoopido||(t.qoopido={register:s,registerSingleton:u}),l=c.shared||(c.shared={}),p=c.modules||(c.modules={}),f=[],d=new RegExp("^\\.+\\/"),m=new RegExp("(?:\\/|)[^\\/]*\\/\\.\\."),g=new RegExp("(^\\/)|\\.\\/","g");Object.create||f.push("./polyfill/object/create"),Object.getOwnPropertyNames||f.push("./polyfill/object/getownpropertynames"),Object.getOwnPropertyDescriptor&&function(){try{return Object.getOwnPropertyDescriptor({x:0},"x"),!0}catch(e){return!1}}()||f.push("./polyfill/object/getownpropertydescriptor"),s("base",e,f)}(function(e,t,n,r,o,i,s){"use strict";function u(e){for(var t,n={},r=Object.getOwnPropertyNames(e),o=0;(t=r[o])!==s;o++)n[t]=Object.getOwnPropertyDescriptor(e,t);return n}function a(){throw new Error("[Qoopido.js] Operation prohibited")}return{create:function(){var e,t=Object.create(this,u(this));return t._constructor&&(e=t._constructor.apply(t,arguments)),t.create=t.extend=a,e||t},extend:function(e,t){var n;return e=e||{},t=t===!0,e._parent=this,n=Object.create(this,u(e)),t===!0&&(n.extend=a),n}}},this,navigator,window,document),function(e){window.qoopido.register("polyfill/string/ucfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var e=this;return e.charAt(0).toUpperCase()+e.slice(1)}),String.prototype.ucfirst}),function(e){window.qoopido.register("polyfill/string/lcfirst",e)}(function(e,t,n,r,o,i,s){"use strict";return String.prototype.lcfirst||(String.prototype.lcfirst=function(){var e=this;return e.charAt(0).toLowerCase()+e.slice(1)}),String.prototype.lcfirst}),function(e){window.qoopido.register("polyfill/window/getcomputedstyle",e)}(function(e,t,n,r,o,i,s){"use strict";if(o.getComputedStyle)return o.getComputedStyle;var u=new RegExp("(\\-([a-z]){1})","g"),a=function(){return arguments[2].toUpperCase()};return function(e,t){var n=this;return n.getPropertyValue=function(t){return"float"===t&&(t="styleFloat"),u.test(t)&&(t=t.replace(u,a)),e.currentStyle[t]||null},n}}),function(e){window.qoopido.register("polyfill/window/promise",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e,t){var n=_.push([e,t]);1===n&&a()}function a(){o.setTimeout(c,1)}function c(){for(var e,t=0;(e=_[t])!==s;t++)e[0](e[1]);_.length=0}function l(e,t){var n,r=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(("function"==typeof t||"object"==typeof t&&null!==t)&&(r=t.then,"function"==typeof r))return r.call(t,function(r){return n?!0:(n=!0,void(t!==r?d(e,r):m(e,r)))},function(t){return n?!0:(n=!0,void g(e,t))}),!0}catch(o){return n?!0:(g(e,o),!0)}return!1}function p(e,t){function n(e){d(t,e)}function r(e){g(t,e)}try{e(n,r)}catch(o){r(o)}}function f(e,t,n,r){var o,i,s,u,a="function"==typeof n;if(a)try{o=n(r),s=!0}catch(c){u=!0,i=c}else o=r,s=!0;l(t,o)||(a&&s?d(t,o):u?g(t,i):e===E?d(t,o):e===P&&g(t,o))}function d(e,t){e===t?m(e,t):l(e,t)||m(e,t)}function m(e,t){e._state===x&&(e._state=j,e._detail=t,u(h,e))}function g(e,t){e._state===x&&(e._state=j,e._detail=t,u(y,e))}function h(e){w(e,e._state=E)}function y(e){w(e,e._state=P)}function v(e,t,n,r){var o=e._subscribers,i=o.length;o[i]=t,o[i+E]=n,o[i+P]=r}function w(e,t){for(var n,r,o=e._subscribers,i=e._detail,u=0;(n=o[u])!==s;u+=3)r=o[u+t],f(t,n,r,i);e._subscribers=null}function b(e){var t=this;if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");t._subscribers=[],p(e,t)}var x=void 0,j=0,E=1,P=2,_=[];return b.prototype={_state:s,_detail:s,_subscribers:s,then:function(e,t){var n=this,r=new b(function(){});return n._state?u(function(){f(n._state,r,arguments[n._state-1],n._detail)}):v(n,r,e,t),r},"catch":function(e){return this.then(null,e)}},o.Promise||(o.Promise=b),o.Promise}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/all",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to all.");return new o.Promise(function(t,n){function r(e){return function(t){o(e,t)}}function o(e,n){u[e]=n,0===--a&&t(u)}var i,u=[],a=e.length,c=0;for(0===a&&t([]);(i=e[c])!==s;c++)i&&"function"==typeof i.then?i.then(r(c),n):o(c,i)})}}),function(e){var t=[];window.Promise||t.push("../polyfill/window/promise"),window.qoopido.register("promise/defer",e,t)}(function(e,t,n,r,o,i,s){"use strict";return function(){var e=this;e.promise=new o.Promise(function(t,n){e.resolve=t,e.reject=n})}}),function(e){window.qoopido.register("function/merge",e)}(function(e,t,n,r,o,i,s){"use strict";return function u(){var e,t,n,r,o,i=arguments[0];for(e=1;(t=arguments[e])!==s;e++)for(n in t)r=i[n],o=t[n],o!==s&&(null!==o&&"object"==typeof o?(r=o.length!==s?r&&"object"==typeof r&&r.length!==s?r:[]:r&&"object"==typeof r&&r.length===s?r:{},i[n]=u(r,o)):i[n]=o);return i}}),function(e){window.qoopido.register("function/unique/string",e)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t="",n=0;for(e=parseInt(e,10)||12;e>n;n++)t+=c[parseInt(Math.random()*(c.length-1),10)];return t}var a={},c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");return function(e){var t;do t=u(e);while("undefined"!=typeof a[t]);return a[t]=!0,t}}),function(e){window.qoopido.register("function/unique/uuid",e)}(function(e,t,n,r,o,i,s){"use strict";function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(c,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)})}var a={},c=new RegExp("[xy]","g");return function(){var e;do e=u();while("undefined"!=typeof a[e]);return a[e]=!0,e}}),function(e){window.qoopido.register("proxy",e,["./base","./function/unique/uuid"])}(function(e,t,n,r,o,i,s){"use strict";return e.base.extend({_constructor:function(t,n){var r=Array.prototype.splice.call(arguments,2),o=function(){return n.apply(t,Array.prototype.slice.call(arguments).concat(r))};return o._quid=e["function/unique/uuid"](),o}})}),function(e){var t=["./base","./promise/all","./promise/defer"];String.prototype.ucfirst||t.push("./polyfill/string/ucfirst"),String.prototype.lcfirst||t.push("./polyfill/string/lcfirst"),window.qoopido.registerSingleton("support",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){return e.replace(p,"$1").lcfirst().replace(f,"").replace(d,g)}var a=e["promise/all"],c=e["promise/defer"],l=new RegExp("^(Moz|WebKit|Khtml|ms|O|Icab)(?=[A-Z])"),p=new RegExp("^(?:webkit|khtml|icab|moz|ms|o)([A-Z])"),f=new RegExp("^-(?:webkit|khtml|icab|moz|ms|o)-"),d=new RegExp("-([a-z])","gi"),m=new RegExp("([A-Z])","g"),g=function(){return arguments[1].ucfirst()},h={prefix:null,method:{},property:{},css:{},promises:{prefix:null,method:{},property:{},css:{},test:{}}};return e.base.extend({test:{},pool:t.pool&&t.pool.dom,testMultiple:function(){for(var e,t=[],n=0;(e=arguments[n])!==s;n++)switch(typeof e){case"string":t.push(this.test[e]());break;case"boolean":var r=new c;e?r.resolve():r.reject(),t.push(r.promise);break;default:t.push(e)}return new a(t)},getPrefix:function(){var e,t=this,n=h.prefix||null;if(null===n){var r=t.pool?t.pool.obtain("div"):i.createElement("div"),o=r.style;n=!1;for(e in o)l.test(e)&&(n=e.match(l)[0]);n===!1&&"WebkitOpacity"in o&&(n="WebKit"),n===!1&&"KhtmlOpacity"in o&&(n="Khtml"),n=h.prefix=n===!1?!1:[n.toLowerCase(),n.toLowerCase().ucfirst(),n],r.dispose&&r.dispose()}return n},getMethod:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=h.method[n]=h.method[n]||{},i=r[e]=h.method[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e];(c=a[l])!==s;l++)if(t[c]!==s&&("function"==typeof t[c]||"object"==typeof t[c])){i=c;break}h.method[n][e]=i}return i},getProperty:function(e,t){e=u(e),t=t||o;var n=t.tagName,r=h.property[n]=h.property[n]||{},i=r[e]=h.property[n][e]||null;if(null===i){i=!1;var a,c,l=0,p=e.ucfirst(),f=this.getPrefix();for(a=f!==!1?(e+" "+p+" "+f.join(p+" ")+p).split(" "):[e],l;(c=a[l])!==s;l++)if(t[c]!==s){i=c;break}h.property[n][e]=i}return i},getCssProperty:function(e){e=u(e);var t=this,n=h.css[e]||null;if(null===n){n=!1;var r,o=0,a=t.pool?t.pool.obtain("div"):i.createElement("div"),c=e.ucfirst(),l=this.getPrefix()||[],p=(e+" "+c+" "+l.join(c+" ")+c).split(" "),f="";for(o;(r=p[o])!==s;o++)if(a.style[r]!==s){n=r,o>0&&(f="-");break}n=h.css[e]=n!==!1?[f+n.replace(m,"-$1").toLowerCase(),n]:!1,a.dispose&&a.dispose()}return n},supportsPrefix:function(){return!!this.getPrefix()},supportsMethod:function(e,t){return!!this.getMethod(e,t)},supportsProperty:function(e,t){return!!this.getProperty(e,t)},supportsCssProperty:function(e){return!!this.getCssProperty(e)},testPrefix:function(){var e=h.promises.prefix;if(null===e){var t=new c,n=this.getPrefix();n?t.resolve(n):t.reject(),e=h.promises.prefix=t.promise}return e},testMethod:function(e,t){t=t||o;var n=t.tagName,r=h.promises.method[n]=h.promises.method[n]||{},i=r[e]=h.promises.method[n][e]||null;if(null===i){var s=new c,u=this.getMethod(e,t);u?s.resolve(u):s.reject(),i=h.promises.method[n][e]=s.promise}return i},testProperty:function(e,t){t=t||o;var n=t.tagName,r=h.promises.property[n]=h.promises.property[n]||{},i=r[e]=h.promises.property[n][e]||null;if(null===i){var s=new c,u=this.getProperty(e,t);u?s.resolve(u):s.reject(),i=h.promises.property[n][e]=s.promise}return i},testCssProperty:function(e){var t=h.promises.css[e]||null;if(null===t){var n=new c,r=this.getCssProperty(e);r?n.resolve(r):n.reject(),t=h.promises.css[e]=n.promise}return t},addTest:function(e,t){return this.test[e]=function(){var n=h.promises.test[e]||null;if(null===n){var r=new c,o=Array.prototype.slice.call(arguments);o.splice(0,0,r),t.apply(null,o),n=h.promises.test[e]=r.promise}return n}}})}),function(e){window.qoopido.register("support/capability/datauri",e,["../../support","../../dom/element"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/capability/datauri",function(t){var n=e["dom/element"].create(u.pool?u.pool.obtain("img"):i.createElement("img"));n.one("error load",function(e){"load"===e.type&&1===n.element.width&&1===n.element.height?t.resolve():t.reject(),n.element.dispose&&n.element.dispose()},!1).setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")})}),function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas",function(e){var t=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");t.getContext&&t.getContext("2d")?e.resolve():e.reject(),t.dispose&&t.dispose()})}),function(e){window.qoopido.register("support/element/canvas/todataurl",e,["../../../support","../canvas"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl",function(t){e["support/element/canvas"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");e.toDataURL!==s?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.register("support/element/canvas/todataurl/png",e,["../../../../support","../todataurl"])}(function(e,t,n,r,o,i,s){"use strict";var u=e.support;return u.addTest("/element/canvas/todataurl/png",function(t){e["support/element/canvas/todataurl"]().then(function(){var e=u.pool?u.pool.obtain("canvas"):i.createElement("canvas");0===e.toDataURL("image/png").indexOf("data:image/png")?t.resolve():t.reject(),e.dispose&&e.dispose()},function(){t.reject()})})}),function(e){window.qoopido.registerSingleton("hook/event",e,["../base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){for(var r,o=0;(r=n[o])!==s;o++)e[r]=t[r];e._properties=e._properties.concat(n)}var a={general:{properties:"type altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which path".split(" "),process:function(e,t){var n;if(e.originalEvent=t,e.isDefaultPrevented=t.defaultPrevented?!0:!1,e.isPropagationStopped=t.cancelBubble?!0:!1,e.metaKey=t.metaKey&&t.metaKey!==!1?!0:!1,e.target||(e.target=t.srcElement||i),3===e.target.nodeType&&(e.target=e.target.parentNode),!e.path){e.path=[],n=e.target;do e.path.push(n);while(n=n.parentNode);e.path.push(o)}}},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),properties:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement dataTransfer".split(" "),process:function(e,t){var n,r,o;r=t.fromElement,o=t.button,null===e.pageX&&null!==t.clientX&&(n=e.target.ownerDocument||i,n=n.documentElement||n.body,e.pageX=t.clientX+(n.scrollLeft||0)-(n.clientLeft||0),e.pageY=t.clientY+(n.scrollTop||0)-(n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||o===s||(e.which=1&o?1:2&o?3:4&o?2:0)}},key:{regex:new RegExp("^(?:key)"),properties:"char charCode key keyCode".split(" "),process:function(e,t){null===e.which&&(e.which=null!==t.charCode?t.charCode:t.keyCode)}}};return e.base.extend({add:function(e,t){return e&&t&&a[e]&&(a[e]=t),this},get:function(e){return e&&a[e]?a[e]:null},process:function(e,t){var n,r,o;for(n in a)r=a[n],o=!r.regex||r.regex.test(t.type),o&&(r.properties&&u(e,t,r.properties),r.process&&r.process(e,t),r.delegate&&(e.delegate=r.delegate))}})}),function(e){var t=["../base","../support"];window.getComputedStyle||t.push("../polyfill/window/getcomputedstyle"),window.qoopido.registerSingleton("hook/css",e,t)}(function(e,t,n,r,o,i,s){"use strict";var u=e.support,a=o.getComputedStyle||e["polyfill/window/getcomputedstyle"],c={general:{get:function(e,t){return a(e,null).getPropertyValue(t[0])},set:function(e,t,n){e.style[t[1]]=n}},opacity:u.supportsCssProperty("opacity")?null:{regex:new RegExp("alpha\\(opacity=(.*)\\)","i"),get:function(e,t,n){return n=a(e,null).getPropertyValue("filter").toString().match(this.regex),n=n?n[1]/100:1},set:function(e,t,n){var r=e.style;r.zoom=1,r.filter="alpha(opacity="+(100*n+.5>>0)+")"}}};return e.base.extend({add:function(e,t){return e&&t&&c[e]&&(c[e]=t),this},get:function(e){return e&&c[e]?c[e]:null},process:function(e,t,n,r){var o;return n=u.getCssProperty(n,t)||null,n?((o=this.get(n[1]))&&o[e]||this.get("general")[e])(t,n,r):void 0}})}),function(e){window.qoopido.register("dom/event",e,["../base","../hook/event"])}(function(e,t,n,r,o,i,s){"use strict";var u=e["hook/event"];return e.base.extend({originalEvent:null,isDelegate:!1,isDefaultPrevented:!1,isPropagationStopped:!1,isImmediatePropagationStopped:!1,_properties:null,_constructor:function(e){var t=this;t._properties=[],t._obtain(e)},_obtain:function(e){u.process(this,e)},_dispose:function(){for(var e,t=this,n=0;(e=t._properties[n])!==s;n++)delete t[e];delete t.delegate,t.originalEvent=null,t.isDelegate=!1,t.isDefaultPrevented=!1,t.isPropagationStopped=!1,t.isImmediatePropagationStopped=!1,t._properties.length=0},preventDefault:function(){var e=this,t=e.originalEvent;t.cancelable!==!1&&(e.isDefaultPrevented=!0,t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var e=this,t=e.originalEvent;e.isPropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},stopImmediatePropagation:function(){var e=this,t=e.originalEvent;e.isImmediatePropagationStopped=!0,t.stopImmediatePropagation&&t.stopImmediatePropagation(),e.stopPropagation()}})}),function(e){var t=["../base","../function/unique/uuid","../hook/css","./event"];window.CustomEvent||t.push("../polyfill/window/customevent"),window.addEventListener||t.push("../polyfill/window/addeventlistener"),window.removeEventListener||t.push("../polyfill/window/removeeventlistener"),window.dispatchEvent||t.push("../polyfill/window/dispatchevent"),Element.prototype.matches||t.push("../polyfill/element/matches"),document.querySelector||t.push("../polyfill/document/queryselector"),document.querySelectorAll||t.push("../polyfill/document/queryselectorall"),String.prototype.trim||t.push("../polyfill/string/trim"),window.qoopido.register("dom/element",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t,n,r;for(t in _)n=_[t],(!n.regex||n.regex.test(e))&&(r=n);return r}function a(e,t,n){var r=this,o=u(e),s=i.createEvent(o.type);s[o.method](e,"load"===e?!1:!0,!0,t),n&&(s._quid=n,s.isDelegate=!0),r.element.dispatchEvent(s)}function c(e){var t;if("string"==typeof e)try{w.test(e)===!0?(t=e.replace(w,"$1").toLowerCase(),e=i.createElement(t)):e=i.querySelector(e)}catch(n){e=null}if(!e)throw new Error("[Qoopido.js] Element could not be resolved");return e}function l(e){return Array.prototype.concat.apply([],Array.prototype.splice.call(e,0)).join(" ").split(x)}function p(e,t){for(var n,r=0;(n=e.path[r])!==s;r++){if(n.matches(t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}var f="object",d="string",m=e["function/unique/uuid"],g=i.getElementsByTagName("head")[0],h="textContent"in i.createElement("a")?"textContent":"innerText",y="undefined"!=typeof g.previousElementSibling?function(){return this.previousElementSibling}:function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e},v="undefined"!=typeof g.nextElementSibling?function(){return this.nextElementSibling}:function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e},w=new RegExp("^<(\\w+)\\s*/>$"),b=new RegExp("^[^-]+"),x=new RegExp(" +","g"),j=e["pool/module"]&&e["pool/module"].create(e["dom/event"],null,!0)||null,E=e["hook/css"],P={},_={custom:{type:"CustomEvent",method:"initCustomEvent"},html:{regex:new RegExp("^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$"),type:"HTMLEvents",method:"initEvent"},mouse:{regex:new RegExp("^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop)"),type:"MouseEvents",method:"initMouseEvent"}};return e.base.extend({type:null,element:null,_listener:null,_constructor:function(e,t,n){var r,o=this;return e=c(e),r=e._quid,r?o=P[r]:(r=e._quid=m(),o.type=e.tagName,o.element=e,o._listener={},P[r]=o),"object"==typeof t&&null!==t&&o.setAttributes(t),"object"==typeof n&&null!==n&&o.setStyles(n),o!==this&&this.dispose&&this.dispose(),o},_obtain:function(e,t,n){this._constructor(e,t,n)},_dispose:function(){var e,t,n=this;for(e in n._listener)t=e.match(b),n.element.removeEventListener(t,n._listener[e]),delete n._listener[e];n.type=null,n.element=null},getContent:function(e){var t=this.element;return e&&e!==!1?t.innerHTML:t[h]},setContent:function(e,t){var n=this,r=n.element;return t&&t!==!1?r.innerHTML=e:r[h]=e,n},getAttribute:function(e){var t=this;return e&&typeof e===d?t.element.getAttribute(e):void 0},getAttributes:function(){for(var e,t=this,n={},r=l(arguments),o=0;(e=r[o])!==s;o++)n[e]=t.element.getAttribute(e);return n},setAttribute:function(e,t){var n=this;return e&&typeof e===d&&n.element.setAttribute(e,t),n},setAttributes:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)n.element.setAttribute(t,e[t]);return n},removeAttribute:function(e){var t=this;return e&&typeof e===d&&t.element.removeAttribute(e),t},removeAttributes:function(){for(var e,t=this,n=l(arguments),r=0;(e=n[r])!==s;r++)t.element.removeAttribute(e);return t},getStyle:function(e){var t=this;return e&&typeof e===d?E.process("get",t.element,e):void 0},getStyles:function(){for(var e,t=this,n={},r=l(arguments),o=0;(e=r[o])!==s;o++)n[e]=E.process("get",t.element,e);return n},setStyle:function(e,t){var n=this;return e&&typeof e===d&&E.process("set",n.element,e,t),n},setStyles:function(e){var t,n=this;if(e&&typeof e===f&&!e.length)for(t in e)E.process("set",n.element,t,e[t]);return n},removeStyle:function(e){var t=this;return e&&typeof e===d&&t.setStyle(e,""),t},removeStyles:function(){for(var e,t=this,n=l(arguments),r=0;(e=n[r])!==s;r++)t.setStyle(e,"");return t},siblings:function(e){for(var t=this.element,n=t.parentNode.firstChild,r=[];n;n=v.call(n))n===t||e&&!n.matches(e)||r.push(n);return r},siblingsBefore:function(e){for(var t=this.element.previousSibling,n=[];t;t=y.call(t))(!e||t.matches(e))&&n.push(t);return n},siblingsAfter:function(e){for(var t=this.element.nextSibling,n=[];t;t=v.call(t))(!e||t.matches(e))&&n.push(t);return n},previous:function(e){var t=y.call(this.element);if(!e)return t;for(;t;t=y.call(t))if(t.matches(e))return t},next:function(e){var t=v.call(this.element);if(!e)return t;for(;t;t=v.call(t))if(t.matches(e))return t},find:function(e){var t,n,r=this.element;return e=e.trim(),">"===e.charAt(0)?(t=r._quid,r.setAttribute("data-quid",t),e='[data-quid="'+t+'"] '+e,n=r.parentNode.querySelectorAll(e),r.removeAttribute("data-quid")):n=r.querySelectorAll(e),n},parent:function(e){var t;if(!e)return this.element.parentNode;for(t=this.element;t;t=t.parentNode)if(t.matches(e))return t},parents:function(e){for(var t=this.element.parentNode,n=[];t;t=t.parentNode){if(9===t.nodeType)return n;1===t.nodeType&&(!e||t.matches(e))&&n.push(t)}},isVisible:function(){var e=this,t=e.element;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},hasClass:function(e){return e?new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.element.className):!1},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.element.className+=t.element.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.element.className=t.element.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"")),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.element;if(e)try{e=e.element||c(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(r){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this,n=t.element;if(e)try{n.appendChild(e.element||c(e))}catch(r){n.insertAdjacentHTML("beforeEnd",e)}return t},prependTo:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){var t=this;return e&&(e.element||c(e)).appendChild(t.element),t},insertBefore:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.insertBefore(n,e),t},insertAfter:function(e){var t=this,n=t.element;return e&&((e=e.element||c(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e)).parentNode.replaceChild(n,e),t},replaceWith:function(e){var t=this,n=t.element;return e&&(e=e.element||c(e),n.parentNode.replaceChild(e,n)),t},remove:function(){var e=this,t=e.element;return t.parentNode.removeChild(t),e},on:function(t){var n,r=this,o=r.element,i=arguments.length>2?arguments[1]:null,u=arguments.length>2?arguments[2]:arguments[1],c=u._quid||(u._quid=m()),l=0;for(t=t.split(" ");(n=t[l])!==s;l++){var f=n+"-"+c,d=function(t){var n;t=j&&j.obtain(t)||e["dom/event"].create(t),t.isPropagationStopped||(n=t.delegate,t._quid=m(),(!i||p(t,i))&&u.call(t.currentTarget,t,t.originalEvent.detail),n&&(delete t.delegate,a.call(r,n))),t.dispose&&t.dispose()};d.type=n,r._listener[f]=d,o.addEventListener(n,d)}return r},one:function(e){var t=this,n=arguments.length>3||"string"==typeof arguments[1]?arguments[1]:null,r=arguments.length>3||"function"==typeof arguments[2]?arguments[2]:arguments[1],o=(arguments.length>3?arguments[3]:arguments[2])!==!1,i=function(n){t.off(o===!0?n.type:e,i),r.call(this,n,n.originalEvent.detail)};return r._quid=i._quid=m(),n?t.on(e,n,i):t.on(e,i),t},off:function(e,t){var n,r,o,i=this,u=i.element,a=0;for(e=e.split(" ");(n=e[a])!==s;a++)r=t._quid&&n+"-"+t._quid||null,o=r&&i._listener[r]||null,o?(u.removeEventListener(n,o),delete i._listener[r]):u.removeEventListener(n,t);return i},emit:function(e,t){var n=this;return a.call(n,e,t),n}})}),function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,r,o,i,s){"use strict";function u(e){var t=i.createElement("a");return t.href=e||"",t}var a,c,l=new RegExp("[?&]?([^=]+)=([^&]*)","g");try{a=location}catch(p){a=u()}return c=new RegExp("".concat("^",a.protocol,"//",a.hostname),"i"),e.base.extend({resolve:function(e){return u(e).href},redirect:function(e,t){t=t||o,t.location.href=this.resolve(e)},getParameter:function(e){for(var t,n={},r=u(e).search.split("+").join(" ");t=l.exec(r);)n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return n},isLocal:function(e){return c.test(this.resolve(e))}})}),function(e){window.qoopido.register("transport",e,["./base","./function/merge"])}(function(e,t,n,r,o,i,s){"use strict";var u;return u=e.base.extend({setup:function(t){var n=this;return n._settings=e["function/merge"]({},n._settings,t),n},serialize:function(e,t){var n,r,o,i=[];for(n in e)r=t?"".concat(t,"[",n,"]"):n,o=e[n],i.push("object"==typeof o?this.serialize(o,r):"".concat(encodeURIComponent(r),"=",encodeURIComponent(o)));return i.join("&")}})},window,document),function(e){window.qoopido.registerSingleton("transport/xhr",e,["../transport","../function/merge","../function/unique/string","../url","../promise/defer"])}(function(e,t,n,r,o,i,s){"use strict";function u(e,t,n){var r,o=this,i=o.xhr,s=o.settings;t=s.cache===!1?"".concat(t,t.indexOf("?")>-1?"&":"?","_="+(new Date).getTime()):t,t=n&&"GET"===e?"".concat(t,t.indexOf("?")>-1?"&":"?",n):t;for(r in s.xhrOptions)i[r]=s.xhrOptions[r];if(i.open(e,t,s.async,s.username,s.password),i.setRequestHeader){i.setRequestHeader("Accept",s.accept),n&&"GET"!==e&&i.setRequestHeader("Content-Type",s.contentType);for(r in s.header)i.setRequestHeader(r,s.header[r])}i.timeout=s.timeout,i.onprogress=function(e){a.call(o,e)},i.onreadystatechange=i.onload=function(){c.call(o)},i.onerror=function(){l.call(o)},i.send(n||null),o.timeout=setTimeout(function(){p.call(o)},s.timeout)}function a(e){var t=this;t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout(function(){p.call(t)},t.settings.timeout)}function c(){var e=this,t=e.xhr,n=e.dfd;(t.readyState===s||4===t.readyState)&&(f.call(e),t.status===s||200===t.status?n.resolve({data:t.responseText,xhr:t}):n.reject({status:t.status,xhr:t}))}function l(){var e=this;f.call(e),e.dfd.reject()}function p(){var e=this;e.xhr.abort(),f.call(e),e.dfd.reject()}function f(){var e=this,t=e.xhr;e.timeout&&clearTimeout(e.timeout),t.onprogress=t.onreadystatechange=t.onerror=null}var d,m=e["promise/defer"],g="undefined"!=typeof o.XMLHttpRequest?function(t){return e.url.isLocal(t)?new o.XMLHttpRequest:o.XDomainRequest?new o.XDomainRequest:new o.XMLHttpRequest}:function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return null}};return d=e.transport.extend({_settings:{accept:"*/*",timeout:5e3,async:!0,cache:!1,header:{},username:null,password:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8 ",xhrOptions:{}},load:function(t,n,r,o){var i={};return n=e.url.resolve(n),i.url=n,i.id="".concat("xhr-",e["function/unique/string"]()),i.dfd=new m,i.xhr=g(n),i.settings=e["function/merge"]({},this._settings,o),i.timeout=null,u.call(i,t.toUpperCase(),n,r),i.dfd.promise},get:function(e,t,n){return this.load("GET",e,t,n)},post:function(e,t,n){return this.load("POST",e,t,n)},put:function(e,t,n){return this.load("PUT",e,t,n)},"delete":function(e,t,n){return this.load("DELETE",e,t,n)},head:function(e,t,n){return this.load("HEAD",e,t,n)}})},window,document),function(e){var t=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","../../transport/xhr"];window.qoopido.register("dom/element/shrinkimage",e,t)}(function(e,t,n,r,o,i,s){"use strict";function u(t,n){t=e.url.resolve(b.exec(t)[1]),n=n===!0;var r=this,o=e["function/merge"]({},r._settings,e.url.getParameter(t)),i=o.target||(t=t.split("?")[0]).replace(x,"".concat(".q",o.quality,".shrunk"));n||r.removeAttribute(r._settings.attribute).hide(),j.then(function(){if(o.debug===!0)throw new Error("[Qoopido.js] Debug enabled");switch(typeof v[i]){case"object":v[i].one(_,function(e){a.call(r,e.data,n)}),r.emit(E);break;case"string":a.call(r,v[i],n);break;default:v[i]=d.create(i,n?null:r.element).one(q,function(e,o){e.type===_?(v[i]=o,r.emit(P),a.call(r,o,n)):(v[i]=t,a.call(r,t,n))},!1)}})["catch"](function(){v[i]=t,a.call(r,t,n)})}function a(e,t){ +var n=this;t?(n.setStyle("backgroundImage","url("+e+")"),n.emit(_)):n.one(S,function(){n.show(),n.emit(_)}).setAttribute("src",e)}function c(e){var t=this;e.get(t._url).then(function(e){try{var n=m.parse(e.data);n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),l.call(t,n)}catch(r){t.emit(O)}},function(){t.emit(O)})}function l(e){var t,n,r=this,o=function(o){return t=y&&y.obtain("canvas")||i.createElement("canvas"),t.style.display="none",t.width=e.width,t.height=e.height,n=t.getContext("2d"),n.clearRect(0,0,e.width,e.height),n.drawImage(r.element,0,0,e.width,e.height),r.one(S,s).setAttribute("src",e.alpha),p(o)},s=function(o){var i;return n.globalCompositeOperation="xor",n.drawImage(r.element,0,0,e.width,e.height),i=t.toDataURL("image/png"),u(),r.emit(_,i),p(o)},u=function(){t&&t.dispose&&t.dispose(),r.element.dispose&&r.element.dispose()};r.one(C,function(e){e.type===S?o.call(this,e):(u(),r.emit(O))},!1).setAttribute("src",e.main)}function p(e){return e.preventDefault(),e.stopPropagation(),!1}var f,d,m=o.JSON,g=n.pop(),h={attribute:"data-"+g,quality:80,debug:!1},y=t.pool&&t.pool.dom||null,v={},w=new RegExp('^url\\x28"{0,1}data:image/shrink,(.+?)"{0,1}\\x29$',"i"),b=new RegExp('^(?:url\\x28"{0,1}|)(?:data:image/shrink,|)(.+?)(?:"{0,1}\\x29|)$',"i"),x=new RegExp("\\.png$","i"),j=e.support.testMultiple("/capability/datauri","/element/canvas/todataurl/png"),E="queued",P="cached",_="loaded",O="failed",q="".concat(_," ",O),S="load",A="error",C="".concat(S," ",A);return f=e["dom/element"].extend({_constructor:function(t,n){var r,o,i;return r=f._parent._constructor.call(this,t),r._settings=n=e["function/merge"]({},h,n),o=r.getAttribute(n.attribute),i=r.getStyle("backgroundImage"),"IMG"===r.type&&u.call(r,o),"none"!==i&&w.test(i)&&u.call(r,i,!0),r},hide:function(){this.setStyles({visibility:"hidden",opacity:0})},show:function(){this.setStyles({visibility:"",opacity:""})}}),d=e["dom/element"].extend({_url:null,_constructor:function(t,n){var r;return n||(n=y&&y.obtain("img")||i.createElement("img")),r=d._parent._constructor.call(this,n),r._url=t,c.call(r,e["transport/xhr"]),r}}),f},window); \ No newline at end of file