From c00b148646695e703f865b931aff52dcd36be805 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Tue, 15 Jul 2014 16:51:11 +0400 Subject: [PATCH] + es6 modules --- src/Ply.es6 | 8 +++----- src/jquery.es6 | 5 +++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 src/jquery.es6 diff --git a/src/Ply.es6 b/src/Ply.es6 index ca68c15..d93b3fa 100644 --- a/src/Ply.es6 +++ b/src/Ply.es6 @@ -11,17 +11,15 @@ 'use strict'; + import $ from 'jquery'; + + var gid = 1, noop = () => {}, document = window.document, setTimeout = window.setTimeout, - $ = window.jQuery - || /* istanbul ignore next */ window.Zepto - || /* istanbul ignore next */ window.ender - || /* istanbul ignore next */ window.$, - Promise = Deferred || window.Promise, diff --git a/src/jquery.es6 b/src/jquery.es6 new file mode 100644 index 0000000..f9d64d7 --- /dev/null +++ b/src/jquery.es6 @@ -0,0 +1,5 @@ +export default (window.jQuery + || /* istanbul ignore next */ window.Zepto + || /* istanbul ignore next */ window.ender + || /* istanbul ignore next */ window.$ +);