Permalink
Browse files

Event, Event-Gesture and Seed build

  • Loading branch information...
1 parent d6b8a4c commit 89a667086029d45c8569ef6f9d7a7fea43b49cd8 @davglass committed Oct 6, 2012
Showing with 219 additions and 192 deletions.
  1. +117 −109 build/event-focus/event-focus-coverage.js
  2. +16 −10 build/event-focus/event-focus-debug.js
  3. +1 −1 build/event-focus/event-focus-min.js
  4. +16 −10 build/event-focus/event-focus.js
  5. +2 −2 build/event-move/event-move-coverage.js
  6. +1 −1 build/event-move/event-move-debug.js
  7. +1 −1 build/event-move/event-move-min.js
  8. +1 −1 build/event-move/event-move.js
  9. +2 −2 build/event-touch/event-touch-coverage.js
  10. +1 −1 build/event-touch/event-touch-debug.js
  11. +1 −1 build/event-touch/event-touch-min.js
  12. +1 −1 build/event-touch/event-touch.js
  13. +2 −2 build/loader-yui3/loader-yui3-coverage.js
  14. +1 −1 build/loader-yui3/loader-yui3-debug.js
  15. +1 −1 build/loader-yui3/loader-yui3-min.js
  16. +1 −1 build/loader-yui3/loader-yui3.js
  17. +1 −1 build/loader/loader-debug.js
  18. +1 −1 build/loader/loader-min.js
  19. +1 −1 build/loader/loader.js
  20. +7 −6 build/simpleyui/simpleyui-debug.js
  21. +1 −1 build/simpleyui/simpleyui-min.js
  22. +7 −6 build/simpleyui/simpleyui.js
  23. +2 −2 build/yui-base/yui-base-coverage.js
  24. +1 −1 build/yui-base/yui-base-debug.js
  25. +1 −1 build/yui-base/yui-base-min.js
  26. +1 −1 build/yui-base/yui-base.js
  27. +2 −2 build/yui-core/yui-core-coverage.js
  28. +1 −1 build/yui-core/yui-core-debug.js
  29. +1 −1 build/yui-core/yui-core-min.js
  30. +1 −1 build/yui-core/yui-core.js
  31. +2 −2 build/yui-nodejs/yui-nodejs-coverage.js
  32. +3 −2 build/yui-nodejs/yui-nodejs-debug.js
  33. +1 −1 build/yui-nodejs/yui-nodejs-min.js
  34. +3 −2 build/yui-nodejs/yui-nodejs.js
  35. +2 −2 build/yui/yui-coverage.js
  36. +3 −2 build/yui/yui-debug.js
  37. +1 −1 build/yui/yui-min.js
  38. +3 −2 build/yui/yui.js
  39. +1 −1 src/loader/js/yui3.js
  40. +7 −6 src/simpleyui/js/concat.js
Oops, something went wrong.
@@ -20,20 +20,26 @@ var Event = Y.Event,
// which throws an exception in Win8 packaged apps, due to additional security restrictions:
// http://msdn.microsoft.com/en-us/library/windows/apps/hh465380.aspx#differences
- var p = Y.config.doc.createElement("p"),
- listener;
+ var supported = false,
+ doc = Y.config.doc,
+ p;
- p.setAttribute("onbeforeactivate", ";");
- listener = p.onbeforeactivate;
+ if (doc) {
- // listener is a function in IE8+.
- // listener is a string in IE6,7 (unfortunate, but that's not going to change. Otherwise we could have just checked for function).
- // listener is a function in IE10, in a Win8 App environment (no exception running the test).
+ p = doc.createElement("p");
+ p.setAttribute("onbeforeactivate", ";");
- // listener is undefined in Webkit/Gecko.
- // listener is a function in Webkit/Gecko if it's a supported event (e.g. onclick).
+ // onbeforeactivate is a function in IE8+.
+ // onbeforeactivate is a string in IE6,7 (unfortunate, otherwise we could have just checked for function below).
+ // onbeforeactivate is a function in IE10, in a Win8 App environment (no exception running the test).
- return (listener !== undefined);
+ // onbeforeactivate is undefined in Webkit/Gecko.
+ // onbeforeactivate is a function in Webkit/Gecko if it's a supported event (e.g. onclick).
+
+ supported = (p.onbeforeactivate !== undefined);
+ }
+
+ return supported;
}());
function define(type, proxy, directEvent) {
Oops, something went wrong.
@@ -20,20 +20,26 @@ var Event = Y.Event,
// which throws an exception in Win8 packaged apps, due to additional security restrictions:
// http://msdn.microsoft.com/en-us/library/windows/apps/hh465380.aspx#differences
- var p = Y.config.doc.createElement("p"),
- listener;
+ var supported = false,
+ doc = Y.config.doc,
+ p;
- p.setAttribute("onbeforeactivate", ";");
- listener = p.onbeforeactivate;
+ if (doc) {
- // listener is a function in IE8+.
- // listener is a string in IE6,7 (unfortunate, but that's not going to change. Otherwise we could have just checked for function).
- // listener is a function in IE10, in a Win8 App environment (no exception running the test).
+ p = doc.createElement("p");
+ p.setAttribute("onbeforeactivate", ";");
- // listener is undefined in Webkit/Gecko.
- // listener is a function in Webkit/Gecko if it's a supported event (e.g. onclick).
+ // onbeforeactivate is a function in IE8+.
+ // onbeforeactivate is a string in IE6,7 (unfortunate, otherwise we could have just checked for function below).
+ // onbeforeactivate is a function in IE10, in a Win8 App environment (no exception running the test).
- return (listener !== undefined);
+ // onbeforeactivate is undefined in Webkit/Gecko.
+ // onbeforeactivate is a function in Webkit/Gecko if it's a supported event (e.g. onclick).
+
+ supported = (p.onbeforeactivate !== undefined);
+ }
+
+ return supported;
}());
function define(type, proxy, directEvent) {
Oops, something went wrong.
@@ -48,7 +48,7 @@ YUI.add('event-move', function (Y, NAME) {
NODE_TYPE = "nodeType",
- SUPPORTS_POINTER = Y.config.win && ("msPointerEnabled" in Y.config.win.navigator),
+ SUPPORTS_POINTER = Y.config.win && (("msMaxTouchPoints" in Y.config.win.navigator) && (Y.config.win.navigator.msMaxTouchPoints)),
_defArgsProcessor = function(se, args, delegate) {
var iConfig = (delegate) ? 4 : 3,
Oops, something went wrong.
@@ -48,7 +48,7 @@ YUI.add('event-move', function (Y, NAME) {
NODE_TYPE = "nodeType",
- SUPPORTS_POINTER = Y.config.win && ("msPointerEnabled" in Y.config.win.navigator),
+ SUPPORTS_POINTER = Y.config.win && (("msMaxTouchPoints" in Y.config.win.navigator) && (Y.config.win.navigator.msMaxTouchPoints)),
_defArgsProcessor = function(se, args, delegate) {
var iConfig = (delegate) ? 4 : 3,
Oops, something went wrong.

0 comments on commit 89a6670

Please sign in to comment.