Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added some comments to syn.js

  • Loading branch information...
commit d3fe6b443fd280af1e65cf07f4865418e002592d 1 parent a650934
Pete Otaqui authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/Behat/Mink/Driver/Selenium2/syn.js
View
10 src/Behat/Mink/Driver/Selenium2/syn.js
@@ -1,4 +1,12 @@
-(function(){var e=function(k,a){for(var b in a)k[b]=a[b];return k},j={msie:!(!window.attachEvent||window.opera),opera:!!window.opera,webkit:-1<navigator.userAgent.indexOf("AppleWebKit/"),safari:-1<navigator.userAgent.indexOf("AppleWebKit/")&&-1===navigator.userAgent.indexOf("Chrome/"),gecko:-1<navigator.userAgent.indexOf("Gecko"),mobilesafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/),rhino:navigator.userAgent.match(/Rhino/)&&!0},m=function(k,a,b){k=b.ownerDocument.createEventObject();return e(k,
+/*
+Syn - a Standalone Synthetic Event Library.
+
+Syn is used to simulate user actions such as typing, clicking, dragging
+the mouse. It creates synthetic events and performs default event behavior.
+
+http://jupiterjs.com/news/syn-a-standalone-synthetic-event-library
+
+*/(function(){var e=function(k,a){for(var b in a)k[b]=a[b];return k},j={msie:!(!window.attachEvent||window.opera),opera:!!window.opera,webkit:-1<navigator.userAgent.indexOf("AppleWebKit/"),safari:-1<navigator.userAgent.indexOf("AppleWebKit/")&&-1===navigator.userAgent.indexOf("Chrome/"),gecko:-1<navigator.userAgent.indexOf("Gecko"),mobilesafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/),rhino:navigator.userAgent.match(/Rhino/)&&!0},m=function(k,a,b){k=b.ownerDocument.createEventObject();return e(k,
a)},h={},i=1,a="_synthetic"+(new Date).getTime(),b,d,g=/keypress|keyup|keydown/,c=/load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll/,l,f=function(k,a,b,g){return new f.init(k,a,b,g)};b=function(k,a,b){return k.addEventListener?k.addEventListener(a,b,!1):k.attachEvent("on"+a,b)};d=function(k,a,b){return k.addEventListener?k.removeEventListener(a,b,!1):k.detachEvent("on"+a,b)};e(f,{init:function(k,a,b,g){var c=f.args(a,b,g),d=this;this.queue=[];this.element=c.element;if("function"===
typeof this[k])this[k](c.options,c.element,function(k,a){c.callback&&c.callback.apply(d,arguments);d.done.apply(d,arguments)});else this.result=f.trigger(k,c.options,c.element),c.callback&&c.callback.call(this,c.element,this.result)},jquery:function(k){return window.FuncUnit&&window.FuncUnit.jquery?window.FuncUnit.jquery:k?f.helpers.getWindow(k).jQuery||window.jQuery:window.jQuery},args:function(){for(var k={},a=0;a<arguments.length;a++)if("function"===typeof arguments[a])k.callback=arguments[a];
else if(arguments[a]&&arguments[a].jquery)k.element=arguments[a][0];else if(arguments[a]&&arguments[a].nodeName)k.element=arguments[a];else if(k.options&&"string"===typeof arguments[a])k.element=document.getElementById(arguments[a]);else if(arguments[a])k.options=arguments[a];return k},click:function(a,b,c){f("click!",a,b,c)},defaults:{focus:function(){if(!f.support.focusChanges){var a=this,c=a.nodeName.toLowerCase();f.data(a,"syntheticvalue",a.value);("input"===c||"textarea"===c)&&b(a,"blur",function(){f.data(a,

0 comments on commit d3fe6b4

Please sign in to comment.
Something went wrong with that request. Please try again.