app.js 695 B

12345678910111213141516171819202122232425
  1. var App = (function(lng, undefined) {
  2. var _getEnvironmentFromQuoJS = (function() {
  3. var environment = lng.Core.environment();
  4. if (environment.isMobile) {
  5. alert('Your Device is ' + environment.os.name + ' (' + environment.os.version + ')');
  6. }
  7. })();
  8. eventConsole = function(event) {
  9. $$('#touchevents-console').html($$(event.target).data('event'));
  10. };
  11. triggerCapture = function(event) {
  12. event.stopPropagation();
  13. Lungo.Notification.success("Event: " + event.type, "Layout events manager", "info", 2);
  14. };
  15. return {
  16. eventConsole: eventConsole,
  17. triggerCapture: triggerCapture
  18. };
  19. })(Lungo);