From aa7bfa7c90fe485731ad035e850785dfa64e7f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Wed, 5 Aug 2015 11:21:13 +0200 Subject: [PATCH] [UPDATE] building 3.7.2 --- dist/3.7.1/min/asset.js | 2 -- dist/3.7.1/min/component/iterator.js | 2 -- dist/3.7.1/min/component/remux.js | 2 -- dist/3.7.1/min/component/sense.js | 2 -- dist/3.7.1/min/dom/collection.js | 2 -- dist/3.7.1/min/dom/event.js | 2 -- dist/3.7.1/min/emitter.js | 2 -- dist/3.7.1/min/particle.js | 2 -- dist/3.7.1/min/pool.js | 2 -- dist/3.7.1/min/pool/module.js | 2 -- dist/3.7.1/min/vector/2d.js | 2 -- dist/{3.7.1 => 3.7.2}/max/asset.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/base.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/component/iterator.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/component/remux.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/component/sense.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/dom/collection.js | 5 +++-- dist/{3.7.1 => 3.7.2}/max/dom/element.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/dom/element/emerge.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/dom/element/lazyimage.js | 5 +++-- .../{3.7.1 => 3.7.2}/max/dom/element/shrinkimage.js | 7 +++---- dist/{3.7.1 => 3.7.2}/max/dom/event.js | 5 +++-- dist/{3.7.1 => 3.7.2}/max/emitter.js | 5 +++-- dist/{3.7.1 => 3.7.2}/max/function/load/css.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/function/merge.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/function/proximity.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/function/unique/string.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/function/unique/uuid.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/hook/css.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/hook/event.js | 4 ++-- .../max/jquery/extension/selector.js | 4 ++-- .../max/jquery/function/prefetch.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/jquery/plugin/emerge.js | 8 ++++---- .../{3.7.1 => 3.7.2}/max/jquery/plugin/lazyimage.js | 8 ++++---- .../max/jquery/plugin/shrinkimage.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/particle.js | 7 ++++--- dist/{3.7.1 => 3.7.2}/max/polyfill/array/indexof.js | 4 ++-- .../max/polyfill/document/getelementsbyclassname.js | 4 ++-- .../max/polyfill/document/queryselector.js | 4 ++-- .../max/polyfill/document/queryselectorall.js | 4 ++-- .../max/polyfill/element/matches.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/polyfill/object/create.js | 4 ++-- .../max/polyfill/object/defineproperties.js | 4 ++-- .../max/polyfill/object/defineproperty.js | 4 ++-- .../max/polyfill/object/getownpropertydescriptor.js | 4 ++-- .../max/polyfill/object/getownpropertynames.js | 4 ++-- .../max/polyfill/object/getprototypeof.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/polyfill/object/keys.js | 4 ++-- .../{3.7.1 => 3.7.2}/max/polyfill/string/lcfirst.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/polyfill/string/trim.js | 4 ++-- .../{3.7.1 => 3.7.2}/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 ++-- .../{3.7.1 => 3.7.2}/max/polyfill/window/promise.js | 4 ++-- .../max/polyfill/window/removeeventlistener.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/pool.js | 5 +++-- dist/{3.7.1 => 3.7.2}/max/pool/array.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/pool/dom.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/pool/module.js | 7 ++++--- dist/{3.7.1 => 3.7.2}/max/pool/object.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/promise/all.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/promise/defer.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/promise/race.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/proxy.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/renderer.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/support.js | 4 ++-- .../max/support/capability/datauri.js | 4 ++-- .../max/support/capability/touch.js | 4 ++-- .../max/support/css/borderradius.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/boxshadow.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/rem.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/rgba.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/textshadow.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/transform.js | 4 ++-- .../max/support/css/transform/2d.js | 4 ++-- .../max/support/css/transform/3d.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/css/transition.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/element/canvas.js | 4 ++-- .../max/support/element/canvas/todataurl.js | 4 ++-- .../max/support/element/canvas/todataurl/jpeg.js | 4 ++-- .../max/support/element/canvas/todataurl/png.js | 4 ++-- .../max/support/element/canvas/todataurl/webp.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/support/element/svg.js | 4 ++-- dist/{3.7.1 => 3.7.2}/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.1 => 3.7.2}/max/transport.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/transport/jsonp.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/transport/xhr.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/url.js | 4 ++-- dist/{3.7.1 => 3.7.2}/max/vector/2d.js | 5 +++-- dist/{3.7.1 => 3.7.2}/max/widget/image/adapt.js | 8 ++++---- dist/{3.7.1 => 3.7.2}/max/worker.js | 4 ++-- dist/3.7.2/min/asset.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/base.js | 2 +- dist/3.7.2/min/component/iterator.js | 2 ++ dist/3.7.2/min/component/remux.js | 2 ++ dist/3.7.2/min/component/sense.js | 2 ++ dist/3.7.2/min/dom/collection.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/dom/element.js | 2 +- dist/{3.7.1 => 3.7.2}/min/dom/element/emerge.js | 2 +- dist/{3.7.1 => 3.7.2}/min/dom/element/lazyimage.js | 4 ++-- .../{3.7.1 => 3.7.2}/min/dom/element/shrinkimage.js | 4 ++-- dist/3.7.2/min/dom/event.js | 2 ++ dist/3.7.2/min/emitter.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/function/load/css.js | 2 +- dist/{3.7.1 => 3.7.2}/min/function/merge.js | 2 +- dist/{3.7.1 => 3.7.2}/min/function/proximity.js | 2 +- dist/{3.7.1 => 3.7.2}/min/function/unique/string.js | 2 +- dist/{3.7.1 => 3.7.2}/min/function/unique/uuid.js | 2 +- dist/{3.7.1 => 3.7.2}/min/hook/css.js | 2 +- dist/{3.7.1 => 3.7.2}/min/hook/event.js | 2 +- .../min/jquery/extension/selector.js | 2 +- .../min/jquery/function/prefetch.js | 2 +- dist/{3.7.1 => 3.7.2}/min/jquery/plugin/emerge.js | 4 ++-- .../{3.7.1 => 3.7.2}/min/jquery/plugin/lazyimage.js | 4 ++-- .../min/jquery/plugin/shrinkimage.js | 4 ++-- dist/3.7.2/min/particle.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/polyfill/array/indexof.js | 2 +- .../min/polyfill/document/getelementsbyclassname.js | 2 +- .../min/polyfill/document/queryselector.js | 2 +- .../min/polyfill/document/queryselectorall.js | 2 +- .../min/polyfill/element/matches.js | 2 +- dist/{3.7.1 => 3.7.2}/min/polyfill/object/create.js | 2 +- .../min/polyfill/object/defineproperties.js | 2 +- .../min/polyfill/object/defineproperty.js | 2 +- .../min/polyfill/object/getownpropertydescriptor.js | 2 +- .../min/polyfill/object/getownpropertynames.js | 2 +- .../min/polyfill/object/getprototypeof.js | 2 +- dist/{3.7.1 => 3.7.2}/min/polyfill/object/keys.js | 2 +- .../{3.7.1 => 3.7.2}/min/polyfill/string/lcfirst.js | 2 +- dist/{3.7.1 => 3.7.2}/min/polyfill/string/trim.js | 2 +- .../{3.7.1 => 3.7.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 +- .../{3.7.1 => 3.7.2}/min/polyfill/window/promise.js | 2 +- .../min/polyfill/window/removeeventlistener.js | 2 +- dist/3.7.2/min/pool.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/pool/array.js | 2 +- dist/{3.7.1 => 3.7.2}/min/pool/dom.js | 2 +- dist/3.7.2/min/pool/module.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/pool/object.js | 2 +- dist/{3.7.1 => 3.7.2}/min/promise/all.js | 2 +- dist/{3.7.1 => 3.7.2}/min/promise/defer.js | 2 +- dist/{3.7.1 => 3.7.2}/min/promise/race.js | 2 +- dist/{3.7.1 => 3.7.2}/min/proxy.js | 2 +- dist/{3.7.1 => 3.7.2}/min/renderer.js | 4 ++-- dist/{3.7.1 => 3.7.2}/min/support.js | 2 +- .../min/support/capability/datauri.js | 2 +- .../min/support/capability/touch.js | 2 +- .../min/support/css/borderradius.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/boxshadow.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/rem.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/rgba.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/textshadow.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/transform.js | 2 +- .../min/support/css/transform/2d.js | 2 +- .../min/support/css/transform/3d.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/css/transition.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/element/canvas.js | 2 +- .../min/support/element/canvas/todataurl.js | 2 +- .../min/support/element/canvas/todataurl/jpeg.js | 2 +- .../min/support/element/canvas/todataurl/png.js | 2 +- .../min/support/element/canvas/todataurl/webp.js | 2 +- dist/{3.7.1 => 3.7.2}/min/support/element/svg.js | 2 +- dist/{3.7.1 => 3.7.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.1 => 3.7.2}/min/transport.js | 2 +- dist/{3.7.1 => 3.7.2}/min/transport/jsonp.js | 2 +- dist/{3.7.1 => 3.7.2}/min/transport/xhr.js | 2 +- dist/{3.7.1 => 3.7.2}/min/url.js | 2 +- dist/3.7.2/min/vector/2d.js | 2 ++ dist/{3.7.1 => 3.7.2}/min/widget/image/adapt.js | 4 ++-- dist/{3.7.1 => 3.7.2}/min/worker.js | 2 +- dist/latest/max/asset.js | 8 ++++---- dist/latest/max/base.js | 4 ++-- dist/latest/max/component/iterator.js | 8 ++++---- dist/latest/max/component/remux.js | 8 ++++---- dist/latest/max/component/sense.js | 8 ++++---- dist/latest/max/dom/collection.js | 5 +++-- dist/latest/max/dom/element.js | 4 ++-- dist/latest/max/dom/element/emerge.js | 4 ++-- dist/latest/max/dom/element/lazyimage.js | 5 +++-- dist/latest/max/dom/element/shrinkimage.js | 7 +++---- dist/latest/max/dom/event.js | 5 +++-- dist/latest/max/emitter.js | 5 +++-- 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 | 8 ++++---- dist/latest/max/jquery/plugin/lazyimage.js | 8 ++++---- dist/latest/max/jquery/plugin/shrinkimage.js | 8 ++++---- dist/latest/max/particle.js | 7 ++++--- dist/latest/max/polyfill/array/indexof.js | 4 ++-- .../max/polyfill/document/getelementsbyclassname.js | 4 ++-- dist/latest/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 ++-- dist/latest/max/polyfill/object/defineproperties.js | 4 ++-- dist/latest/max/polyfill/object/defineproperty.js | 4 ++-- .../max/polyfill/object/getownpropertydescriptor.js | 4 ++-- .../max/polyfill/object/getownpropertynames.js | 4 ++-- dist/latest/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 ++-- dist/latest/max/polyfill/window/addeventlistener.js | 4 ++-- dist/latest/max/polyfill/window/customevent.js | 4 ++-- dist/latest/max/polyfill/window/dispatchevent.js | 4 ++-- dist/latest/max/polyfill/window/getcomputedstyle.js | 4 ++-- dist/latest/max/polyfill/window/matchmedia.js | 4 ++-- dist/latest/max/polyfill/window/promise.js | 4 ++-- .../max/polyfill/window/removeeventlistener.js | 4 ++-- dist/latest/max/pool.js | 5 +++-- dist/latest/max/pool/array.js | 4 ++-- dist/latest/max/pool/dom.js | 4 ++-- dist/latest/max/pool/module.js | 7 ++++--- 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 | 8 ++++---- 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 ++-- dist/latest/max/support/element/canvas/todataurl.js | 4 ++-- .../max/support/element/canvas/todataurl/jpeg.js | 4 ++-- .../max/support/element/canvas/todataurl/png.js | 4 ++-- .../max/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 | 5 +++-- dist/latest/max/widget/image/adapt.js | 8 ++++---- dist/latest/max/worker.js | 4 ++-- dist/latest/min/asset.js | 4 ++-- dist/latest/min/base.js | 2 +- dist/latest/min/component/iterator.js | 4 ++-- dist/latest/min/component/remux.js | 4 ++-- dist/latest/min/component/sense.js | 4 ++-- dist/latest/min/dom/collection.js | 4 ++-- dist/latest/min/dom/element.js | 2 +- dist/latest/min/dom/element/emerge.js | 2 +- dist/latest/min/dom/element/lazyimage.js | 4 ++-- dist/latest/min/dom/element/shrinkimage.js | 4 ++-- dist/latest/min/dom/event.js | 4 ++-- dist/latest/min/emitter.js | 4 ++-- 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 | 4 ++-- dist/latest/min/jquery/plugin/lazyimage.js | 4 ++-- dist/latest/min/jquery/plugin/shrinkimage.js | 4 ++-- dist/latest/min/particle.js | 4 ++-- dist/latest/min/polyfill/array/indexof.js | 2 +- .../min/polyfill/document/getelementsbyclassname.js | 2 +- dist/latest/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 +- dist/latest/min/polyfill/object/defineproperties.js | 2 +- dist/latest/min/polyfill/object/defineproperty.js | 2 +- .../min/polyfill/object/getownpropertydescriptor.js | 2 +- .../min/polyfill/object/getownpropertynames.js | 2 +- dist/latest/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 +- dist/latest/min/polyfill/window/addeventlistener.js | 2 +- dist/latest/min/polyfill/window/customevent.js | 2 +- dist/latest/min/polyfill/window/dispatchevent.js | 2 +- dist/latest/min/polyfill/window/getcomputedstyle.js | 2 +- dist/latest/min/polyfill/window/matchmedia.js | 2 +- dist/latest/min/polyfill/window/promise.js | 2 +- .../min/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 | 4 ++-- 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 +- dist/latest/min/support/element/canvas/todataurl.js | 2 +- .../min/support/element/canvas/todataurl/jpeg.js | 2 +- .../min/support/element/canvas/todataurl/png.js | 2 +- .../min/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 | 4 ++-- dist/latest/min/widget/image/adapt.js | 4 ++-- dist/latest/min/worker.js | 2 +- package.json | 2 +- ...{qoopido.base.3.7.1.js => qoopido.base.3.7.2.js} | 4 ++-- ....base.3.7.1.min.js => qoopido.base.3.7.2.min.js} | 2 +- packages/qoopido.base.latest.js | 4 ++-- packages/qoopido.base.latest.min.js | 2 +- ...pido.emerge.3.7.1.js => qoopido.emerge.3.7.2.js} | 5 +++-- ...rge.3.7.1.min.js => qoopido.emerge.3.7.2.min.js} | 4 ++-- packages/qoopido.emerge.latest.js | 5 +++-- packages/qoopido.emerge.latest.min.js | 4 ++-- ...do.emitter.3.7.1.js => qoopido.emitter.3.7.2.js} | 5 +++-- ...er.3.7.1.min.js => qoopido.emitter.3.7.2.min.js} | 4 ++-- packages/qoopido.emitter.latest.js | 5 +++-- packages/qoopido.emitter.latest.min.js | 4 ++-- ...azyimage.3.7.1.js => qoopido.lazyimage.3.7.2.js} | 6 ++++-- ....3.7.1.min.js => qoopido.lazyimage.3.7.2.min.js} | 4 ++-- packages/qoopido.lazyimage.latest.js | 6 ++++-- packages/qoopido.lazyimage.latest.min.js | 4 ++-- ...oopido.remux.3.7.1.js => qoopido.remux.3.7.2.js} | 13 +++++++------ ...emux.3.7.1.min.js => qoopido.remux.3.7.2.min.js} | 4 ++-- packages/qoopido.remux.latest.js | 13 +++++++------ packages/qoopido.remux.latest.min.js | 4 ++-- ...oopido.sense.3.7.1.js => qoopido.sense.3.7.2.js} | 9 +++++---- ...ense.3.7.1.min.js => qoopido.sense.3.7.2.min.js} | 4 ++-- packages/qoopido.sense.latest.js | 9 +++++---- packages/qoopido.sense.latest.min.js | 4 ++-- ...kimage.3.7.1.js => qoopido.shrinkimage.3.7.2.js} | 8 ++++---- ....7.1.min.js => qoopido.shrinkimage.3.7.2.min.js} | 6 +++--- packages/qoopido.shrinkimage.latest.js | 8 ++++---- packages/qoopido.shrinkimage.latest.min.js | 6 +++--- 384 files changed, 695 insertions(+), 669 deletions(-) delete mode 100644 dist/3.7.1/min/asset.js delete mode 100644 dist/3.7.1/min/component/iterator.js delete mode 100644 dist/3.7.1/min/component/remux.js delete mode 100644 dist/3.7.1/min/component/sense.js delete mode 100644 dist/3.7.1/min/dom/collection.js delete mode 100644 dist/3.7.1/min/dom/event.js delete mode 100644 dist/3.7.1/min/emitter.js delete mode 100644 dist/3.7.1/min/particle.js delete mode 100644 dist/3.7.1/min/pool.js delete mode 100644 dist/3.7.1/min/pool/module.js delete mode 100644 dist/3.7.1/min/vector/2d.js rename dist/{3.7.1 => 3.7.2}/max/asset.js (95%) rename dist/{3.7.1 => 3.7.2}/max/base.js (99%) rename dist/{3.7.1 => 3.7.2}/max/component/iterator.js (96%) rename dist/{3.7.1 => 3.7.2}/max/component/remux.js (95%) rename dist/{3.7.1 => 3.7.2}/max/component/sense.js (82%) rename dist/{3.7.1 => 3.7.2}/max/dom/collection.js (99%) rename dist/{3.7.1 => 3.7.2}/max/dom/element.js (99%) rename dist/{3.7.1 => 3.7.2}/max/dom/element/emerge.js (99%) rename dist/{3.7.1 => 3.7.2}/max/dom/element/lazyimage.js (96%) rename dist/{3.7.1 => 3.7.2}/max/dom/element/shrinkimage.js (97%) rename dist/{3.7.1 => 3.7.2}/max/dom/event.js (97%) rename dist/{3.7.1 => 3.7.2}/max/emitter.js (98%) rename dist/{3.7.1 => 3.7.2}/max/function/load/css.js (96%) rename dist/{3.7.1 => 3.7.2}/max/function/merge.js (97%) rename dist/{3.7.1 => 3.7.2}/max/function/proximity.js (97%) rename dist/{3.7.1 => 3.7.2}/max/function/unique/string.js (96%) rename dist/{3.7.1 => 3.7.2}/max/function/unique/uuid.js (95%) rename dist/{3.7.1 => 3.7.2}/max/hook/css.js (98%) rename dist/{3.7.1 => 3.7.2}/max/hook/event.js (99%) rename dist/{3.7.1 => 3.7.2}/max/jquery/extension/selector.js (98%) rename dist/{3.7.1 => 3.7.2}/max/jquery/function/prefetch.js (96%) rename dist/{3.7.1 => 3.7.2}/max/jquery/plugin/emerge.js (87%) rename dist/{3.7.1 => 3.7.2}/max/jquery/plugin/lazyimage.js (86%) rename dist/{3.7.1 => 3.7.2}/max/jquery/plugin/shrinkimage.js (89%) rename dist/{3.7.1 => 3.7.2}/max/particle.js (93%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/array/indexof.js (94%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/document/getelementsbyclassname.js (95%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/document/queryselector.js (95%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/document/queryselectorall.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/element/matches.js (96%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/create.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/defineproperties.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/defineproperty.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/getownpropertydescriptor.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/getownpropertynames.js (96%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/getprototypeof.js (96%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/object/keys.js (95%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/string/lcfirst.js (93%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/string/trim.js (93%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/string/ucfirst.js (93%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/addeventlistener.js (98%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/customevent.js (97%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/dispatchevent.js (98%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/getcomputedstyle.js (96%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/matchmedia.js (99%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/promise.js (99%) rename dist/{3.7.1 => 3.7.2}/max/polyfill/window/removeeventlistener.js (97%) rename dist/{3.7.1 => 3.7.2}/max/pool.js (98%) rename dist/{3.7.1 => 3.7.2}/max/pool/array.js (94%) rename dist/{3.7.1 => 3.7.2}/max/pool/dom.js (97%) rename dist/{3.7.1 => 3.7.2}/max/pool/module.js (91%) rename dist/{3.7.1 => 3.7.2}/max/pool/object.js (97%) rename dist/{3.7.1 => 3.7.2}/max/promise/all.js (97%) rename dist/{3.7.1 => 3.7.2}/max/promise/defer.js (94%) rename dist/{3.7.1 => 3.7.2}/max/promise/race.js (96%) rename dist/{3.7.1 => 3.7.2}/max/proxy.js (95%) rename dist/{3.7.1 => 3.7.2}/max/renderer.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support.js (99%) rename dist/{3.7.1 => 3.7.2}/max/support/capability/datauri.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/capability/touch.js (94%) rename dist/{3.7.1 => 3.7.2}/max/support/css/borderradius.js (94%) rename dist/{3.7.1 => 3.7.2}/max/support/css/boxshadow.js (93%) rename dist/{3.7.1 => 3.7.2}/max/support/css/rem.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support/css/rgba.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support/css/textshadow.js (93%) rename dist/{3.7.1 => 3.7.2}/max/support/css/transform.js (93%) rename dist/{3.7.1 => 3.7.2}/max/support/css/transform/2d.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/css/transform/3d.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/css/transition.js (93%) rename dist/{3.7.1 => 3.7.2}/max/support/element/canvas.js (94%) rename dist/{3.7.1 => 3.7.2}/max/support/element/canvas/todataurl.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support/element/canvas/todataurl/jpeg.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/element/canvas/todataurl/png.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/element/canvas/todataurl/webp.js (96%) rename dist/{3.7.1 => 3.7.2}/max/support/element/svg.js (93%) rename dist/{3.7.1 => 3.7.2}/max/support/element/video.js (94%) rename dist/{3.7.1 => 3.7.2}/max/support/element/video/mp4.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support/element/video/ogg.js (95%) rename dist/{3.7.1 => 3.7.2}/max/support/element/video/webm.js (95%) rename dist/{3.7.1 => 3.7.2}/max/transport.js (96%) rename dist/{3.7.1 => 3.7.2}/max/transport/jsonp.js (98%) rename dist/{3.7.1 => 3.7.2}/max/transport/xhr.js (99%) rename dist/{3.7.1 => 3.7.2}/max/url.js (97%) rename dist/{3.7.1 => 3.7.2}/max/vector/2d.js (97%) rename dist/{3.7.1 => 3.7.2}/max/widget/image/adapt.js (95%) rename dist/{3.7.1 => 3.7.2}/max/worker.js (98%) create mode 100644 dist/3.7.2/min/asset.js rename dist/{3.7.1 => 3.7.2}/min/base.js (96%) create mode 100644 dist/3.7.2/min/component/iterator.js create mode 100644 dist/3.7.2/min/component/remux.js create mode 100644 dist/3.7.2/min/component/sense.js create mode 100644 dist/3.7.2/min/dom/collection.js rename dist/{3.7.1 => 3.7.2}/min/dom/element.js (99%) rename dist/{3.7.1 => 3.7.2}/min/dom/element/emerge.js (97%) rename dist/{3.7.1 => 3.7.2}/min/dom/element/lazyimage.js (76%) rename dist/{3.7.1 => 3.7.2}/min/dom/element/shrinkimage.js (79%) create mode 100644 dist/3.7.2/min/dom/event.js create mode 100644 dist/3.7.2/min/emitter.js rename dist/{3.7.1 => 3.7.2}/min/function/load/css.js (86%) rename dist/{3.7.1 => 3.7.2}/min/function/merge.js (86%) rename dist/{3.7.1 => 3.7.2}/min/function/proximity.js (89%) rename dist/{3.7.1 => 3.7.2}/min/function/unique/string.js (86%) rename dist/{3.7.1 => 3.7.2}/min/function/unique/uuid.js (86%) rename dist/{3.7.1 => 3.7.2}/min/hook/css.js (93%) rename dist/{3.7.1 => 3.7.2}/min/hook/event.js (96%) rename dist/{3.7.1 => 3.7.2}/min/jquery/extension/selector.js (95%) rename dist/{3.7.1 => 3.7.2}/min/jquery/function/prefetch.js (88%) rename dist/{3.7.1 => 3.7.2}/min/jquery/plugin/emerge.js (66%) rename dist/{3.7.1 => 3.7.2}/min/jquery/plugin/lazyimage.js (68%) rename dist/{3.7.1 => 3.7.2}/min/jquery/plugin/shrinkimage.js (64%) create mode 100644 dist/3.7.2/min/particle.js rename dist/{3.7.1 => 3.7.2}/min/polyfill/array/indexof.js (82%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/document/getelementsbyclassname.js (86%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/document/queryselector.js (84%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/document/queryselectorall.js (90%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/element/matches.js (89%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/create.js (90%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/defineproperties.js (91%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/defineproperty.js (92%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/getownpropertydescriptor.js (91%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/getownpropertynames.js (89%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/getprototypeof.js (88%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/object/keys.js (84%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/string/lcfirst.js (82%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/string/trim.js (83%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/string/ucfirst.js (82%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/addeventlistener.js (94%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/customevent.js (91%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/dispatchevent.js (92%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/getcomputedstyle.js (87%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/matchmedia.js (97%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/promise.js (96%) rename dist/{3.7.1 => 3.7.2}/min/polyfill/window/removeeventlistener.js (90%) create mode 100644 dist/3.7.2/min/pool.js rename dist/{3.7.1 => 3.7.2}/min/pool/array.js (81%) rename dist/{3.7.1 => 3.7.2}/min/pool/dom.js (90%) create mode 100644 dist/3.7.2/min/pool/module.js rename dist/{3.7.1 => 3.7.2}/min/pool/object.js (92%) rename dist/{3.7.1 => 3.7.2}/min/promise/all.js (89%) rename dist/{3.7.1 => 3.7.2}/min/promise/defer.js (82%) rename dist/{3.7.1 => 3.7.2}/min/promise/race.js (87%) rename dist/{3.7.1 => 3.7.2}/min/proxy.js (85%) rename dist/{3.7.1 => 3.7.2}/min/renderer.js (60%) rename dist/{3.7.1 => 3.7.2}/min/support.js (98%) rename dist/{3.7.1 => 3.7.2}/min/support/capability/datauri.js (90%) rename dist/{3.7.1 => 3.7.2}/min/support/capability/touch.js (84%) rename dist/{3.7.1 => 3.7.2}/min/support/css/borderradius.js (84%) rename dist/{3.7.1 => 3.7.2}/min/support/css/boxshadow.js (83%) rename dist/{3.7.1 => 3.7.2}/min/support/css/rem.js (85%) rename dist/{3.7.1 => 3.7.2}/min/support/css/rgba.js (86%) rename dist/{3.7.1 => 3.7.2}/min/support/css/textshadow.js (83%) rename dist/{3.7.1 => 3.7.2}/min/support/css/transform.js (83%) rename dist/{3.7.1 => 3.7.2}/min/support/css/transform/2d.js (89%) rename dist/{3.7.1 => 3.7.2}/min/support/css/transform/3d.js (89%) rename dist/{3.7.1 => 3.7.2}/min/support/css/transition.js (83%) rename dist/{3.7.1 => 3.7.2}/min/support/element/canvas.js (85%) rename dist/{3.7.1 => 3.7.2}/min/support/element/canvas/todataurl.js (87%) rename dist/{3.7.1 => 3.7.2}/min/support/element/canvas/todataurl/jpeg.js (89%) rename dist/{3.7.1 => 3.7.2}/min/support/element/canvas/todataurl/png.js (89%) rename dist/{3.7.1 => 3.7.2}/min/support/element/canvas/todataurl/webp.js (89%) rename dist/{3.7.1 => 3.7.2}/min/support/element/svg.js (83%) rename dist/{3.7.1 => 3.7.2}/min/support/element/video.js (84%) rename dist/{3.7.1 => 3.7.2}/min/support/element/video/mp4.js (88%) rename dist/{3.7.1 => 3.7.2}/min/support/element/video/ogg.js (88%) rename dist/{3.7.1 => 3.7.2}/min/support/element/video/webm.js (88%) rename dist/{3.7.1 => 3.7.2}/min/transport.js (88%) rename dist/{3.7.1 => 3.7.2}/min/transport/jsonp.js (96%) rename dist/{3.7.1 => 3.7.2}/min/transport/xhr.js (97%) rename dist/{3.7.1 => 3.7.2}/min/url.js (91%) create mode 100644 dist/3.7.2/min/vector/2d.js rename dist/{3.7.1 => 3.7.2}/min/widget/image/adapt.js (54%) rename dist/{3.7.1 => 3.7.2}/min/worker.js (96%) rename packages/{qoopido.base.3.7.1.js => qoopido.base.3.7.2.js} (99%) rename packages/{qoopido.base.3.7.1.min.js => qoopido.base.3.7.2.min.js} (98%) rename packages/{qoopido.emerge.3.7.1.js => qoopido.emerge.3.7.2.js} (99%) rename packages/{qoopido.emerge.3.7.1.min.js => qoopido.emerge.3.7.2.min.js} (57%) rename packages/{qoopido.emitter.3.7.1.js => qoopido.emitter.3.7.2.js} (99%) rename packages/{qoopido.emitter.3.7.1.min.js => qoopido.emitter.3.7.2.min.js} (87%) rename packages/{qoopido.lazyimage.3.7.1.js => qoopido.lazyimage.3.7.2.js} (99%) rename packages/{qoopido.lazyimage.3.7.1.min.js => qoopido.lazyimage.3.7.2.min.js} (55%) rename packages/{qoopido.remux.3.7.1.js => qoopido.remux.3.7.2.js} (98%) rename packages/{qoopido.remux.3.7.1.min.js => qoopido.remux.3.7.2.min.js} (74%) rename packages/{qoopido.sense.3.7.1.js => qoopido.sense.3.7.2.js} (98%) rename packages/{qoopido.sense.3.7.1.min.js => qoopido.sense.3.7.2.min.js} (86%) rename packages/{qoopido.shrinkimage.3.7.1.js => qoopido.shrinkimage.3.7.2.js} (99%) rename packages/{qoopido.shrinkimage.3.7.1.min.js => qoopido.shrinkimage.3.7.2.min.js} (58%) diff --git a/dist/3.7.1/min/asset.js b/dist/3.7.1/min/asset.js deleted file mode 100644 index 4745a2d6..00000000 --- a/dist/3.7.1/min/asset.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/component/iterator.js b/dist/3.7.1/min/component/iterator.js deleted file mode 100644 index 683e0e87..00000000 --- a/dist/3.7.1/min/component/iterator.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/component/remux.js b/dist/3.7.1/min/component/remux.js deleted file mode 100644 index f911f270..00000000 --- a/dist/3.7.1/min/component/remux.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/component/sense.js b/dist/3.7.1/min/component/sense.js deleted file mode 100644 index 3cd8f168..00000000 --- a/dist/3.7.1/min/component/sense.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/dom/collection.js b/dist/3.7.1/min/dom/collection.js deleted file mode 100644 index fb55b30e..00000000 --- a/dist/3.7.1/min/dom/collection.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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/event.js b/dist/3.7.1/min/dom/event.js deleted file mode 100644 index 67890bdc..00000000 --- a/dist/3.7.1/min/dom/event.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/emitter.js b/dist/3.7.1/min/emitter.js deleted file mode 100644 index 463b8e4b..00000000 --- a/dist/3.7.1/min/emitter.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/particle.js b/dist/3.7.1/min/particle.js deleted file mode 100644 index 2b9c063d..00000000 --- a/dist/3.7.1/min/particle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/pool.js b/dist/3.7.1/min/pool.js deleted file mode 100644 index f8b4dbe4..00000000 --- a/dist/3.7.1/min/pool.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/pool/module.js b/dist/3.7.1/min/pool/module.js deleted file mode 100644 index 1e6bb6ed..00000000 --- a/dist/3.7.1/min/pool/module.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/min/vector/2d.js b/dist/3.7.1/min/vector/2d.js deleted file mode 100644 index c576eade..00000000 --- a/dist/3.7.1/min/vector/2d.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! 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.1/max/asset.js b/dist/3.7.2/max/asset.js similarity index 95% rename from dist/3.7.1/max/asset.js rename to dist/3.7.2/max/asset.js index 008781d4..832c5fd2 100644 --- a/dist/3.7.1/max/asset.js +++ b/dist/3.7.2/max/asset.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -45,11 +45,10 @@ prototype = modules["emitter"].extend({ _uuid: null, _constructor: function(url, id, version) { - var self = this, uuid = generateUuid(), properties = lookup[uuid] = { + var self = prototype._parent._constructor.call(this), uuid = generateUuid(), properties = lookup[uuid] = { dfd: new DeferedPromise(), url: url }; - prototype._parent._constructor.call(self); self._uuid = uuid; if (id && version) { properties.id = id; @@ -60,6 +59,7 @@ value: "©" + id }; } + return self; }, fetch: function() { var self = this, properties = lookup[self._uuid], defered = properties.dfd, url = properties.url, id = properties.id, version = properties.version, storage = properties.storage, stored = storage && storage.version && localStorage[storage.version]; diff --git a/dist/3.7.1/max/base.js b/dist/3.7.2/max/base.js similarity index 99% rename from dist/3.7.1/max/base.js rename to dist/3.7.2/max/base.js index 280d061b..c1aad9a0 100644 --- a/dist/3.7.1/max/base.js +++ b/dist/3.7.2/max/base.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/component/iterator.js b/dist/3.7.2/max/component/iterator.js similarity index 96% rename from dist/3.7.1/max/component/iterator.js rename to dist/3.7.2/max/component/iterator.js index 6d2d9c7a..90378983 100644 --- a/dist/3.7.1/max/component/iterator.js +++ b/dist/3.7.2/max/component/iterator.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ _settings: null, _state: null, _constructor: function(data, settings) { - var self = this; - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this); self._settings = modules["function/merge"]({}, defaultSettings, settings || {}); self._state = { length: null, @@ -32,6 +31,7 @@ if (data !== undefined && data !== null) { self.setData(data); } + return self; }, getState: function() { var self = this; diff --git a/dist/3.7.1/max/component/remux.js b/dist/3.7.2/max/component/remux.js similarity index 95% rename from dist/3.7.1/max/component/remux.js rename to dist/3.7.2/max/component/remux.js index 614f2e6c..62464ef3 100644 --- a/dist/3.7.1/max/component/remux.js +++ b/dist/3.7.2/max/component/remux.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -54,11 +54,11 @@ } prototype = modules["emitter"].extend({ _constructor: function() { - var self = this, pBase = parseInt(html.getAttribute("data-base"), 10); - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this), pBase = parseInt(html.getAttribute("data-base"), 10); if (isNaN(pBase) === false) { base = pBase; } + return self; }, getState: function() { return state; diff --git a/dist/3.7.1/max/component/sense.js b/dist/3.7.2/max/component/sense.js similarity index 82% rename from dist/3.7.1/max/component/sense.js rename to dist/3.7.2/max/component/sense.js index fb494aa1..7e865893 100644 --- a/dist/3.7.1/max/component/sense.js +++ b/dist/3.7.2/max/component/sense.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -28,12 +28,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; diff --git a/dist/3.7.1/max/dom/collection.js b/dist/3.7.2/max/dom/collection.js similarity index 99% rename from dist/3.7.1/max/dom/collection.js rename to dist/3.7.2/max/dom/collection.js index 7fdcd93c..72141f28 100644 --- a/dist/3.7.1/max/dom/collection.js +++ b/dist/3.7.2/max/dom/collection.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -59,6 +59,7 @@ if (typeof styles === "object" && styles !== null) { self.setStyles(styles); } + return self; }, get: function(index) { return this.elements[index] || null; diff --git a/dist/3.7.1/max/dom/element.js b/dist/3.7.2/max/dom/element.js similarity index 99% rename from dist/3.7.1/max/dom/element.js rename to dist/3.7.2/max/dom/element.js index 29cb16fc..c4004388 100644 --- a/dist/3.7.1/max/dom/element.js +++ b/dist/3.7.2/max/dom/element.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/dom/element/emerge.js b/dist/3.7.2/max/dom/element/emerge.js similarity index 99% rename from dist/3.7.1/max/dom/element/emerge.js rename to dist/3.7.2/max/dom/element/emerge.js index 728d9370..04971155 100644 --- a/dist/3.7.1/max/dom/element/emerge.js +++ b/dist/3.7.2/max/dom/element/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/dom/element/lazyimage.js b/dist/3.7.2/max/dom/element/lazyimage.js similarity index 96% rename from dist/3.7.1/max/dom/element/lazyimage.js rename to dist/3.7.2/max/dom/element/lazyimage.js index c3930c08..a84dcf8a 100644 --- a/dist/3.7.1/max/dom/element/lazyimage.js +++ b/dist/3.7.2/max/dom/element/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -39,6 +39,7 @@ load.call(self); } }); + return self; } }); return prototype; diff --git a/dist/3.7.1/max/dom/element/shrinkimage.js b/dist/3.7.2/max/dom/element/shrinkimage.js similarity index 97% rename from dist/3.7.1/max/dom/element/shrinkimage.js rename to dist/3.7.2/max/dom/element/shrinkimage.js index e7127ecb..6dfc18ea 100644 --- a/dist/3.7.1/max/dom/element/shrinkimage.js +++ b/dist/3.7.2/max/dom/element/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -127,8 +127,7 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self, foreground, background; - self = prototype._parent._constructor.call(this, element); + var self = prototype._parent._constructor.call(this, element), foreground, background; self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); diff --git a/dist/3.7.1/max/dom/event.js b/dist/3.7.2/max/dom/event.js similarity index 97% rename from dist/3.7.1/max/dom/event.js rename to dist/3.7.2/max/dom/event.js index ef0796bb..8a57094f 100644 --- a/dist/3.7.1/max/dom/event.js +++ b/dist/3.7.2/max/dom/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -24,6 +24,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); diff --git a/dist/3.7.1/max/emitter.js b/dist/3.7.2/max/emitter.js similarity index 98% rename from dist/3.7.1/max/emitter.js rename to dist/3.7.2/max/emitter.js index a2aac40a..d27da22e 100644 --- a/dist/3.7.1/max/emitter.js +++ b/dist/3.7.2/max/emitter.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -37,6 +37,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; diff --git a/dist/3.7.1/max/function/load/css.js b/dist/3.7.2/max/function/load/css.js similarity index 96% rename from dist/3.7.1/max/function/load/css.js rename to dist/3.7.2/max/function/load/css.js index 61238baa..88db6d6f 100644 --- a/dist/3.7.1/max/function/load/css.js +++ b/dist/3.7.2/max/function/load/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/function/merge.js b/dist/3.7.2/max/function/merge.js similarity index 97% rename from dist/3.7.1/max/function/merge.js rename to dist/3.7.2/max/function/merge.js index d0ff1233..e4a76894 100644 --- a/dist/3.7.1/max/function/merge.js +++ b/dist/3.7.2/max/function/merge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/function/proximity.js b/dist/3.7.2/max/function/proximity.js similarity index 97% rename from dist/3.7.1/max/function/proximity.js rename to dist/3.7.2/max/function/proximity.js index d45e7ea3..a0f51b93 100644 --- a/dist/3.7.1/max/function/proximity.js +++ b/dist/3.7.2/max/function/proximity.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/function/unique/string.js b/dist/3.7.2/max/function/unique/string.js similarity index 96% rename from dist/3.7.1/max/function/unique/string.js rename to dist/3.7.2/max/function/unique/string.js index 19507af8..eee99fba 100644 --- a/dist/3.7.1/max/function/unique/string.js +++ b/dist/3.7.2/max/function/unique/string.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/function/unique/uuid.js b/dist/3.7.2/max/function/unique/uuid.js similarity index 95% rename from dist/3.7.1/max/function/unique/uuid.js rename to dist/3.7.2/max/function/unique/uuid.js index db630e5b..16073074 100644 --- a/dist/3.7.1/max/function/unique/uuid.js +++ b/dist/3.7.2/max/function/unique/uuid.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/hook/css.js b/dist/3.7.2/max/hook/css.js similarity index 98% rename from dist/3.7.1/max/hook/css.js rename to dist/3.7.2/max/hook/css.js index b81503ca..75ac4c86 100644 --- a/dist/3.7.1/max/hook/css.js +++ b/dist/3.7.2/max/hook/css.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/hook/event.js b/dist/3.7.2/max/hook/event.js similarity index 99% rename from dist/3.7.1/max/hook/event.js rename to dist/3.7.2/max/hook/event.js index 351994a2..329e1e00 100644 --- a/dist/3.7.1/max/hook/event.js +++ b/dist/3.7.2/max/hook/event.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/jquery/extension/selector.js b/dist/3.7.2/max/jquery/extension/selector.js similarity index 98% rename from dist/3.7.1/max/jquery/extension/selector.js rename to dist/3.7.2/max/jquery/extension/selector.js index d32c4ea2..ec1b2d66 100644 --- a/dist/3.7.1/max/jquery/extension/selector.js +++ b/dist/3.7.2/max/jquery/extension/selector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/jquery/function/prefetch.js b/dist/3.7.2/max/jquery/function/prefetch.js similarity index 96% rename from dist/3.7.1/max/jquery/function/prefetch.js rename to dist/3.7.2/max/jquery/function/prefetch.js index 0080f5bd..ff9dc036 100644 --- a/dist/3.7.1/max/jquery/function/prefetch.js +++ b/dist/3.7.2/max/jquery/function/prefetch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/jquery/plugin/emerge.js b/dist/3.7.2/max/jquery/plugin/emerge.js similarity index 87% rename from dist/3.7.1/max/jquery/plugin/emerge.js rename to dist/3.7.2/max/jquery/plugin/emerge.js index 90925ea4..4f3ccb7a 100644 --- a/dist/3.7.1/max/jquery/plugin/emerge.js +++ b/dist/3.7.2/max/jquery/plugin/emerge.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ }; prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_EMERGED, function(event) { object.trigger(JQUERY_EMERGED, { priority: event.data @@ -30,6 +29,7 @@ self.on(EVENT_DEMERGED, function() { object.trigger(JQUERY_DEMERGED); }); + return self; } }); return prototype; diff --git a/dist/3.7.1/max/jquery/plugin/lazyimage.js b/dist/3.7.2/max/jquery/plugin/lazyimage.js similarity index 86% rename from dist/3.7.1/max/jquery/plugin/lazyimage.js rename to dist/3.7.2/max/jquery/plugin/lazyimage.js index 78f9a379..c51469e8 100644 --- a/dist/3.7.1/max/jquery/plugin/lazyimage.js +++ b/dist/3.7.2/max/jquery/plugin/lazyimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,14 +20,14 @@ }; prototype = modules["dom/element/lazyimage"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_REQUESTED, function() { object.trigger(JQUERY_REQUESTED); }); self.on(EVENT_LOADED, function() { object.trigger(JQUERY_LOADED); }); + return self; } }); return prototype; diff --git a/dist/3.7.1/max/jquery/plugin/shrinkimage.js b/dist/3.7.2/max/jquery/plugin/shrinkimage.js similarity index 89% rename from dist/3.7.1/max/jquery/plugin/shrinkimage.js rename to dist/3.7.2/max/jquery/plugin/shrinkimage.js index 0f7a20bf..28c18dd1 100644 --- a/dist/3.7.1/max/jquery/plugin/shrinkimage.js +++ b/dist/3.7.2/max/jquery/plugin/shrinkimage.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ }; prototype = modules["dom/element/shrinkimage"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_QUEUED, function() { object.trigger(JQUERY_QUEUED); }); @@ -34,6 +33,7 @@ self.on(EVENT_FAILED, function() { object.trigger(JQUERY_FAILED); }); + return self; } }); return prototype; diff --git a/dist/3.7.1/max/particle.js b/dist/3.7.2/max/particle.js similarity index 93% rename from dist/3.7.1/max/particle.js rename to dist/3.7.2/max/particle.js index 8ce498ec..3b5eb9ae 100644 --- a/dist/3.7.1/max/particle.js +++ b/dist/3.7.2/max/particle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,12 +20,13 @@ velocity: null, acceleration: null, _constructor: function(x, y) { + var self = prototype._parent._constructor.call(this); this._velocity = poolVector.obtain(0, 0); this._acceleration = poolVector.obtain(0, 0); this.position = poolVector.obtain(x, y); this.velocity = poolVector.obtain(0, 0); this.acceleration = []; - prototype._parent._constructor.call(this); + return self; }, _obtain: function(x, y) { this.position.x = x || 0; diff --git a/dist/3.7.1/max/polyfill/array/indexof.js b/dist/3.7.2/max/polyfill/array/indexof.js similarity index 94% rename from dist/3.7.1/max/polyfill/array/indexof.js rename to dist/3.7.2/max/polyfill/array/indexof.js index 9b743578..41730585 100644 --- a/dist/3.7.1/max/polyfill/array/indexof.js +++ b/dist/3.7.2/max/polyfill/array/indexof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/document/getelementsbyclassname.js b/dist/3.7.2/max/polyfill/document/getelementsbyclassname.js similarity index 95% rename from dist/3.7.1/max/polyfill/document/getelementsbyclassname.js rename to dist/3.7.2/max/polyfill/document/getelementsbyclassname.js index 9844885b..729468bc 100644 --- a/dist/3.7.1/max/polyfill/document/getelementsbyclassname.js +++ b/dist/3.7.2/max/polyfill/document/getelementsbyclassname.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/document/queryselector.js b/dist/3.7.2/max/polyfill/document/queryselector.js similarity index 95% rename from dist/3.7.1/max/polyfill/document/queryselector.js rename to dist/3.7.2/max/polyfill/document/queryselector.js index 617eaf91..ccbc9787 100644 --- a/dist/3.7.1/max/polyfill/document/queryselector.js +++ b/dist/3.7.2/max/polyfill/document/queryselector.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/document/queryselectorall.js b/dist/3.7.2/max/polyfill/document/queryselectorall.js similarity index 97% rename from dist/3.7.1/max/polyfill/document/queryselectorall.js rename to dist/3.7.2/max/polyfill/document/queryselectorall.js index 637b9d14..e216784c 100644 --- a/dist/3.7.1/max/polyfill/document/queryselectorall.js +++ b/dist/3.7.2/max/polyfill/document/queryselectorall.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/element/matches.js b/dist/3.7.2/max/polyfill/element/matches.js similarity index 96% rename from dist/3.7.1/max/polyfill/element/matches.js rename to dist/3.7.2/max/polyfill/element/matches.js index b2b220ef..f669210f 100644 --- a/dist/3.7.1/max/polyfill/element/matches.js +++ b/dist/3.7.2/max/polyfill/element/matches.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/create.js b/dist/3.7.2/max/polyfill/object/create.js similarity index 97% rename from dist/3.7.1/max/polyfill/object/create.js rename to dist/3.7.2/max/polyfill/object/create.js index 165b38b7..c29c1c86 100644 --- a/dist/3.7.1/max/polyfill/object/create.js +++ b/dist/3.7.2/max/polyfill/object/create.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/defineproperties.js b/dist/3.7.2/max/polyfill/object/defineproperties.js similarity index 97% rename from dist/3.7.1/max/polyfill/object/defineproperties.js rename to dist/3.7.2/max/polyfill/object/defineproperties.js index 74f4a575..741c2753 100644 --- a/dist/3.7.1/max/polyfill/object/defineproperties.js +++ b/dist/3.7.2/max/polyfill/object/defineproperties.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/defineproperty.js b/dist/3.7.2/max/polyfill/object/defineproperty.js similarity index 97% rename from dist/3.7.1/max/polyfill/object/defineproperty.js rename to dist/3.7.2/max/polyfill/object/defineproperty.js index 5f511800..475b0bb6 100644 --- a/dist/3.7.1/max/polyfill/object/defineproperty.js +++ b/dist/3.7.2/max/polyfill/object/defineproperty.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js b/dist/3.7.2/max/polyfill/object/getownpropertydescriptor.js similarity index 97% rename from dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js rename to dist/3.7.2/max/polyfill/object/getownpropertydescriptor.js index 8dac0b97..6523c138 100644 --- a/dist/3.7.1/max/polyfill/object/getownpropertydescriptor.js +++ b/dist/3.7.2/max/polyfill/object/getownpropertydescriptor.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/getownpropertynames.js b/dist/3.7.2/max/polyfill/object/getownpropertynames.js similarity index 96% rename from dist/3.7.1/max/polyfill/object/getownpropertynames.js rename to dist/3.7.2/max/polyfill/object/getownpropertynames.js index dd6a701f..d10d97c2 100644 --- a/dist/3.7.1/max/polyfill/object/getownpropertynames.js +++ b/dist/3.7.2/max/polyfill/object/getownpropertynames.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/getprototypeof.js b/dist/3.7.2/max/polyfill/object/getprototypeof.js similarity index 96% rename from dist/3.7.1/max/polyfill/object/getprototypeof.js rename to dist/3.7.2/max/polyfill/object/getprototypeof.js index fa5095a7..acea70ab 100644 --- a/dist/3.7.1/max/polyfill/object/getprototypeof.js +++ b/dist/3.7.2/max/polyfill/object/getprototypeof.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/object/keys.js b/dist/3.7.2/max/polyfill/object/keys.js similarity index 95% rename from dist/3.7.1/max/polyfill/object/keys.js rename to dist/3.7.2/max/polyfill/object/keys.js index 9461eb1c..afe1ae8a 100644 --- a/dist/3.7.1/max/polyfill/object/keys.js +++ b/dist/3.7.2/max/polyfill/object/keys.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/string/lcfirst.js b/dist/3.7.2/max/polyfill/string/lcfirst.js similarity index 93% rename from dist/3.7.1/max/polyfill/string/lcfirst.js rename to dist/3.7.2/max/polyfill/string/lcfirst.js index bc86b9cf..269b92e0 100644 --- a/dist/3.7.1/max/polyfill/string/lcfirst.js +++ b/dist/3.7.2/max/polyfill/string/lcfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/string/trim.js b/dist/3.7.2/max/polyfill/string/trim.js similarity index 93% rename from dist/3.7.1/max/polyfill/string/trim.js rename to dist/3.7.2/max/polyfill/string/trim.js index 5fad6d52..7d68cc8f 100644 --- a/dist/3.7.1/max/polyfill/string/trim.js +++ b/dist/3.7.2/max/polyfill/string/trim.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/string/ucfirst.js b/dist/3.7.2/max/polyfill/string/ucfirst.js similarity index 93% rename from dist/3.7.1/max/polyfill/string/ucfirst.js rename to dist/3.7.2/max/polyfill/string/ucfirst.js index c5454c05..82437491 100644 --- a/dist/3.7.1/max/polyfill/string/ucfirst.js +++ b/dist/3.7.2/max/polyfill/string/ucfirst.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/addeventlistener.js b/dist/3.7.2/max/polyfill/window/addeventlistener.js similarity index 98% rename from dist/3.7.1/max/polyfill/window/addeventlistener.js rename to dist/3.7.2/max/polyfill/window/addeventlistener.js index f5aba1df..1dc5cbf1 100644 --- a/dist/3.7.1/max/polyfill/window/addeventlistener.js +++ b/dist/3.7.2/max/polyfill/window/addeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/customevent.js b/dist/3.7.2/max/polyfill/window/customevent.js similarity index 97% rename from dist/3.7.1/max/polyfill/window/customevent.js rename to dist/3.7.2/max/polyfill/window/customevent.js index 533208cc..739be3b3 100644 --- a/dist/3.7.1/max/polyfill/window/customevent.js +++ b/dist/3.7.2/max/polyfill/window/customevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/dispatchevent.js b/dist/3.7.2/max/polyfill/window/dispatchevent.js similarity index 98% rename from dist/3.7.1/max/polyfill/window/dispatchevent.js rename to dist/3.7.2/max/polyfill/window/dispatchevent.js index fde8b483..737fbb45 100644 --- a/dist/3.7.1/max/polyfill/window/dispatchevent.js +++ b/dist/3.7.2/max/polyfill/window/dispatchevent.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/getcomputedstyle.js b/dist/3.7.2/max/polyfill/window/getcomputedstyle.js similarity index 96% rename from dist/3.7.1/max/polyfill/window/getcomputedstyle.js rename to dist/3.7.2/max/polyfill/window/getcomputedstyle.js index de9feeb7..b268972b 100644 --- a/dist/3.7.1/max/polyfill/window/getcomputedstyle.js +++ b/dist/3.7.2/max/polyfill/window/getcomputedstyle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/matchmedia.js b/dist/3.7.2/max/polyfill/window/matchmedia.js similarity index 99% rename from dist/3.7.1/max/polyfill/window/matchmedia.js rename to dist/3.7.2/max/polyfill/window/matchmedia.js index 4673a1da..2c03a37a 100644 --- a/dist/3.7.1/max/polyfill/window/matchmedia.js +++ b/dist/3.7.2/max/polyfill/window/matchmedia.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/promise.js b/dist/3.7.2/max/polyfill/window/promise.js similarity index 99% rename from dist/3.7.1/max/polyfill/window/promise.js rename to dist/3.7.2/max/polyfill/window/promise.js index 29cdf9f0..d0304424 100644 --- a/dist/3.7.1/max/polyfill/window/promise.js +++ b/dist/3.7.2/max/polyfill/window/promise.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/polyfill/window/removeeventlistener.js b/dist/3.7.2/max/polyfill/window/removeeventlistener.js similarity index 97% rename from dist/3.7.1/max/polyfill/window/removeeventlistener.js rename to dist/3.7.2/max/polyfill/window/removeeventlistener.js index 95fd82da..5550e4ee 100644 --- a/dist/3.7.1/max/polyfill/window/removeeventlistener.js +++ b/dist/3.7.2/max/polyfill/window/removeeventlistener.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/pool.js b/dist/3.7.2/max/pool.js similarity index 98% rename from dist/3.7.1/max/pool.js rename to dist/3.7.2/max/pool.js index c5281501..018533dc 100644 --- a/dist/3.7.1/max/pool.js +++ b/dist/3.7.2/max/pool.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -78,6 +78,7 @@ setInterval(function() { processQueue.call(self); }, self._settings.interval); + return self; }, _initPool: function() { return []; diff --git a/dist/3.7.1/max/pool/array.js b/dist/3.7.2/max/pool/array.js similarity index 94% rename from dist/3.7.1/max/pool/array.js rename to dist/3.7.2/max/pool/array.js index 2ccf75b1..8a68be66 100644 --- a/dist/3.7.1/max/pool/array.js +++ b/dist/3.7.2/max/pool/array.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/pool/dom.js b/dist/3.7.2/max/pool/dom.js similarity index 97% rename from dist/3.7.1/max/pool/dom.js rename to dist/3.7.2/max/pool/dom.js index 40127a0f..ed62319c 100644 --- a/dist/3.7.1/max/pool/dom.js +++ b/dist/3.7.2/max/pool/dom.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/pool/module.js b/dist/3.7.2/max/pool/module.js similarity index 91% rename from dist/3.7.1/max/pool/module.js rename to dist/3.7.2/max/pool/module.js index 4a065850..980fcd78 100644 --- a/dist/3.7.1/max/pool/module.js +++ b/dist/3.7.2/max/pool/module.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -21,7 +21,7 @@ if (useShared === true && pointer[uuid]) { return pointer[uuid]; } else { - prototype._parent._constructor.call(self, options); + self = prototype._parent._constructor.call(this, options); self._module = module; if (typeof module._destroy === "function") { self._destroy = function(element) { @@ -32,6 +32,7 @@ pointer[uuid] = self; } } + return self; }, _dispose: function(element) { return element; diff --git a/dist/3.7.1/max/pool/object.js b/dist/3.7.2/max/pool/object.js similarity index 97% rename from dist/3.7.1/max/pool/object.js rename to dist/3.7.2/max/pool/object.js index 80136816..88bc1d58 100644 --- a/dist/3.7.1/max/pool/object.js +++ b/dist/3.7.2/max/pool/object.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/promise/all.js b/dist/3.7.2/max/promise/all.js similarity index 97% rename from dist/3.7.1/max/promise/all.js rename to dist/3.7.2/max/promise/all.js index 0724bb7c..9685f201 100644 --- a/dist/3.7.1/max/promise/all.js +++ b/dist/3.7.2/max/promise/all.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/promise/defer.js b/dist/3.7.2/max/promise/defer.js similarity index 94% rename from dist/3.7.1/max/promise/defer.js rename to dist/3.7.2/max/promise/defer.js index 564415d0..57d976cc 100644 --- a/dist/3.7.1/max/promise/defer.js +++ b/dist/3.7.2/max/promise/defer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/promise/race.js b/dist/3.7.2/max/promise/race.js similarity index 96% rename from dist/3.7.1/max/promise/race.js rename to dist/3.7.2/max/promise/race.js index bc9d5661..ca9d269e 100644 --- a/dist/3.7.1/max/promise/race.js +++ b/dist/3.7.2/max/promise/race.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/proxy.js b/dist/3.7.2/max/proxy.js similarity index 95% rename from dist/3.7.1/max/proxy.js rename to dist/3.7.2/max/proxy.js index afc6920b..9f37c22f 100644 --- a/dist/3.7.1/max/proxy.js +++ b/dist/3.7.2/max/proxy.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/renderer.js b/dist/3.7.2/max/renderer.js similarity index 95% rename from dist/3.7.1/max/renderer.js rename to dist/3.7.2/max/renderer.js index 824f6f7b..f127e249 100644 --- a/dist/3.7.1/max/renderer.js +++ b/dist/3.7.2/max/renderer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -45,8 +45,7 @@ paused: false, _tick: null, _constructor: function() { - var self = this; - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this); timeStart = timeLast = new Date().getTime(); self._tick = function() { if (self.paused === false) { @@ -68,6 +67,7 @@ onVisibilityChange.call(self); }); onVisibilityChange.call(self); + return self; } }); return prototype; diff --git a/dist/3.7.1/max/support.js b/dist/3.7.2/max/support.js similarity index 99% rename from dist/3.7.1/max/support.js rename to dist/3.7.2/max/support.js index 7667d262..5ae7af94 100644 --- a/dist/3.7.1/max/support.js +++ b/dist/3.7.2/max/support.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/capability/datauri.js b/dist/3.7.2/max/support/capability/datauri.js similarity index 96% rename from dist/3.7.1/max/support/capability/datauri.js rename to dist/3.7.2/max/support/capability/datauri.js index fc2b1637..0b594465 100644 --- a/dist/3.7.1/max/support/capability/datauri.js +++ b/dist/3.7.2/max/support/capability/datauri.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/capability/touch.js b/dist/3.7.2/max/support/capability/touch.js similarity index 94% rename from dist/3.7.1/max/support/capability/touch.js rename to dist/3.7.2/max/support/capability/touch.js index 77b8c4fa..960393e4 100644 --- a/dist/3.7.1/max/support/capability/touch.js +++ b/dist/3.7.2/max/support/capability/touch.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/borderradius.js b/dist/3.7.2/max/support/css/borderradius.js similarity index 94% rename from dist/3.7.1/max/support/css/borderradius.js rename to dist/3.7.2/max/support/css/borderradius.js index ba3fc165..2532c163 100644 --- a/dist/3.7.1/max/support/css/borderradius.js +++ b/dist/3.7.2/max/support/css/borderradius.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/boxshadow.js b/dist/3.7.2/max/support/css/boxshadow.js similarity index 93% rename from dist/3.7.1/max/support/css/boxshadow.js rename to dist/3.7.2/max/support/css/boxshadow.js index 87400548..3f67e2f5 100644 --- a/dist/3.7.1/max/support/css/boxshadow.js +++ b/dist/3.7.2/max/support/css/boxshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/rem.js b/dist/3.7.2/max/support/css/rem.js similarity index 95% rename from dist/3.7.1/max/support/css/rem.js rename to dist/3.7.2/max/support/css/rem.js index fbd85155..da54a0bb 100644 --- a/dist/3.7.1/max/support/css/rem.js +++ b/dist/3.7.2/max/support/css/rem.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/rgba.js b/dist/3.7.2/max/support/css/rgba.js similarity index 95% rename from dist/3.7.1/max/support/css/rgba.js rename to dist/3.7.2/max/support/css/rgba.js index b5e83a0c..561ea118 100644 --- a/dist/3.7.1/max/support/css/rgba.js +++ b/dist/3.7.2/max/support/css/rgba.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/textshadow.js b/dist/3.7.2/max/support/css/textshadow.js similarity index 93% rename from dist/3.7.1/max/support/css/textshadow.js rename to dist/3.7.2/max/support/css/textshadow.js index fa819de7..e9bc284c 100644 --- a/dist/3.7.1/max/support/css/textshadow.js +++ b/dist/3.7.2/max/support/css/textshadow.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/transform.js b/dist/3.7.2/max/support/css/transform.js similarity index 93% rename from dist/3.7.1/max/support/css/transform.js rename to dist/3.7.2/max/support/css/transform.js index 72830267..6393d0bf 100644 --- a/dist/3.7.1/max/support/css/transform.js +++ b/dist/3.7.2/max/support/css/transform.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/transform/2d.js b/dist/3.7.2/max/support/css/transform/2d.js similarity index 96% rename from dist/3.7.1/max/support/css/transform/2d.js rename to dist/3.7.2/max/support/css/transform/2d.js index a1ca6a23..ed711feb 100644 --- a/dist/3.7.1/max/support/css/transform/2d.js +++ b/dist/3.7.2/max/support/css/transform/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/transform/3d.js b/dist/3.7.2/max/support/css/transform/3d.js similarity index 96% rename from dist/3.7.1/max/support/css/transform/3d.js rename to dist/3.7.2/max/support/css/transform/3d.js index 4e63c93a..50076efa 100644 --- a/dist/3.7.1/max/support/css/transform/3d.js +++ b/dist/3.7.2/max/support/css/transform/3d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/css/transition.js b/dist/3.7.2/max/support/css/transition.js similarity index 93% rename from dist/3.7.1/max/support/css/transition.js rename to dist/3.7.2/max/support/css/transition.js index 72ad5e67..2fee1bf4 100644 --- a/dist/3.7.1/max/support/css/transition.js +++ b/dist/3.7.2/max/support/css/transition.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/canvas.js b/dist/3.7.2/max/support/element/canvas.js similarity index 94% rename from dist/3.7.1/max/support/element/canvas.js rename to dist/3.7.2/max/support/element/canvas.js index 1b280eb9..559352b2 100644 --- a/dist/3.7.1/max/support/element/canvas.js +++ b/dist/3.7.2/max/support/element/canvas.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/canvas/todataurl.js b/dist/3.7.2/max/support/element/canvas/todataurl.js similarity index 95% rename from dist/3.7.1/max/support/element/canvas/todataurl.js rename to dist/3.7.2/max/support/element/canvas/todataurl.js index 3e0f476c..b099a769 100644 --- a/dist/3.7.1/max/support/element/canvas/todataurl.js +++ b/dist/3.7.2/max/support/element/canvas/todataurl.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js b/dist/3.7.2/max/support/element/canvas/todataurl/jpeg.js similarity index 96% rename from dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js rename to dist/3.7.2/max/support/element/canvas/todataurl/jpeg.js index e425edc3..d3c1fe16 100644 --- a/dist/3.7.1/max/support/element/canvas/todataurl/jpeg.js +++ b/dist/3.7.2/max/support/element/canvas/todataurl/jpeg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/canvas/todataurl/png.js b/dist/3.7.2/max/support/element/canvas/todataurl/png.js similarity index 96% rename from dist/3.7.1/max/support/element/canvas/todataurl/png.js rename to dist/3.7.2/max/support/element/canvas/todataurl/png.js index b552be3e..5635ebb4 100644 --- a/dist/3.7.1/max/support/element/canvas/todataurl/png.js +++ b/dist/3.7.2/max/support/element/canvas/todataurl/png.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/canvas/todataurl/webp.js b/dist/3.7.2/max/support/element/canvas/todataurl/webp.js similarity index 96% rename from dist/3.7.1/max/support/element/canvas/todataurl/webp.js rename to dist/3.7.2/max/support/element/canvas/todataurl/webp.js index d35bf642..bd240998 100644 --- a/dist/3.7.1/max/support/element/canvas/todataurl/webp.js +++ b/dist/3.7.2/max/support/element/canvas/todataurl/webp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/svg.js b/dist/3.7.2/max/support/element/svg.js similarity index 93% rename from dist/3.7.1/max/support/element/svg.js rename to dist/3.7.2/max/support/element/svg.js index 09f1f040..84c645b3 100644 --- a/dist/3.7.1/max/support/element/svg.js +++ b/dist/3.7.2/max/support/element/svg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/video.js b/dist/3.7.2/max/support/element/video.js similarity index 94% rename from dist/3.7.1/max/support/element/video.js rename to dist/3.7.2/max/support/element/video.js index a8eeda60..8380141d 100644 --- a/dist/3.7.1/max/support/element/video.js +++ b/dist/3.7.2/max/support/element/video.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/video/mp4.js b/dist/3.7.2/max/support/element/video/mp4.js similarity index 95% rename from dist/3.7.1/max/support/element/video/mp4.js rename to dist/3.7.2/max/support/element/video/mp4.js index 40a3f87a..8cba6629 100644 --- a/dist/3.7.1/max/support/element/video/mp4.js +++ b/dist/3.7.2/max/support/element/video/mp4.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/video/ogg.js b/dist/3.7.2/max/support/element/video/ogg.js similarity index 95% rename from dist/3.7.1/max/support/element/video/ogg.js rename to dist/3.7.2/max/support/element/video/ogg.js index 901e80ac..72db763b 100644 --- a/dist/3.7.1/max/support/element/video/ogg.js +++ b/dist/3.7.2/max/support/element/video/ogg.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/support/element/video/webm.js b/dist/3.7.2/max/support/element/video/webm.js similarity index 95% rename from dist/3.7.1/max/support/element/video/webm.js rename to dist/3.7.2/max/support/element/video/webm.js index e8fa8292..2e0dc01a 100644 --- a/dist/3.7.1/max/support/element/video/webm.js +++ b/dist/3.7.2/max/support/element/video/webm.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/transport.js b/dist/3.7.2/max/transport.js similarity index 96% rename from dist/3.7.1/max/transport.js rename to dist/3.7.2/max/transport.js index d6624f2f..702a770c 100644 --- a/dist/3.7.1/max/transport.js +++ b/dist/3.7.2/max/transport.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/transport/jsonp.js b/dist/3.7.2/max/transport/jsonp.js similarity index 98% rename from dist/3.7.1/max/transport/jsonp.js rename to dist/3.7.2/max/transport/jsonp.js index bd28a906..a07cd687 100644 --- a/dist/3.7.1/max/transport/jsonp.js +++ b/dist/3.7.2/max/transport/jsonp.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/transport/xhr.js b/dist/3.7.2/max/transport/xhr.js similarity index 99% rename from dist/3.7.1/max/transport/xhr.js rename to dist/3.7.2/max/transport/xhr.js index c804864a..3428856e 100644 --- a/dist/3.7.1/max/transport/xhr.js +++ b/dist/3.7.2/max/transport/xhr.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/url.js b/dist/3.7.2/max/url.js similarity index 97% rename from dist/3.7.1/max/url.js rename to dist/3.7.2/max/url.js index bc98d35e..ae82c83e 100644 --- a/dist/3.7.1/max/url.js +++ b/dist/3.7.2/max/url.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.1/max/vector/2d.js b/dist/3.7.2/max/vector/2d.js similarity index 97% rename from dist/3.7.1/max/vector/2d.js rename to dist/3.7.2/max/vector/2d.js index 9b23bc4f..0186c9d4 100644 --- a/dist/3.7.1/max/vector/2d.js +++ b/dist/3.7.2/max/vector/2d.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -23,6 +23,7 @@ this._temp.y = 0; this.x = x || 0; this.y = y || 0; + return this; }, _obtain: function(x, y) { this.x = x || 0; diff --git a/dist/3.7.1/max/widget/image/adapt.js b/dist/3.7.2/max/widget/image/adapt.js similarity index 95% rename from dist/3.7.1/max/widget/image/adapt.js rename to dist/3.7.2/max/widget/image/adapt.js index c26a2f87..51b9c5bb 100644 --- a/dist/3.7.1/max/widget/image/adapt.js +++ b/dist/3.7.2/max/widget/image/adapt.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -70,8 +70,7 @@ _image: null, _caption: null, _constructor: function(element, settings) { - var self = this, defaultRatio, sources, i = 0, source, caption; - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), defaultRatio, sources, i = 0, source, caption; defaultRatio = parseFloat(self.getAttribute("data-ratio") || 1); sources = self.find('[itemprop="source"],[itemprop="contentUrl"]'); self._candidates = []; @@ -100,6 +99,7 @@ checkCandidates.call(self); }); storage.push(self); + return self; } }); mDomElement.create(window).on("resize orientationchange", delayOnResize); diff --git a/dist/3.7.1/max/worker.js b/dist/3.7.2/max/worker.js similarity index 98% rename from dist/3.7.1/max/worker.js rename to dist/3.7.2/max/worker.js index b7a2fa94..414c0e66 100644 --- a/dist/3.7.1/max/worker.js +++ b/dist/3.7.2/max/worker.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/3.7.2/min/asset.js b/dist/3.7.2/min/asset.js new file mode 100644 index 00000000..e8217324 --- /dev/null +++ b/dist/3.7.2/min/asset.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,n,i,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(n){var u=n.data,a=o.id,c=o.version,l=o.storage;e.emit("loaded",r,a,c,u),l&&(i.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=s._parent._constructor.call(this),n=p(),i=d[n]={dfd:new g,url:e};return r._uuid=n,o&&t&&(i.id=o,i.version=t,i.cookie=encodeURIComponent("qoopido[asset]["+o.replace(h,"][")+"]"),i.storage={version:"@"+o,value:"©"+o}),r},fetch:function(){var e=this,o=d[e._uuid],t=o.dfd,r=o.url,n=o.id,i=o.version,u=o.storage,c=u&&u.version&&localStorage[u.version];if(c&&c>=i){var l=localStorage[o.storage.value];e.emit("hit",r,n,i,l),t.resolve(l)}else e.emit("miss",r,n,i),a(e);return t.promise},clear:function(){var e=this,o=d[e._uuid],t=o.storage;return t&&(i.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.1/min/base.js b/dist/3.7.2/min/base.js similarity index 96% rename from dist/3.7.1/min/base.js rename to dist/3.7.2/min/base.js index 08e757c5..9dcc288a 100644 --- a/dist/3.7.1/min/base.js +++ b/dist/3.7.2/min/base.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.2/min/component/iterator.js b/dist/3.7.2/min/component/iterator.js new file mode 100644 index 00000000..a831e584 --- /dev/null +++ b/dist/3.7.2/min/component/iterator.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this);return s._settings=t["function/merge"]({},l,n||{}),s._state={length:null,index:null,item:null,data:null},e!==r&&null!==e&&s.setData(e),s},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.2/min/component/remux.js b/dist/3.7.2/min/component/remux.js new file mode 100644 index 00000000..542e7509 --- /dev/null +++ b/dist/3.7.2/min/component/remux.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=l._parent._constructor.call(this),n=parseInt(c.getAttribute("data-base"),10);return isNaN(n)===!1&&(f=n),t},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.2/min/component/sense.js b/dist/3.7.2/min/component/sense.js new file mode 100644 index 00000000..c39ef8a7 --- /dev/null +++ b/dist/3.7.2/min/component/sense.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,r,o){"use strict";function a(){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=m._parent._constructor.call(this),n=e.mql=s[t]||(s[t]=c.matchMedia(t)),i=function(){a.call(e)};return n.addListener(i),c.setTimeout(i,0),e},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/dist/3.7.2/min/dom/collection.js b/dist/3.7.2/min/dom/collection.js new file mode 100644 index 00000000..a2e321ea --- /dev/null +++ b/dist/3.7.2/min/dom/collection.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return"object"==typeof t&&null!==t&&a.setAttributes(t),"object"==typeof n&&null!==n&&a.setStyles(n),a},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.2/min/dom/element.js similarity index 99% rename from dist/3.7.1/min/dom/element.js rename to dist/3.7.2/min/dom/element.js index 4d5be497..88f1f57c 100644 --- a/dist/3.7.1/min/dom/element.js +++ b/dist/3.7.2/min/dom/element.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/dom/element/emerge.js b/dist/3.7.2/min/dom/element/emerge.js similarity index 97% rename from dist/3.7.1/min/dom/element/emerge.js rename to dist/3.7.2/min/dom/element/emerge.js index 844f4cbc..f2b2056b 100644 --- a/dist/3.7.1/min/dom/element/emerge.js +++ b/dist/3.7.2/min/dom/element/emerge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/dom/element/lazyimage.js b/dist/3.7.2/min/dom/element/lazyimage.js similarity index 76% rename from dist/3.7.1/min/dom/element/lazyimage.js rename to dist/3.7.2/min/dom/element/lazyimage.js index f9697a4e..50c74290 100644 --- a/dist/3.7.1/min/dom/element/lazyimage.js +++ b/dist/3.7.2/min/dom/element/lazyimage.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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||{}));return n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))}),n}})}); \ No newline at end of file diff --git a/dist/3.7.1/min/dom/element/shrinkimage.js b/dist/3.7.2/min/dom/element/shrinkimage.js similarity index 79% rename from dist/3.7.1/min/dom/element/shrinkimage.js rename to dist/3.7.2/min/dom/element/shrinkimage.js index 8ff72895..4d1c32f4 100644 --- a/dist/3.7.1/min/dom/element/shrinkimage.js +++ b/dist/3.7.2/min/dom/element/shrinkimage.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=d._parent._constructor.call(this,e);return 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),r},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.2/min/dom/event.js b/dist/3.7.2/min/dom/event.js new file mode 100644 index 00000000..07030c20 --- /dev/null +++ b/dist/3.7.2/min/dom/event.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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.2/min/emitter.js b/dist/3.7.2/min/emitter.js new file mode 100644 index 00000000..1b174581 --- /dev/null +++ b/dist/3.7.2/min/emitter.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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.1/min/function/load/css.js b/dist/3.7.2/min/function/load/css.js similarity index 86% rename from dist/3.7.1/min/function/load/css.js rename to dist/3.7.2/min/function/load/css.js index d218b2c1..d4d785cb 100644 --- a/dist/3.7.1/min/function/load/css.js +++ b/dist/3.7.2/min/function/load/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/function/merge.js b/dist/3.7.2/min/function/merge.js similarity index 86% rename from dist/3.7.1/min/function/merge.js rename to dist/3.7.2/min/function/merge.js index 85cbeafe..61312fa3 100644 --- a/dist/3.7.1/min/function/merge.js +++ b/dist/3.7.2/min/function/merge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/function/proximity.js b/dist/3.7.2/min/function/proximity.js similarity index 89% rename from dist/3.7.1/min/function/proximity.js rename to dist/3.7.2/min/function/proximity.js index 96692526..6516299a 100644 --- a/dist/3.7.1/min/function/proximity.js +++ b/dist/3.7.2/min/function/proximity.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/function/unique/string.js b/dist/3.7.2/min/function/unique/string.js similarity index 86% rename from dist/3.7.1/min/function/unique/string.js rename to dist/3.7.2/min/function/unique/string.js index 199e2b10..bd8e2c4b 100644 --- a/dist/3.7.1/min/function/unique/string.js +++ b/dist/3.7.2/min/function/unique/string.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/function/unique/uuid.js b/dist/3.7.2/min/function/unique/uuid.js similarity index 86% rename from dist/3.7.1/min/function/unique/uuid.js rename to dist/3.7.2/min/function/unique/uuid.js index 9f354218..75a643d8 100644 --- a/dist/3.7.1/min/function/unique/uuid.js +++ b/dist/3.7.2/min/function/unique/uuid.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/hook/css.js b/dist/3.7.2/min/hook/css.js similarity index 93% rename from dist/3.7.1/min/hook/css.js rename to dist/3.7.2/min/hook/css.js index cff60026..211c05a8 100644 --- a/dist/3.7.1/min/hook/css.js +++ b/dist/3.7.2/min/hook/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/hook/event.js b/dist/3.7.2/min/hook/event.js similarity index 96% rename from dist/3.7.1/min/hook/event.js rename to dist/3.7.2/min/hook/event.js index e3879b1e..330fb477 100644 --- a/dist/3.7.1/min/hook/event.js +++ b/dist/3.7.2/min/hook/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/jquery/extension/selector.js b/dist/3.7.2/min/jquery/extension/selector.js similarity index 95% rename from dist/3.7.1/min/jquery/extension/selector.js rename to dist/3.7.2/min/jquery/extension/selector.js index 8ea283b1..78326c2a 100644 --- a/dist/3.7.1/min/jquery/extension/selector.js +++ b/dist/3.7.2/min/jquery/extension/selector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/jquery/function/prefetch.js b/dist/3.7.2/min/jquery/function/prefetch.js similarity index 88% rename from dist/3.7.1/min/jquery/function/prefetch.js rename to dist/3.7.2/min/jquery/function/prefetch.js index b63e5d4e..36c29d60 100644 --- a/dist/3.7.1/min/jquery/function/prefetch.js +++ b/dist/3.7.2/min/jquery/function/prefetch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/jquery/plugin/emerge.js b/dist/3.7.2/min/jquery/plugin/emerge.js similarity index 66% rename from dist/3.7.1/min/jquery/plugin/emerge.js rename to dist/3.7.2/min/jquery/plugin/emerge.js index 27e7a3e7..d6240c9f 100644 --- a/dist/3.7.1/min/jquery/plugin/emerge.js +++ b/dist/3.7.2/min/jquery/plugin/emerge.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,e,r),n=g(e);return t.on(d,function(e){n.trigger(s,{priority:e.data})}),t.on(m,function(){n.trigger(f)}),t}})}); \ No newline at end of file diff --git a/dist/3.7.1/min/jquery/plugin/lazyimage.js b/dist/3.7.2/min/jquery/plugin/lazyimage.js similarity index 68% rename from dist/3.7.1/min/jquery/plugin/lazyimage.js rename to dist/3.7.2/min/jquery/plugin/lazyimage.js index 04458c70..c1908629 100644 --- a/dist/3.7.1/min/jquery/plugin/lazyimage.js +++ b/dist/3.7.2/min/jquery/plugin/lazyimage.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,e,n),r=a(e);return t.on(g,function(){r.trigger(d)}),t.on(l,function(){r.trigger(f)}),t}})}); \ No newline at end of file diff --git a/dist/3.7.1/min/jquery/plugin/shrinkimage.js b/dist/3.7.2/min/jquery/plugin/shrinkimage.js similarity index 64% rename from dist/3.7.1/min/jquery/plugin/shrinkimage.js rename to dist/3.7.2/min/jquery/plugin/shrinkimage.js index a5e1faba..6db8a6e3 100644 --- a/dist/3.7.1/min/jquery/plugin/shrinkimage.js +++ b/dist/3.7.2/min/jquery/plugin/shrinkimage.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,n,t),r=a(n);return 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)}),e}})}); \ No newline at end of file diff --git a/dist/3.7.2/min/particle.js b/dist/3.7.2/min/particle.js new file mode 100644 index 00000000..1f452cae --- /dev/null +++ b/dist/3.7.2/min/particle.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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){var o=l._parent._constructor.call(this);return 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=[],o},_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.1/min/polyfill/array/indexof.js b/dist/3.7.2/min/polyfill/array/indexof.js similarity index 82% rename from dist/3.7.1/min/polyfill/array/indexof.js rename to dist/3.7.2/min/polyfill/array/indexof.js index e9583b4a..40231f06 100644 --- a/dist/3.7.1/min/polyfill/array/indexof.js +++ b/dist/3.7.2/min/polyfill/array/indexof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/document/getelementsbyclassname.js b/dist/3.7.2/min/polyfill/document/getelementsbyclassname.js similarity index 86% rename from dist/3.7.1/min/polyfill/document/getelementsbyclassname.js rename to dist/3.7.2/min/polyfill/document/getelementsbyclassname.js index a08f6ddd..b7011332 100644 --- a/dist/3.7.1/min/polyfill/document/getelementsbyclassname.js +++ b/dist/3.7.2/min/polyfill/document/getelementsbyclassname.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/document/queryselector.js b/dist/3.7.2/min/polyfill/document/queryselector.js similarity index 84% rename from dist/3.7.1/min/polyfill/document/queryselector.js rename to dist/3.7.2/min/polyfill/document/queryselector.js index 3d916f46..c31f26ce 100644 --- a/dist/3.7.1/min/polyfill/document/queryselector.js +++ b/dist/3.7.2/min/polyfill/document/queryselector.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/document/queryselectorall.js b/dist/3.7.2/min/polyfill/document/queryselectorall.js similarity index 90% rename from dist/3.7.1/min/polyfill/document/queryselectorall.js rename to dist/3.7.2/min/polyfill/document/queryselectorall.js index af7af0a5..fe844f33 100644 --- a/dist/3.7.1/min/polyfill/document/queryselectorall.js +++ b/dist/3.7.2/min/polyfill/document/queryselectorall.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/element/matches.js b/dist/3.7.2/min/polyfill/element/matches.js similarity index 89% rename from dist/3.7.1/min/polyfill/element/matches.js rename to dist/3.7.2/min/polyfill/element/matches.js index 0d774cef..700a87c9 100644 --- a/dist/3.7.1/min/polyfill/element/matches.js +++ b/dist/3.7.2/min/polyfill/element/matches.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/create.js b/dist/3.7.2/min/polyfill/object/create.js similarity index 90% rename from dist/3.7.1/min/polyfill/object/create.js rename to dist/3.7.2/min/polyfill/object/create.js index 0dadea7c..7c24a73b 100644 --- a/dist/3.7.1/min/polyfill/object/create.js +++ b/dist/3.7.2/min/polyfill/object/create.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/defineproperties.js b/dist/3.7.2/min/polyfill/object/defineproperties.js similarity index 91% rename from dist/3.7.1/min/polyfill/object/defineproperties.js rename to dist/3.7.2/min/polyfill/object/defineproperties.js index cf271ca5..93c41332 100644 --- a/dist/3.7.1/min/polyfill/object/defineproperties.js +++ b/dist/3.7.2/min/polyfill/object/defineproperties.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/defineproperty.js b/dist/3.7.2/min/polyfill/object/defineproperty.js similarity index 92% rename from dist/3.7.1/min/polyfill/object/defineproperty.js rename to dist/3.7.2/min/polyfill/object/defineproperty.js index d983a8f3..f09b0fc3 100644 --- a/dist/3.7.1/min/polyfill/object/defineproperty.js +++ b/dist/3.7.2/min/polyfill/object/defineproperty.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/getownpropertydescriptor.js b/dist/3.7.2/min/polyfill/object/getownpropertydescriptor.js similarity index 91% rename from dist/3.7.1/min/polyfill/object/getownpropertydescriptor.js rename to dist/3.7.2/min/polyfill/object/getownpropertydescriptor.js index e6bc2d59..3bb2e16e 100644 --- a/dist/3.7.1/min/polyfill/object/getownpropertydescriptor.js +++ b/dist/3.7.2/min/polyfill/object/getownpropertydescriptor.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/getownpropertynames.js b/dist/3.7.2/min/polyfill/object/getownpropertynames.js similarity index 89% rename from dist/3.7.1/min/polyfill/object/getownpropertynames.js rename to dist/3.7.2/min/polyfill/object/getownpropertynames.js index 9e89446a..181a55f9 100644 --- a/dist/3.7.1/min/polyfill/object/getownpropertynames.js +++ b/dist/3.7.2/min/polyfill/object/getownpropertynames.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/getprototypeof.js b/dist/3.7.2/min/polyfill/object/getprototypeof.js similarity index 88% rename from dist/3.7.1/min/polyfill/object/getprototypeof.js rename to dist/3.7.2/min/polyfill/object/getprototypeof.js index 35c44c9c..d8077c43 100644 --- a/dist/3.7.1/min/polyfill/object/getprototypeof.js +++ b/dist/3.7.2/min/polyfill/object/getprototypeof.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/object/keys.js b/dist/3.7.2/min/polyfill/object/keys.js similarity index 84% rename from dist/3.7.1/min/polyfill/object/keys.js rename to dist/3.7.2/min/polyfill/object/keys.js index 6c36a79c..b61ba9ed 100644 --- a/dist/3.7.1/min/polyfill/object/keys.js +++ b/dist/3.7.2/min/polyfill/object/keys.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/string/lcfirst.js b/dist/3.7.2/min/polyfill/string/lcfirst.js similarity index 82% rename from dist/3.7.1/min/polyfill/string/lcfirst.js rename to dist/3.7.2/min/polyfill/string/lcfirst.js index 59a759eb..5b9ca786 100644 --- a/dist/3.7.1/min/polyfill/string/lcfirst.js +++ b/dist/3.7.2/min/polyfill/string/lcfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/string/trim.js b/dist/3.7.2/min/polyfill/string/trim.js similarity index 83% rename from dist/3.7.1/min/polyfill/string/trim.js rename to dist/3.7.2/min/polyfill/string/trim.js index bee09b9d..04f7e5b7 100644 --- a/dist/3.7.1/min/polyfill/string/trim.js +++ b/dist/3.7.2/min/polyfill/string/trim.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/string/ucfirst.js b/dist/3.7.2/min/polyfill/string/ucfirst.js similarity index 82% rename from dist/3.7.1/min/polyfill/string/ucfirst.js rename to dist/3.7.2/min/polyfill/string/ucfirst.js index bdb6fcf3..1e52367b 100644 --- a/dist/3.7.1/min/polyfill/string/ucfirst.js +++ b/dist/3.7.2/min/polyfill/string/ucfirst.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/addeventlistener.js b/dist/3.7.2/min/polyfill/window/addeventlistener.js similarity index 94% rename from dist/3.7.1/min/polyfill/window/addeventlistener.js rename to dist/3.7.2/min/polyfill/window/addeventlistener.js index 3d18cb84..3b0dba71 100644 --- a/dist/3.7.1/min/polyfill/window/addeventlistener.js +++ b/dist/3.7.2/min/polyfill/window/addeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/customevent.js b/dist/3.7.2/min/polyfill/window/customevent.js similarity index 91% rename from dist/3.7.1/min/polyfill/window/customevent.js rename to dist/3.7.2/min/polyfill/window/customevent.js index a134c275..22dcf61a 100644 --- a/dist/3.7.1/min/polyfill/window/customevent.js +++ b/dist/3.7.2/min/polyfill/window/customevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/dispatchevent.js b/dist/3.7.2/min/polyfill/window/dispatchevent.js similarity index 92% rename from dist/3.7.1/min/polyfill/window/dispatchevent.js rename to dist/3.7.2/min/polyfill/window/dispatchevent.js index c446384b..d9a56589 100644 --- a/dist/3.7.1/min/polyfill/window/dispatchevent.js +++ b/dist/3.7.2/min/polyfill/window/dispatchevent.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/getcomputedstyle.js b/dist/3.7.2/min/polyfill/window/getcomputedstyle.js similarity index 87% rename from dist/3.7.1/min/polyfill/window/getcomputedstyle.js rename to dist/3.7.2/min/polyfill/window/getcomputedstyle.js index 4b9e5804..eb324059 100644 --- a/dist/3.7.1/min/polyfill/window/getcomputedstyle.js +++ b/dist/3.7.2/min/polyfill/window/getcomputedstyle.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/matchmedia.js b/dist/3.7.2/min/polyfill/window/matchmedia.js similarity index 97% rename from dist/3.7.1/min/polyfill/window/matchmedia.js rename to dist/3.7.2/min/polyfill/window/matchmedia.js index 923562c7..49b5ca60 100644 --- a/dist/3.7.1/min/polyfill/window/matchmedia.js +++ b/dist/3.7.2/min/polyfill/window/matchmedia.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/promise.js b/dist/3.7.2/min/polyfill/window/promise.js similarity index 96% rename from dist/3.7.1/min/polyfill/window/promise.js rename to dist/3.7.2/min/polyfill/window/promise.js index ec3ade59..ffe50730 100644 --- a/dist/3.7.1/min/polyfill/window/promise.js +++ b/dist/3.7.2/min/polyfill/window/promise.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/polyfill/window/removeeventlistener.js b/dist/3.7.2/min/polyfill/window/removeeventlistener.js similarity index 90% rename from dist/3.7.1/min/polyfill/window/removeeventlistener.js rename to dist/3.7.2/min/polyfill/window/removeeventlistener.js index e50d9a29..d62016ee 100644 --- a/dist/3.7.1/min/polyfill/window/removeeventlistener.js +++ b/dist/3.7.2/min/polyfill/window/removeeventlistener.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.2/min/pool.js b/dist/3.7.2/min/pool.js new file mode 100644 index 00000000..235d4bff --- /dev/null +++ b/dist/3.7.2/min/pool.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return 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),i},_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.1/min/pool/array.js b/dist/3.7.2/min/pool/array.js similarity index 81% rename from dist/3.7.1/min/pool/array.js rename to dist/3.7.2/min/pool/array.js index 8bb95816..d529c41b 100644 --- a/dist/3.7.1/min/pool/array.js +++ b/dist/3.7.2/min/pool/array.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/pool/dom.js b/dist/3.7.2/min/pool/dom.js similarity index 90% rename from dist/3.7.1/min/pool/dom.js rename to dist/3.7.2/min/pool/dom.js index 51be098d..280d0375 100644 --- a/dist/3.7.1/min/pool/dom.js +++ b/dist/3.7.2/min/pool/dom.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.2/min/pool/module.js b/dist/3.7.2/min/pool/module.js new file mode 100644 index 00000000..04a03f2d --- /dev/null +++ b/dist/3.7.2/min/pool/module.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,t,n,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,t,n){var e=this,i=o._puid||(o._puid=l()),r=n&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return n===!0&&r[i]?r[i]:(e=d._parent._constructor.call(this,t),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),n===!0&&(r[i]=e),e)},_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.1/min/pool/object.js b/dist/3.7.2/min/pool/object.js similarity index 92% rename from dist/3.7.1/min/pool/object.js rename to dist/3.7.2/min/pool/object.js index 4dd5caf0..e6e4f5a7 100644 --- a/dist/3.7.1/min/pool/object.js +++ b/dist/3.7.2/min/pool/object.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/promise/all.js b/dist/3.7.2/min/promise/all.js similarity index 89% rename from dist/3.7.1/min/promise/all.js rename to dist/3.7.2/min/promise/all.js index 317a8945..9fcdf148 100644 --- a/dist/3.7.1/min/promise/all.js +++ b/dist/3.7.2/min/promise/all.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/promise/defer.js b/dist/3.7.2/min/promise/defer.js similarity index 82% rename from dist/3.7.1/min/promise/defer.js rename to dist/3.7.2/min/promise/defer.js index 1b746cc4..4f2fa33e 100644 --- a/dist/3.7.1/min/promise/defer.js +++ b/dist/3.7.2/min/promise/defer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/promise/race.js b/dist/3.7.2/min/promise/race.js similarity index 87% rename from dist/3.7.1/min/promise/race.js rename to dist/3.7.2/min/promise/race.js index 0234cccd..d605e314 100644 --- a/dist/3.7.1/min/promise/race.js +++ b/dist/3.7.2/min/promise/race.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/proxy.js b/dist/3.7.2/min/proxy.js similarity index 85% rename from dist/3.7.1/min/proxy.js rename to dist/3.7.2/min/proxy.js index 29e7b672..93e90c61 100644 --- a/dist/3.7.1/min/proxy.js +++ b/dist/3.7.2/min/proxy.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/renderer.js b/dist/3.7.2/min/renderer.js similarity index 60% rename from dist/3.7.1/min/renderer.js rename to dist/3.7.2/min/renderer.js index 9a215928..4f9555a9 100644 --- a/dist/3.7.1/min/renderer.js +++ b/dist/3.7.2/min/renderer.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=m._parent._constructor.call(this);return 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),e}})}); \ No newline at end of file diff --git a/dist/3.7.1/min/support.js b/dist/3.7.2/min/support.js similarity index 98% rename from dist/3.7.1/min/support.js rename to dist/3.7.2/min/support.js index 1eb9869e..039daa37 100644 --- a/dist/3.7.1/min/support.js +++ b/dist/3.7.2/min/support.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/capability/datauri.js b/dist/3.7.2/min/support/capability/datauri.js similarity index 90% rename from dist/3.7.1/min/support/capability/datauri.js rename to dist/3.7.2/min/support/capability/datauri.js index ac96fe2d..44d3996b 100644 --- a/dist/3.7.1/min/support/capability/datauri.js +++ b/dist/3.7.2/min/support/capability/datauri.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/capability/touch.js b/dist/3.7.2/min/support/capability/touch.js similarity index 84% rename from dist/3.7.1/min/support/capability/touch.js rename to dist/3.7.2/min/support/capability/touch.js index bc0fabcb..d531e8a3 100644 --- a/dist/3.7.1/min/support/capability/touch.js +++ b/dist/3.7.2/min/support/capability/touch.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/borderradius.js b/dist/3.7.2/min/support/css/borderradius.js similarity index 84% rename from dist/3.7.1/min/support/css/borderradius.js rename to dist/3.7.2/min/support/css/borderradius.js index 3807728a..47c296e4 100644 --- a/dist/3.7.1/min/support/css/borderradius.js +++ b/dist/3.7.2/min/support/css/borderradius.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/boxshadow.js b/dist/3.7.2/min/support/css/boxshadow.js similarity index 83% rename from dist/3.7.1/min/support/css/boxshadow.js rename to dist/3.7.2/min/support/css/boxshadow.js index ad9ef94e..f7a03e4c 100644 --- a/dist/3.7.1/min/support/css/boxshadow.js +++ b/dist/3.7.2/min/support/css/boxshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/rem.js b/dist/3.7.2/min/support/css/rem.js similarity index 85% rename from dist/3.7.1/min/support/css/rem.js rename to dist/3.7.2/min/support/css/rem.js index c0fc834d..d16703e7 100644 --- a/dist/3.7.1/min/support/css/rem.js +++ b/dist/3.7.2/min/support/css/rem.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/rgba.js b/dist/3.7.2/min/support/css/rgba.js similarity index 86% rename from dist/3.7.1/min/support/css/rgba.js rename to dist/3.7.2/min/support/css/rgba.js index 84404ddb..55f6e12c 100644 --- a/dist/3.7.1/min/support/css/rgba.js +++ b/dist/3.7.2/min/support/css/rgba.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/textshadow.js b/dist/3.7.2/min/support/css/textshadow.js similarity index 83% rename from dist/3.7.1/min/support/css/textshadow.js rename to dist/3.7.2/min/support/css/textshadow.js index 7a5bd4a4..f336fb47 100644 --- a/dist/3.7.1/min/support/css/textshadow.js +++ b/dist/3.7.2/min/support/css/textshadow.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/transform.js b/dist/3.7.2/min/support/css/transform.js similarity index 83% rename from dist/3.7.1/min/support/css/transform.js rename to dist/3.7.2/min/support/css/transform.js index 344836c8..9a6c1a47 100644 --- a/dist/3.7.1/min/support/css/transform.js +++ b/dist/3.7.2/min/support/css/transform.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/transform/2d.js b/dist/3.7.2/min/support/css/transform/2d.js similarity index 89% rename from dist/3.7.1/min/support/css/transform/2d.js rename to dist/3.7.2/min/support/css/transform/2d.js index cfe9f485..805acac1 100644 --- a/dist/3.7.1/min/support/css/transform/2d.js +++ b/dist/3.7.2/min/support/css/transform/2d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/transform/3d.js b/dist/3.7.2/min/support/css/transform/3d.js similarity index 89% rename from dist/3.7.1/min/support/css/transform/3d.js rename to dist/3.7.2/min/support/css/transform/3d.js index 0f3f63ed..2dd075e0 100644 --- a/dist/3.7.1/min/support/css/transform/3d.js +++ b/dist/3.7.2/min/support/css/transform/3d.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/css/transition.js b/dist/3.7.2/min/support/css/transition.js similarity index 83% rename from dist/3.7.1/min/support/css/transition.js rename to dist/3.7.2/min/support/css/transition.js index a92062ef..aa543c39 100644 --- a/dist/3.7.1/min/support/css/transition.js +++ b/dist/3.7.2/min/support/css/transition.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/canvas.js b/dist/3.7.2/min/support/element/canvas.js similarity index 85% rename from dist/3.7.1/min/support/element/canvas.js rename to dist/3.7.2/min/support/element/canvas.js index 72225bf9..23c03960 100644 --- a/dist/3.7.1/min/support/element/canvas.js +++ b/dist/3.7.2/min/support/element/canvas.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/canvas/todataurl.js b/dist/3.7.2/min/support/element/canvas/todataurl.js similarity index 87% rename from dist/3.7.1/min/support/element/canvas/todataurl.js rename to dist/3.7.2/min/support/element/canvas/todataurl.js index 6efd1506..e78621de 100644 --- a/dist/3.7.1/min/support/element/canvas/todataurl.js +++ b/dist/3.7.2/min/support/element/canvas/todataurl.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/canvas/todataurl/jpeg.js b/dist/3.7.2/min/support/element/canvas/todataurl/jpeg.js similarity index 89% rename from dist/3.7.1/min/support/element/canvas/todataurl/jpeg.js rename to dist/3.7.2/min/support/element/canvas/todataurl/jpeg.js index d09b41ad..f75d0f37 100644 --- a/dist/3.7.1/min/support/element/canvas/todataurl/jpeg.js +++ b/dist/3.7.2/min/support/element/canvas/todataurl/jpeg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/canvas/todataurl/png.js b/dist/3.7.2/min/support/element/canvas/todataurl/png.js similarity index 89% rename from dist/3.7.1/min/support/element/canvas/todataurl/png.js rename to dist/3.7.2/min/support/element/canvas/todataurl/png.js index 345ea2c1..60c15043 100644 --- a/dist/3.7.1/min/support/element/canvas/todataurl/png.js +++ b/dist/3.7.2/min/support/element/canvas/todataurl/png.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/canvas/todataurl/webp.js b/dist/3.7.2/min/support/element/canvas/todataurl/webp.js similarity index 89% rename from dist/3.7.1/min/support/element/canvas/todataurl/webp.js rename to dist/3.7.2/min/support/element/canvas/todataurl/webp.js index e2d6b164..a66de6f2 100644 --- a/dist/3.7.1/min/support/element/canvas/todataurl/webp.js +++ b/dist/3.7.2/min/support/element/canvas/todataurl/webp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/svg.js b/dist/3.7.2/min/support/element/svg.js similarity index 83% rename from dist/3.7.1/min/support/element/svg.js rename to dist/3.7.2/min/support/element/svg.js index 0efc8131..38811353 100644 --- a/dist/3.7.1/min/support/element/svg.js +++ b/dist/3.7.2/min/support/element/svg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/video.js b/dist/3.7.2/min/support/element/video.js similarity index 84% rename from dist/3.7.1/min/support/element/video.js rename to dist/3.7.2/min/support/element/video.js index 5bef8ba8..1a329b59 100644 --- a/dist/3.7.1/min/support/element/video.js +++ b/dist/3.7.2/min/support/element/video.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/video/mp4.js b/dist/3.7.2/min/support/element/video/mp4.js similarity index 88% rename from dist/3.7.1/min/support/element/video/mp4.js rename to dist/3.7.2/min/support/element/video/mp4.js index 302b3ca8..38b6c7ed 100644 --- a/dist/3.7.1/min/support/element/video/mp4.js +++ b/dist/3.7.2/min/support/element/video/mp4.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/video/ogg.js b/dist/3.7.2/min/support/element/video/ogg.js similarity index 88% rename from dist/3.7.1/min/support/element/video/ogg.js rename to dist/3.7.2/min/support/element/video/ogg.js index 850a52cc..f39d86f9 100644 --- a/dist/3.7.1/min/support/element/video/ogg.js +++ b/dist/3.7.2/min/support/element/video/ogg.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/support/element/video/webm.js b/dist/3.7.2/min/support/element/video/webm.js similarity index 88% rename from dist/3.7.1/min/support/element/video/webm.js rename to dist/3.7.2/min/support/element/video/webm.js index d42e8ddb..b2da8cc1 100644 --- a/dist/3.7.1/min/support/element/video/webm.js +++ b/dist/3.7.2/min/support/element/video/webm.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/transport.js b/dist/3.7.2/min/transport.js similarity index 88% rename from dist/3.7.1/min/transport.js rename to dist/3.7.2/min/transport.js index 95cbfa9c..d78c17a7 100644 --- a/dist/3.7.1/min/transport.js +++ b/dist/3.7.2/min/transport.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/transport/jsonp.js b/dist/3.7.2/min/transport/jsonp.js similarity index 96% rename from dist/3.7.1/min/transport/jsonp.js rename to dist/3.7.2/min/transport/jsonp.js index 719ad67e..2ee326a9 100644 --- a/dist/3.7.1/min/transport/jsonp.js +++ b/dist/3.7.2/min/transport/jsonp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/transport/xhr.js b/dist/3.7.2/min/transport/xhr.js similarity index 97% rename from dist/3.7.1/min/transport/xhr.js rename to dist/3.7.2/min/transport/xhr.js index 5f779343..33e68442 100644 --- a/dist/3.7.1/min/transport/xhr.js +++ b/dist/3.7.2/min/transport/xhr.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1/min/url.js b/dist/3.7.2/min/url.js similarity index 91% rename from dist/3.7.1/min/url.js rename to dist/3.7.2/min/url.js index 13ebde07..4e6e0b92 100644 --- a/dist/3.7.1/min/url.js +++ b/dist/3.7.2/min/url.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.2/min/vector/2d.js b/dist/3.7.2/min/vector/2d.js new file mode 100644 index 00000000..e5397211 --- /dev/null +++ b/dist/3.7.2/min/vector/2d.js @@ -0,0 +1,2 @@ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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){return this._temp=c?c.obtain():{},this._temp.x=0,this._temp.y=0,this.x=t||0,this.y=i||0,this},_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.1/min/widget/image/adapt.js b/dist/3.7.2/min/widget/image/adapt.js similarity index 54% rename from dist/3.7.1/min/widget/image/adapt.js rename to dist/3.7.2/min/widget/image/adapt.js index 67b285aa..bf78a79b 100644 --- a/dist/3.7.1/min/widget/image/adapt.js +++ b/dist/3.7.2/min/widget/image/adapt.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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(p),p=a.setTimeout(s,200)}var u,p,g=new RegExp("(.+?).(jpg|jpeg|png|gif|webp)$"),A=e["dom/element"],h=e["component/sense"],_=[];return u=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=u._parent._constructor.call(this,e,t),m=0;for(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 p=parseFloat(a.getAttribute("data-ratio")||i),g=a.getAttribute("data-media")||null;s._candidates.push({ratio:p,url:a.getAttribute("content"),mql:g}),g&&c.call(s,s._candidates[s._candidates.length-1],g)}return s.on("emerged demerged",function(e){s._visible="emerged"===e.type?!0:!1,d.call(s)}),_.push(s),s}}),A.create(a).on("resize orientationchange",m),u}); \ No newline at end of file diff --git a/dist/3.7.1/min/worker.js b/dist/3.7.2/min/worker.js similarity index 96% rename from dist/3.7.1/min/worker.js rename to dist/3.7.2/min/worker.js index 87509456..8f641de3 100644 --- a/dist/3.7.1/min/worker.js +++ b/dist/3.7.2/min/worker.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 008781d4..832c5fd2 100644 --- a/dist/latest/max/asset.js +++ b/dist/latest/max/asset.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -45,11 +45,10 @@ prototype = modules["emitter"].extend({ _uuid: null, _constructor: function(url, id, version) { - var self = this, uuid = generateUuid(), properties = lookup[uuid] = { + var self = prototype._parent._constructor.call(this), uuid = generateUuid(), properties = lookup[uuid] = { dfd: new DeferedPromise(), url: url }; - prototype._parent._constructor.call(self); self._uuid = uuid; if (id && version) { properties.id = id; @@ -60,6 +59,7 @@ value: "©" + id }; } + return self; }, fetch: function() { var self = this, properties = lookup[self._uuid], defered = properties.dfd, url = properties.url, id = properties.id, version = properties.version, storage = properties.storage, stored = storage && storage.version && localStorage[storage.version]; diff --git a/dist/latest/max/base.js b/dist/latest/max/base.js index 280d061b..c1aad9a0 100644 --- a/dist/latest/max/base.js +++ b/dist/latest/max/base.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 6d2d9c7a..90378983 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ _settings: null, _state: null, _constructor: function(data, settings) { - var self = this; - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this); self._settings = modules["function/merge"]({}, defaultSettings, settings || {}); self._state = { length: null, @@ -32,6 +31,7 @@ if (data !== undefined && data !== null) { self.setData(data); } + return self; }, getState: function() { var self = this; diff --git a/dist/latest/max/component/remux.js b/dist/latest/max/component/remux.js index 614f2e6c..62464ef3 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -54,11 +54,11 @@ } prototype = modules["emitter"].extend({ _constructor: function() { - var self = this, pBase = parseInt(html.getAttribute("data-base"), 10); - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this), pBase = parseInt(html.getAttribute("data-base"), 10); if (isNaN(pBase) === false) { base = pBase; } + return self; }, getState: function() { return state; diff --git a/dist/latest/max/component/sense.js b/dist/latest/max/component/sense.js index fb494aa1..7e865893 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -28,12 +28,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; diff --git a/dist/latest/max/dom/collection.js b/dist/latest/max/dom/collection.js index 7fdcd93c..72141f28 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -59,6 +59,7 @@ if (typeof styles === "object" && styles !== null) { self.setStyles(styles); } + return self; }, get: function(index) { return this.elements[index] || null; diff --git a/dist/latest/max/dom/element.js b/dist/latest/max/dom/element.js index 29cb16fc..c4004388 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/dom/element/emerge.js b/dist/latest/max/dom/element/emerge.js index 728d9370..04971155 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/dist/latest/max/dom/element/lazyimage.js b/dist/latest/max/dom/element/lazyimage.js index c3930c08..a84dcf8a 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -39,6 +39,7 @@ load.call(self); } }); + return self; } }); return prototype; diff --git a/dist/latest/max/dom/element/shrinkimage.js b/dist/latest/max/dom/element/shrinkimage.js index e7127ecb..6dfc18ea 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -127,8 +127,7 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self, foreground, background; - self = prototype._parent._constructor.call(this, element); + var self = prototype._parent._constructor.call(this, element), foreground, background; self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); diff --git a/dist/latest/max/dom/event.js b/dist/latest/max/dom/event.js index ef0796bb..8a57094f 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -24,6 +24,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); diff --git a/dist/latest/max/emitter.js b/dist/latest/max/emitter.js index a2aac40a..d27da22e 100644 --- a/dist/latest/max/emitter.js +++ b/dist/latest/max/emitter.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -37,6 +37,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; diff --git a/dist/latest/max/function/load/css.js b/dist/latest/max/function/load/css.js index 61238baa..88db6d6f 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 d0ff1233..e4a76894 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 d45e7ea3..a0f51b93 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 19507af8..eee99fba 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 db630e5b..16073074 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 b81503ca..75ac4c86 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 351994a2..329e1e00 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 d32c4ea2..ec1b2d66 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 0080f5bd..ff9dc036 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 90925ea4..4f3ccb7a 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ }; prototype = modules["dom/element/emerge"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_EMERGED, function(event) { object.trigger(JQUERY_EMERGED, { priority: event.data @@ -30,6 +29,7 @@ self.on(EVENT_DEMERGED, function() { object.trigger(JQUERY_DEMERGED); }); + return self; } }); return prototype; diff --git a/dist/latest/max/jquery/plugin/lazyimage.js b/dist/latest/max/jquery/plugin/lazyimage.js index 78f9a379..c51469e8 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,14 +20,14 @@ }; prototype = modules["dom/element/lazyimage"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_REQUESTED, function() { object.trigger(JQUERY_REQUESTED); }); self.on(EVENT_LOADED, function() { object.trigger(JQUERY_LOADED); }); + return self; } }); return prototype; diff --git a/dist/latest/max/jquery/plugin/shrinkimage.js b/dist/latest/max/jquery/plugin/shrinkimage.js index 0f7a20bf..28c18dd1 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,8 +20,7 @@ }; prototype = modules["dom/element/shrinkimage"].extend({ _constructor: function(element, settings) { - var self = this, object = jQuery(element); - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), object = jQuery(element); self.on(EVENT_QUEUED, function() { object.trigger(JQUERY_QUEUED); }); @@ -34,6 +33,7 @@ self.on(EVENT_FAILED, function() { object.trigger(JQUERY_FAILED); }); + return self; } }); return prototype; diff --git a/dist/latest/max/particle.js b/dist/latest/max/particle.js index 8ce498ec..3b5eb9ae 100644 --- a/dist/latest/max/particle.js +++ b/dist/latest/max/particle.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -20,12 +20,13 @@ velocity: null, acceleration: null, _constructor: function(x, y) { + var self = prototype._parent._constructor.call(this); this._velocity = poolVector.obtain(0, 0); this._acceleration = poolVector.obtain(0, 0); this.position = poolVector.obtain(x, y); this.velocity = poolVector.obtain(0, 0); this.acceleration = []; - prototype._parent._constructor.call(this); + return self; }, _obtain: function(x, y) { this.position.x = x || 0; diff --git a/dist/latest/max/polyfill/array/indexof.js b/dist/latest/max/polyfill/array/indexof.js index 9b743578..41730585 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 9844885b..729468bc 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 617eaf91..ccbc9787 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 637b9d14..e216784c 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 b2b220ef..f669210f 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 165b38b7..c29c1c86 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 74f4a575..741c2753 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 5f511800..475b0bb6 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 8dac0b97..6523c138 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 dd6a701f..d10d97c2 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 fa5095a7..acea70ab 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 9461eb1c..afe1ae8a 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 bc86b9cf..269b92e0 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 5fad6d52..7d68cc8f 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 c5454c05..82437491 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 f5aba1df..1dc5cbf1 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 533208cc..739be3b3 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 fde8b483..737fbb45 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 de9feeb7..b268972b 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 4673a1da..2c03a37a 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 29cdf9f0..d0304424 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 95fd82da..5550e4ee 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 c5281501..018533dc 100644 --- a/dist/latest/max/pool.js +++ b/dist/latest/max/pool.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -78,6 +78,7 @@ setInterval(function() { processQueue.call(self); }, self._settings.interval); + return self; }, _initPool: function() { return []; diff --git a/dist/latest/max/pool/array.js b/dist/latest/max/pool/array.js index 2ccf75b1..8a68be66 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 40127a0f..ed62319c 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 4a065850..980fcd78 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -21,7 +21,7 @@ if (useShared === true && pointer[uuid]) { return pointer[uuid]; } else { - prototype._parent._constructor.call(self, options); + self = prototype._parent._constructor.call(this, options); self._module = module; if (typeof module._destroy === "function") { self._destroy = function(element) { @@ -32,6 +32,7 @@ pointer[uuid] = self; } } + return self; }, _dispose: function(element) { return element; diff --git a/dist/latest/max/pool/object.js b/dist/latest/max/pool/object.js index 80136816..88bc1d58 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 0724bb7c..9685f201 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 564415d0..57d976cc 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 bc9d5661..ca9d269e 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 afc6920b..9f37c22f 100644 --- a/dist/latest/max/proxy.js +++ b/dist/latest/max/proxy.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 824f6f7b..f127e249 100644 --- a/dist/latest/max/renderer.js +++ b/dist/latest/max/renderer.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -45,8 +45,7 @@ paused: false, _tick: null, _constructor: function() { - var self = this; - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this); timeStart = timeLast = new Date().getTime(); self._tick = function() { if (self.paused === false) { @@ -68,6 +67,7 @@ onVisibilityChange.call(self); }); onVisibilityChange.call(self); + return self; } }); return prototype; diff --git a/dist/latest/max/support.js b/dist/latest/max/support.js index 7667d262..5ae7af94 100644 --- a/dist/latest/max/support.js +++ b/dist/latest/max/support.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 fc2b1637..0b594465 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 77b8c4fa..960393e4 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 ba3fc165..2532c163 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 87400548..3f67e2f5 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 fbd85155..da54a0bb 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 b5e83a0c..561ea118 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 fa819de7..e9bc284c 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 72830267..6393d0bf 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 a1ca6a23..ed711feb 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 4e63c93a..50076efa 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 72ad5e67..2fee1bf4 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 1b280eb9..559352b2 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 3e0f476c..b099a769 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 e425edc3..d3c1fe16 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 b552be3e..5635ebb4 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 d35bf642..bd240998 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 09f1f040..84c645b3 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 a8eeda60..8380141d 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 40a3f87a..8cba6629 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 901e80ac..72db763b 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 e8fa8292..2e0dc01a 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 d6624f2f..702a770c 100644 --- a/dist/latest/max/transport.js +++ b/dist/latest/max/transport.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 bd28a906..a07cd687 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 c804864a..3428856e 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 bc98d35e..ae82c83e 100644 --- a/dist/latest/max/url.js +++ b/dist/latest/max/url.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 9b23bc4f..0186c9d4 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -23,6 +23,7 @@ this._temp.y = 0; this.x = x || 0; this.y = y || 0; + return this; }, _obtain: function(x, y) { this.x = x || 0; diff --git a/dist/latest/max/widget/image/adapt.js b/dist/latest/max/widget/image/adapt.js index c26a2f87..51b9c5bb 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.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -70,8 +70,7 @@ _image: null, _caption: null, _constructor: function(element, settings) { - var self = this, defaultRatio, sources, i = 0, source, caption; - prototype._parent._constructor.call(self, element, settings); + var self = prototype._parent._constructor.call(this, element, settings), defaultRatio, sources, i = 0, source, caption; defaultRatio = parseFloat(self.getAttribute("data-ratio") || 1); sources = self.find('[itemprop="source"],[itemprop="contentUrl"]'); self._candidates = []; @@ -100,6 +99,7 @@ checkCandidates.call(self); }); storage.push(self); + return self; } }); mDomElement.create(window).on("resize orientationchange", delayOnResize); diff --git a/dist/latest/max/worker.js b/dist/latest/max/worker.js index b7a2fa94..414c0e66 100644 --- a/dist/latest/max/worker.js +++ b/dist/latest/max/worker.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 4745a2d6..e8217324 100644 --- a/dist/latest/min/asset.js +++ b/dist/latest/min/asset.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,n,i,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(n){var u=n.data,a=o.id,c=o.version,l=o.storage;e.emit("loaded",r,a,c,u),l&&(i.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=s._parent._constructor.call(this),n=p(),i=d[n]={dfd:new g,url:e};return r._uuid=n,o&&t&&(i.id=o,i.version=t,i.cookie=encodeURIComponent("qoopido[asset]["+o.replace(h,"][")+"]"),i.storage={version:"@"+o,value:"©"+o}),r},fetch:function(){var e=this,o=d[e._uuid],t=o.dfd,r=o.url,n=o.id,i=o.version,u=o.storage,c=u&&u.version&&localStorage[u.version];if(c&&c>=i){var l=localStorage[o.storage.value];e.emit("hit",r,n,i,l),t.resolve(l)}else e.emit("miss",r,n,i),a(e);return t.promise},clear:function(){var e=this,o=d[e._uuid],t=o.storage;return t&&(i.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 08e757c5..9dcc288a 100644 --- a/dist/latest/min/base.js +++ b/dist/latest/min/base.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 683e0e87..a831e584 100644 --- a/dist/latest/min/component/iterator.js +++ b/dist/latest/min/component/iterator.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this);return s._settings=t["function/merge"]({},l,n||{}),s._state={length:null,index:null,item:null,data:null},e!==r&&null!==e&&s.setData(e),s},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 f911f270..542e7509 100644 --- a/dist/latest/min/component/remux.js +++ b/dist/latest/min/component/remux.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=l._parent._constructor.call(this),n=parseInt(c.getAttribute("data-base"),10);return isNaN(n)===!1&&(f=n),t},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 3cd8f168..c39ef8a7 100644 --- a/dist/latest/min/component/sense.js +++ b/dist/latest/min/component/sense.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,r,o){"use strict";function a(){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=m._parent._constructor.call(this),n=e.mql=s[t]||(s[t]=c.matchMedia(t)),i=function(){a.call(e)};return n.addListener(i),c.setTimeout(i,0),e},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 fb55b30e..a2e321ea 100644 --- a/dist/latest/min/dom/collection.js +++ b/dist/latest/min/dom/collection.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return"object"==typeof t&&null!==t&&a.setAttributes(t),"object"==typeof n&&null!==n&&a.setStyles(n),a},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 4d5be497..88f1f57c 100644 --- a/dist/latest/min/dom/element.js +++ b/dist/latest/min/dom/element.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 844f4cbc..f2b2056b 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 f9697a4e..50c74290 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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||{}));return n.on(g,function o(e){(0===d||1===e.data)&&(n.remove(),n.off(g,o),u.call(n))}),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 8ff72895..4d1c32f4 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=d._parent._constructor.call(this,e);return 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),r},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 67890bdc..07030c20 100644 --- a/dist/latest/min/dom/event.js +++ b/dist/latest/min/dom/event.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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 463b8e4b..1b174581 100644 --- a/dist/latest/min/emitter.js +++ b/dist/latest/min/emitter.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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 d218b2c1..d4d785cb 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 85cbeafe..61312fa3 100644 --- a/dist/latest/min/function/merge.js +++ b/dist/latest/min/function/merge.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 96692526..6516299a 100644 --- a/dist/latest/min/function/proximity.js +++ b/dist/latest/min/function/proximity.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 199e2b10..bd8e2c4b 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 9f354218..75a643d8 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 cff60026..211c05a8 100644 --- a/dist/latest/min/hook/css.js +++ b/dist/latest/min/hook/css.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 e3879b1e..330fb477 100644 --- a/dist/latest/min/hook/event.js +++ b/dist/latest/min/hook/event.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 8ea283b1..78326c2a 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 b63e5d4e..36c29d60 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 27e7a3e7..d6240c9f 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,e,r),n=g(e);return t.on(d,function(e){n.trigger(s,{priority:e.data})}),t.on(m,function(){n.trigger(f)}),t}})}); \ 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 04458c70..c1908629 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,e,n),r=a(e);return t.on(g,function(){r.trigger(d)}),t.on(l,function(){r.trigger(f)}),t}})}); \ 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 a5e1faba..6db8a6e3 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=u._parent._constructor.call(this,n,t),r=a(n);return 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)}),e}})}); \ No newline at end of file diff --git a/dist/latest/min/particle.js b/dist/latest/min/particle.js index 2b9c063d..1f452cae 100644 --- a/dist/latest/min/particle.js +++ b/dist/latest/min/particle.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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){var o=l._parent._constructor.call(this);return 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=[],o},_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 e9583b4a..40231f06 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 a08f6ddd..b7011332 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 3d916f46..c31f26ce 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 af7af0a5..fe844f33 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 0d774cef..700a87c9 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 0dadea7c..7c24a73b 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 cf271ca5..93c41332 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 d983a8f3..f09b0fc3 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 e6bc2d59..3bb2e16e 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 9e89446a..181a55f9 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 35c44c9c..d8077c43 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 6c36a79c..b61ba9ed 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 59a759eb..5b9ca786 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 bee09b9d..04f7e5b7 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 bdb6fcf3..1e52367b 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 3d18cb84..3b0dba71 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 a134c275..22dcf61a 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 c446384b..d9a56589 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 4b9e5804..eb324059 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 923562c7..49b5ca60 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 ec3ade59..ffe50730 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 e50d9a29..d62016ee 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 f8b4dbe4..235d4bff 100644 --- a/dist/latest/min/pool.js +++ b/dist/latest/min/pool.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return 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),i},_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 8bb95816..d529c41b 100644 --- a/dist/latest/min/pool/array.js +++ b/dist/latest/min/pool/array.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 51be098d..280d0375 100644 --- a/dist/latest/min/pool/dom.js +++ b/dist/latest/min/pool/dom.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 1e6bb6ed..04a03f2d 100644 --- a/dist/latest/min/pool/module.js +++ b/dist/latest/min/pool/module.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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,t,n,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_constructor:function(o,t,n){var e=this,i=o._puid||(o._puid=l()),r=n&&(u.pool||(u.pool={}))&&(u.pool.module||(u.pool.module={}));return n===!0&&r[i]?r[i]:(e=d._parent._constructor.call(this,t),e._module=o,"function"==typeof o._destroy&&(e._destroy=function(o){o._destroy()}),n===!0&&(r[i]=e),e)},_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 4dd5caf0..e6e4f5a7 100644 --- a/dist/latest/min/pool/object.js +++ b/dist/latest/min/pool/object.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 317a8945..9fcdf148 100644 --- a/dist/latest/min/promise/all.js +++ b/dist/latest/min/promise/all.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 1b746cc4..4f2fa33e 100644 --- a/dist/latest/min/promise/defer.js +++ b/dist/latest/min/promise/defer.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 0234cccd..d605e314 100644 --- a/dist/latest/min/promise/race.js +++ b/dist/latest/min/promise/race.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 29e7b672..93e90c61 100644 --- a/dist/latest/min/proxy.js +++ b/dist/latest/min/proxy.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 9a215928..4f9555a9 100644 --- a/dist/latest/min/renderer.js +++ b/dist/latest/min/renderer.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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=m._parent._constructor.call(this);return 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),e}})}); \ No newline at end of file diff --git a/dist/latest/min/support.js b/dist/latest/min/support.js index 1eb9869e..039daa37 100644 --- a/dist/latest/min/support.js +++ b/dist/latest/min/support.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 ac96fe2d..44d3996b 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 bc0fabcb..d531e8a3 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 3807728a..47c296e4 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 ad9ef94e..f7a03e4c 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 c0fc834d..d16703e7 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 84404ddb..55f6e12c 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 7a5bd4a4..f336fb47 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 344836c8..9a6c1a47 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 cfe9f485..805acac1 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 0f3f63ed..2dd075e0 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 a92062ef..aa543c39 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 72225bf9..23c03960 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 6efd1506..e78621de 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 d09b41ad..f75d0f37 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 345ea2c1..60c15043 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 e2d6b164..a66de6f2 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 0efc8131..38811353 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 5bef8ba8..1a329b59 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 302b3ca8..38b6c7ed 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 850a52cc..f39d86f9 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 d42e8ddb..b2da8cc1 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.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 95cbfa9c..d78c17a7 100644 --- a/dist/latest/min/transport.js +++ b/dist/latest/min/transport.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 719ad67e..2ee326a9 100644 --- a/dist/latest/min/transport/jsonp.js +++ b/dist/latest/min/transport/jsonp.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 5f779343..33e68442 100644 --- a/dist/latest/min/transport/xhr.js +++ b/dist/latest/min/transport/xhr.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 13ebde07..4e6e0b92 100644 --- a/dist/latest/min/url.js +++ b/dist/latest/min/url.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 c576eade..e5397211 100644 --- a/dist/latest/min/vector/2d.js +++ b/dist/latest/min/vector/2d.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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){return this._temp=c?c.obtain():{},this._temp.x=0,this._temp.y=0,this.x=t||0,this.y=i||0,this},_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 67b285aa..bf78a79b 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.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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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(p),p=a.setTimeout(s,200)}var u,p,g=new RegExp("(.+?).(jpg|jpeg|png|gif|webp)$"),A=e["dom/element"],h=e["component/sense"],_=[];return u=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=u._parent._constructor.call(this,e,t),m=0;for(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 p=parseFloat(a.getAttribute("data-ratio")||i),g=a.getAttribute("data-media")||null;s._candidates.push({ratio:p,url:a.getAttribute("content"),mql:g}),g&&c.call(s,s._candidates[s._candidates.length-1],g)}return s.on("emerged demerged",function(e){s._visible="emerged"===e.type?!0:!1,d.call(s)}),_.push(s),s}}),A.create(a).on("resize orientationchange",m),u}); \ No newline at end of file diff --git a/dist/latest/min/worker.js b/dist/latest/min/worker.js index 87509456..8f641de3 100644 --- a/dist/latest/min/worker.js +++ b/dist/latest/min/worker.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 5c049a35..385e9201 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.1", + "version": "3.7.2", "homepage": "https://github.com/dlueth/qoopido.js", "author": { "name": "Dirk Lueth", diff --git a/packages/qoopido.base.3.7.1.js b/packages/qoopido.base.3.7.2.js similarity index 99% rename from packages/qoopido.base.3.7.1.js rename to packages/qoopido.base.3.7.2.js index aeae734c..ddb31781 100644 --- a/packages/qoopido.base.3.7.1.js +++ b/packages/qoopido.base.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * diff --git a/packages/qoopido.base.3.7.1.min.js b/packages/qoopido.base.3.7.2.min.js similarity index 98% rename from packages/qoopido.base.3.7.1.min.js rename to packages/qoopido.base.3.7.2.min.js index ad4e8f68..fd7e8c7c 100644 --- a/packages/qoopido.base.3.7.1.min.js +++ b/packages/qoopido.base.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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 aeae734c..ddb31781 100644 --- a/packages/qoopido.base.latest.js +++ b/packages/qoopido.base.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * 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 ad4e8f68..fd7e8c7c 100644 --- a/packages/qoopido.base.latest.min.js +++ b/packages/qoopido.base.latest.min.js @@ -1,2 +1,2 @@ -/*! Qoopido.js library 3.7.1, 2015-07-25 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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.1.js b/packages/qoopido.emerge.3.7.2.js similarity index 99% rename from packages/qoopido.emerge.3.7.1.js rename to packages/qoopido.emerge.3.7.2.js index c12d9645..bb180995 100644 --- a/packages/qoopido.emerge.3.7.1.js +++ b/packages/qoopido.emerge.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -983,6 +983,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); diff --git a/packages/qoopido.emerge.3.7.1.min.js b/packages/qoopido.emerge.3.7.2.min.js similarity index 57% rename from packages/qoopido.emerge.3.7.1.min.js rename to packages/qoopido.emerge.3.7.2.min.js index c380c109..a2dbf27a 100644 --- a/packages/qoopido.emerge.3.7.1.min.js +++ b/packages/qoopido.emerge.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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 c12d9645..bb180995 100644 --- a/packages/qoopido.emerge.latest.js +++ b/packages/qoopido.emerge.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -983,6 +983,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); diff --git a/packages/qoopido.emerge.latest.min.js b/packages/qoopido.emerge.latest.min.js index c380c109..a2dbf27a 100644 --- a/packages/qoopido.emerge.latest.min.js +++ b/packages/qoopido.emerge.latest.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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.1.js b/packages/qoopido.emitter.3.7.2.js similarity index 99% rename from packages/qoopido.emitter.3.7.1.js rename to packages/qoopido.emitter.3.7.2.js index 19271f2e..50a3d56a 100644 --- a/packages/qoopido.emitter.3.7.1.js +++ b/packages/qoopido.emitter.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -314,6 +314,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; diff --git a/packages/qoopido.emitter.3.7.1.min.js b/packages/qoopido.emitter.3.7.2.min.js similarity index 87% rename from packages/qoopido.emitter.3.7.1.min.js rename to packages/qoopido.emitter.3.7.2.min.js index 18a28337..6fffaebe 100644 --- a/packages/qoopido.emitter.3.7.1.min.js +++ b/packages/qoopido.emitter.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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 19271f2e..50a3d56a 100644 --- a/packages/qoopido.emitter.latest.js +++ b/packages/qoopido.emitter.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -314,6 +314,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; diff --git a/packages/qoopido.emitter.latest.min.js b/packages/qoopido.emitter.latest.min.js index 18a28337..6fffaebe 100644 --- a/packages/qoopido.emitter.latest.min.js +++ b/packages/qoopido.emitter.latest.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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.1.js b/packages/qoopido.lazyimage.3.7.2.js similarity index 99% rename from packages/qoopido.lazyimage.3.7.1.js rename to packages/qoopido.lazyimage.3.7.2.js index ba23a1f3..d1d4c16e 100644 --- a/packages/qoopido.lazyimage.3.7.1.js +++ b/packages/qoopido.lazyimage.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -983,6 +983,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); @@ -1678,6 +1679,7 @@ load.call(self); } }); + return self; } }); return prototype; diff --git a/packages/qoopido.lazyimage.3.7.1.min.js b/packages/qoopido.lazyimage.3.7.2.min.js similarity index 55% rename from packages/qoopido.lazyimage.3.7.1.min.js rename to packages/qoopido.lazyimage.3.7.2.min.js index 797d97b7..cacb227e 100644 --- a/packages/qoopido.lazyimage.3.7.1.min.js +++ b/packages/qoopido.lazyimage.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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||{}));return n.on(m,function o(e){(0===a||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))}),n}})}); \ No newline at end of file diff --git a/packages/qoopido.lazyimage.latest.js b/packages/qoopido.lazyimage.latest.js index ba23a1f3..d1d4c16e 100644 --- a/packages/qoopido.lazyimage.latest.js +++ b/packages/qoopido.lazyimage.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -983,6 +983,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); @@ -1678,6 +1679,7 @@ load.call(self); } }); + return self; } }); return prototype; diff --git a/packages/qoopido.lazyimage.latest.min.js b/packages/qoopido.lazyimage.latest.min.js index 797d97b7..cacb227e 100644 --- a/packages/qoopido.lazyimage.latest.min.js +++ b/packages/qoopido.lazyimage.latest.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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||{}));return n.on(m,function o(e){(0===a||1===e.data)&&(n.remove(),n.off(m,o),l.call(n))}),n}})}); \ No newline at end of file diff --git a/packages/qoopido.remux.3.7.1.js b/packages/qoopido.remux.3.7.2.js similarity index 98% rename from packages/qoopido.remux.3.7.1.js rename to packages/qoopido.remux.3.7.2.js index 82dca6b2..592b9246 100644 --- a/packages/qoopido.remux.3.7.1.js +++ b/packages/qoopido.remux.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -525,6 +525,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; @@ -601,12 +602,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; @@ -660,11 +661,11 @@ } prototype = modules["emitter"].extend({ _constructor: function() { - var self = this, pBase = parseInt(html.getAttribute("data-base"), 10); - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this), pBase = parseInt(html.getAttribute("data-base"), 10); if (isNaN(pBase) === false) { base = pBase; } + return self; }, getState: function() { return state; diff --git a/packages/qoopido.remux.3.7.1.min.js b/packages/qoopido.remux.3.7.2.min.js similarity index 74% rename from packages/qoopido.remux.3.7.1.min.js rename to packages/qoopido.remux.3.7.2.min.js index 49e910e7..46f1851e 100644 --- a/packages/qoopido.remux.3.7.1.min.js +++ b/packages/qoopido.remux.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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=a._parent._constructor.call(this),r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};return r.addListener(n),o.setTimeout(n,0),t},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=l._parent._constructor.call(this),t=parseInt(u.getAttribute("data-base"),10);return isNaN(t)===!1&&(p=t),e},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 82dca6b2..592b9246 100644 --- a/packages/qoopido.remux.latest.js +++ b/packages/qoopido.remux.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -525,6 +525,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; @@ -601,12 +602,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; @@ -660,11 +661,11 @@ } prototype = modules["emitter"].extend({ _constructor: function() { - var self = this, pBase = parseInt(html.getAttribute("data-base"), 10); - prototype._parent._constructor.call(self); + var self = prototype._parent._constructor.call(this), pBase = parseInt(html.getAttribute("data-base"), 10); if (isNaN(pBase) === false) { base = pBase; } + return self; }, getState: function() { return state; diff --git a/packages/qoopido.remux.latest.min.js b/packages/qoopido.remux.latest.min.js index 49e910e7..46f1851e 100644 --- a/packages/qoopido.remux.latest.min.js +++ b/packages/qoopido.remux.latest.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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=a._parent._constructor.call(this),r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};return r.addListener(n),o.setTimeout(n,0),t},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=l._parent._constructor.call(this),t=parseInt(u.getAttribute("data-base"),10);return isNaN(t)===!1&&(p=t),e},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.1.js b/packages/qoopido.sense.3.7.2.js similarity index 98% rename from packages/qoopido.sense.3.7.1.js rename to packages/qoopido.sense.3.7.2.js index d967205e..e8bd21dd 100644 --- a/packages/qoopido.sense.3.7.1.js +++ b/packages/qoopido.sense.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -525,6 +525,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; @@ -601,12 +602,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; diff --git a/packages/qoopido.sense.3.7.1.min.js b/packages/qoopido.sense.3.7.2.min.js similarity index 86% rename from packages/qoopido.sense.3.7.1.min.js rename to packages/qoopido.sense.3.7.2.min.js index ccf46727..7ffa928f 100644 --- a/packages/qoopido.sense.3.7.1.min.js +++ b/packages/qoopido.sense.3.7.2.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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=p._parent._constructor.call(this),r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};return r.addListener(n),o.setTimeout(n,0),t},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 d967205e..e8bd21dd 100644 --- a/packages/qoopido.sense.latest.js +++ b/packages/qoopido.sense.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -525,6 +525,7 @@ self[method] = map(self, method); } } + return self; }, on: function(events, fn) { var self = this, i = 0, event; @@ -601,12 +602,12 @@ prototype = modules["emitter"].extend({ mql: null, _constructor: function(query) { - var self = this, mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { + var self = prototype._parent._constructor.call(this), mql = self.mql = queries[query] || (queries[query] = window.matchMedia(query)), listener = function() { onQueryStateChange.call(self); }; - prototype._parent._constructor.call(self); mql.addListener(listener); window.setTimeout(listener, 0); + return self; }, matches: function() { return this.mql.matches; diff --git a/packages/qoopido.sense.latest.min.js b/packages/qoopido.sense.latest.min.js index ccf46727..7ffa928f 100644 --- a/packages/qoopido.sense.latest.min.js +++ b/packages/qoopido.sense.latest.min.js @@ -1,2 +1,2 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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));return t},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=p._parent._constructor.call(this),r=t.mql=l[e]||(l[e]=o.matchMedia(e)),n=function(){s.call(t)};return r.addListener(n),o.setTimeout(n,0),t},matches:function(){return this.mql.matches}})}); \ No newline at end of file diff --git a/packages/qoopido.shrinkimage.3.7.1.js b/packages/qoopido.shrinkimage.3.7.2.js similarity index 99% rename from packages/qoopido.shrinkimage.3.7.1.js rename to packages/qoopido.shrinkimage.3.7.2.js index eea601bf..9b813f82 100644 --- a/packages/qoopido.shrinkimage.3.7.1.js +++ b/packages/qoopido.shrinkimage.3.7.2.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1077,6 +1077,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); @@ -1943,8 +1944,7 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self, foreground, background; - self = prototype._parent._constructor.call(this, element); + var self = prototype._parent._constructor.call(this, element), foreground, background; self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); diff --git a/packages/qoopido.shrinkimage.3.7.1.min.js b/packages/qoopido.shrinkimage.3.7.2.min.js similarity index 58% rename from packages/qoopido.shrinkimage.3.7.1.min.js rename to packages/qoopido.shrinkimage.3.7.2.min.js index 0ba3b9d5..f82c95ab 100644 --- a/packages/qoopido.shrinkimage.3.7.1.min.js +++ b/packages/qoopido.shrinkimage.3.7.2.min.js @@ -1,3 +1,3 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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=f._parent._constructor.call(this,t);return i._settings=n=e["function/merge"]({},h,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),i},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 eea601bf..9b813f82 100644 --- a/packages/qoopido.shrinkimage.latest.js +++ b/packages/qoopido.shrinkimage.latest.js @@ -1,8 +1,8 @@ /*! * Qoopido.js library * -* version: 3.7.1 -* date: 2015-07-25 +* version: 3.7.2 +* date: 2015-08-05 * author: Dirk Lueth * website: https://github.com/dlueth/qoopido.js * @@ -1077,6 +1077,7 @@ var self = this; self._properties = []; self._obtain(event); + return self; }, _obtain: function(event) { hooks.process(this, event); @@ -1943,8 +1944,7 @@ } prototype = modules["dom/element"].extend({ _constructor: function(element, settings) { - var self, foreground, background; - self = prototype._parent._constructor.call(this, element); + var self = prototype._parent._constructor.call(this, element), foreground, background; self._settings = settings = modules["function/merge"]({}, defaults, settings); foreground = self.getAttribute(settings.attribute); background = self.getStyle("backgroundImage"); diff --git a/packages/qoopido.shrinkimage.latest.min.js b/packages/qoopido.shrinkimage.latest.min.js index 0ba3b9d5..f82c95ab 100644 --- a/packages/qoopido.shrinkimage.latest.min.js +++ b/packages/qoopido.shrinkimage.latest.min.js @@ -1,3 +1,3 @@ -/*! 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 +/*! Qoopido.js library 3.7.2, 2015-08-05 | 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;return t._properties=[],t._obtain(e),t},_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=f._parent._constructor.call(this,t);return i._settings=n=e["function/merge"]({},h,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),i},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