Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved decouple event code into js/events directory

  • Loading branch information...
commit 89f333cc7b40577d1f55c733f6f0bea664a1716c 1 parent f6eca55
@gseguin gseguin authored
View
2  js/jquery.mobile.events.orientationchange.js → js/events/orientationchange.js
@@ -3,7 +3,7 @@
//>>label: orientationchange
//>>group: Events
-define( [ "jquery", "./jquery.mobile.support.orientation", "./jquery.mobile.events.throttledresize" ], function( jQuery ) {
+define( [ "../jquery", "../jquery.mobile.support.orientation", "./throttledresize" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window ) {
View
2  js/jquery.mobile.events.throttledresize.js → js/events/throttledresize.js
@@ -3,7 +3,7 @@
//>>label: throttledresize
//>>group: Events
-define( [ "jquery" ], function( jQuery ) {
+define( [ "../jquery" ], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
// throttled resize event
View
2  js/jquery.mobile.events.touch.js → js/events/touch.js
@@ -3,7 +3,7 @@
//>>label: touch
//>>group: Events
-define( [ "jquery", "./jquery.mobile.vmouse" ], function( $ ) {
+define( [ "../jquery", "../jquery.mobile.vmouse" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {
View
6 js/index.php
@@ -12,9 +12,9 @@
'jquery.mobile.support.orientation.js',
'jquery.mobile.support.js',
'jquery.mobile.vmouse.js',
- 'jquery.mobile.events.touch.js',
- 'jquery.mobile.events.throttledresize.js',
- 'jquery.mobile.events.orientationchange.js',
+ 'events/touch.js',
+ 'events/throttledresize.js',
+ 'events/orientationchange.js',
'jquery.hashchange.js',
'jquery.mobile.page.js',
'jquery.mobile.core.js',
View
2  js/jquery.mobile.events.js
@@ -3,7 +3,7 @@
//>>label: Events
//>>group: Events
-define( [ "jquery", "./jquery.mobile.events.touch", "./jquery.mobile.events.orientationchange" ], function( $ ) {
+define( [ "jquery", "./events/touch", "./events/orientationchange" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});
View
12 tests/unit/event/event_core.js
@@ -4,12 +4,12 @@
(function($){
var libName = "jquery.mobile.events.js",
- components = [ "jquery.mobile.events.touch.js", "jquery.mobile.events.throttledresize.js", "jquery.mobile.events.orientationchange.js" ],
- absFn = Math.abs,
- originalEventFn = $.Event.prototype.originalEvent,
- preventDefaultFn = $.Event.prototype.preventDefault,
- events = ("touchstart touchmove touchend tap taphold " +
- "swipe swipeleft swiperight scrollstart scrollstop orientationchange").split( " " );
+ components = [ "events/touch.js", "events/throttledresize.js", "events/orientationchange.js" ],
+ absFn = Math.abs,
+ originalEventFn = $.Event.prototype.originalEvent,
+ preventDefaultFn = $.Event.prototype.preventDefault,
+ events = ("touchstart touchmove touchend tap taphold " +
+ "swipe swipeleft swiperight scrollstart scrollstop orientationchange").split( " " );
module(libName, {
setup: function(){
View
6 tests/unit/event/index.html
@@ -14,9 +14,9 @@
<script src="../../../js/jquery.mobile.define.js"></script>
<script src="../../../js/jquery.mobile.events.js"></script>
- <script src="../../../js/jquery.mobile.events.touch.js"></script>
- <script src="../../../js/jquery.mobile.events.throttledresize.js"></script>
- <script src="../../../js/jquery.mobile.events.orientationchange.js"></script>
+ <script src="../../../js/events/touch.js"></script>
+ <script src="../../../js/events/throttledresize.js"></script>
+ <script src="../../../js/events/orientationchange.js"></script>
<script src="../../../js/"></script>
Please sign in to comment.
Something went wrong with that request. Please try again.