/*!

* sense-media-box - Include web pages, videos, images and much more into your Qlik Sense app.
* --
* @version v0.4.3
* @link https://github.com/stefanwalther/sense-media-box
* @author Stefan Walther
* @license MIT
*/

/*global define*/
define(["angular","qvangular"],function(angular,qvangular){"use strict";qvangular.directive("resize",["$window",function($window){function link(scope,element,attrs){function onResize(){scope.width=$window.innerWidth,scope.$digest()}function cleanUp(){angular.element($window).off("resize",onResize)}scope.width=$window.innerWidth,angular.element($window).on("resize",onResize),scope.$on("$destroy",cleanUp)}return{link:link,restrict:"A"}}])});