/*!
* IFrameActivationListener JavaScript Library v1.0
* https://github.com/SammySoft/IFrameActivationListener
*
*
* Copyright 2016 SammySoft
* Released under the MIT license
*
* Date: Fri Jan 21 2016 20:00:00 GMT+01:00
* 
* Copyright (c) 2016 SammySoft
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
* 
* The above copyright notice and this permission notice
* shall be included in all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
(function ($)
{
	var IFrameActivationListener = function () {
		'use strict';

		var
			intervalId = undefined,
			oldActiveElement = undefined,
			startListening = function ()
			{
				this.off("mouseover", iframeMouseOver);
				this.on("mouseover", iframeMouseOver);

				this.off("mouseout", iframeMouseOut);
				this.on("mouseout", iframeMouseOut);
			},
			stopListening = function ()
			{
				this.off("mouseover", iframeMouseOver);
				this.off("mouseout", iframeMouseOut);
			},
			startWatching = function ()
			{
				if (intervalId === undefined)
				{
					oldActiveElement = document.activeElement;
					intervalId = setInterval(checkActiveElementChange, 100);
				}
			},
			stopWatching = function ()
			{
				if (intervalId !== undefined)
				{
					clearInterval(intervalId);
					intervalId = undefined;
				}
			},
			checkActiveElementChange = function ()
			{
				if (oldActiveElement !== document.activeElement)
				{
					if (document.activeElement.tagName.toLowerCase() === 'iframe')
					{
						var iframe = document.activeElement;

						stopWatching();

						$(iframe).trigger({
							type: "activate",
							target: iframe
						});
					}
				}
			},
			iframeMouseOver = function (ev)
			{
				if (ev.target === document.activeElement)
					return;

				startWatching();
			},
			iframeMouseOut = function (ev)
			{
				stopWatching();
			};

		return {
			startListening: startListening,
			stopListening: stopListening
		};
	}();
	$.fn.extend({
		IFrameActivationListener: IFrameActivationListener.startListening,
		IFrameActivationListenerStop: IFrameActivationListener.stopListening
	});
})(jQuery);

@@ -1,12 +1,13 @@
 /*!%0A
+ 
 * IFrame
@@ -49,16 +49,17 @@
 ry v1.0%0A
+ 
 * https:
@@ -110,12 +110,15 @@
 ner%0A
+ 
 *%0A
+ 
 *%0A
+ 
 * Co
@@ -140,16 +140,17 @@
 mmySoft%0A
+ 
 * Releas
@@ -174,18 +174,20 @@
 license%0A
+ 
 *%0A
+ 
 * Date: 
@@ -221,19 +221,21 @@
 T+01:00%0A
+ 
 * %0A
+ 
 * Copyri
@@ -257,19 +257,25 @@
 mmySoft%0A
+ 
 * %0A
+ * %0A 
 * Permis
@@ -344,16 +344,19 @@
 g a copy
+%0A *
  of this
@@ -364,18 +364,16 @@
 software
-%0A*
  and ass
@@ -425,16 +425,19 @@
  to deal
+%0A *
  in the 
@@ -465,18 +465,16 @@
 riction,
-%0A*
  includi
@@ -505,16 +505,19 @@
 e rights
+%0A *
  to use,
@@ -570,18 +570,16 @@
 license,
-%0A*
  and/or 
@@ -582,16 +582,19 @@
 /or sell
+%0A *
  copies 
@@ -655,16 +655,19 @@
 tware is
+%0A *
  furnish
@@ -678,18 +678,16 @@
 o do so,
-%0A*
  subject
@@ -716,19 +716,21 @@
 itions:%0A
+ 
 * %0A
+ 
 * The ab
@@ -776,18 +776,16 @@
 n notice
-%0A*
  shall b
@@ -801,16 +801,19 @@
 d in all
+%0A *
  copies 
@@ -853,19 +853,21 @@
 ftware.%0A
+ 
 * %0A
+ 
 * THE SO
@@ -934,16 +934,19 @@
 PRESS OR
+%0A *
  IMPLIED
@@ -946,18 +946,16 @@
 IMPLIED,
-%0A*
  INCLUDI
@@ -1010,16 +1010,19 @@
 ABILITY,
+%0A *
  FITNESS
@@ -1067,18 +1067,16 @@
 NGEMENT.
-%0A*
  IN NO E
@@ -1089,16 +1089,19 @@
 HALL THE
+%0A *
  AUTHORS
@@ -1146,18 +1146,16 @@
 Y CLAIM,
-%0A*
  DAMAGES
@@ -1163,16 +1163,19 @@
 OR OTHER
+%0A *
  LIABILI
@@ -1230,18 +1230,16 @@
 HERWISE,
-%0A*
  ARISING
@@ -1244,16 +1244,19 @@
 NG FROM,
+%0A *
  OUT OF 
@@ -1321,24 +1321,27 @@
 LINGS IN THE
+%0A *
  SOFTWARE.%0A*
@@ -1339,16 +1339,17 @@
 FTWARE.%0A
+ 
 */%0A(func

Update jquery.iframeActivationListener.js