<commit_before>(function (mw, $) {
	"use strict";

	mw.PluginManager.add('logo', mw.KBaseComponent.extend({

		defaultConfig: {
			parent: "controlsContainer",
			order: 41,
			displayImportance: 'low',
			align: "right",
			cssClass: "kaltura-logo",
			href: null,
			title: null,
			img: null
		},
		getComponent: function () {
			var _this = this;
			if (!this.$el) {
				var $img = [];
				if (this.getConfig('img')) {
					$img = $('<img />')
						.attr({
							alt: this.getConfig('title'),
							src: this.getConfig('img')
						});
				}
				this.$el = $('<div />')
					.addClass(this.getCssClass())
					.addClass('btn')
					.append(
						$('<a />')
							.addClass('btnFixed')
							.click(function () {
								if( _this.isDisabled ) return ;
								if (_this.getConfig('href')) {
									if (mw.isNativeApp()) {
										_this.openInNativeApp();
									} else {
										window.open(_this.getConfig('href'), "_blank");
									}
								}
							})
							.attr({
								'title': this.getConfig('title')
							}).append($img)
					);
			}
			// remove Kaltura logo image if we have a custom logo icon
			if (this.getConfig('img') != null) {
				this.$el.removeClass('kaltura-logo');
			}
			return this.$el;
		},
		openInNativeApp: function () {
			var params = {
				actionType: 'openURL',
				url: this.getConfig('href')
			}
			this.getPlayer().doNativeAction(JSON.stringify(params));
		}

	}));

})(window.mw, window.jQuery);<commit_msg>#SUP-6057 #comment remove width/height IE issue #time 2h<commit_after>(function (mw, $) {
	"use strict";

	mw.PluginManager.add('logo', mw.KBaseComponent.extend({

		defaultConfig: {
			parent: "controlsContainer",
			order: 41,
			displayImportance: 'low',
			align: "right",
			cssClass: "kaltura-logo",
			href: null,
			title: null,
			img: null
		},
		getComponent: function () {
			var _this = this;
			if (!this.$el) {
				var $img = [];
				if (this.getConfig('img')) {
					$img = $('<img />')
						.attr({
							alt: this.getConfig('title'),
							src: this.getConfig('img')
						}).removeAttr("width height");
				}
				this.$el = $('<div />')
					.addClass(this.getCssClass())
					.addClass('btn')
					.append(
						$('<a />')
							.addClass('btnFixed')
							.click(function () {
								if( _this.isDisabled ) return ;
								if (_this.getConfig('href')) {
									if (mw.isNativeApp()) {
										_this.openInNativeApp();
									} else {
										window.open(_this.getConfig('href'), "_blank");
									}
								}
							})
							.attr({
								'title': this.getConfig('title')
							}).append($img)
					);
			}
			// remove Kaltura logo image if we have a custom logo icon
			if (this.getConfig('img') != null) {
				this.$el.removeClass('kaltura-logo');
			}
			return this.$el;
		},
		openInNativeApp: function () {
			var params = {
				actionType: 'openURL',
				url: this.getConfig('href')
			}
			this.getPlayer().doNativeAction(JSON.stringify(params));
		}

	}));

})(window.mw, window.jQuery);
{'fraction_non_alphanumeric': 0.18538205980066444, 'fraction_numerical': 0.002990033222591362, 'mean_word_length': 2.316079295154185, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1548180', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1007, 'n_words': 192}