<commit_before>import Ember from 'ember';
export default Ember.Component.extend({
	tagName : 'window-container',
	layoutName : 'window-container',
		
//	classNameBindings: ['showClass'],
	
	overlayClass: 'hidden',
	
	overlayStyle: ('z-index:1;').htmlSafe(),
	
	
	windowOverlayObserver: Ember.observer('windows.@each.visible,window.@each.modal',function(){
		
		this.set('overlayStyle',('z-index:1;').htmlSafe());		
		if(this.get('windows').findBy('modal',true)) {
			this.set('overlayClass','visible');
		} else{
			this.set('overlayClass','hidden');
		}
	}),
	 
	
	windows: Ember.computed.alias('service.windows'),
	
	width:Ember.computed.alias('_width').readOnly(),

	height:Ember.computed.alias('_height').readOnly(),
	
	_width: 0,
	
	_height: 0,
	
	service: Ember.inject.service('window-manager'),
	
	init: function() {
//		var application=this.container.lookup('application:main');		
//		application.register('ui:window-container', this,{ instantiate: false });		
//		this._service=this.container.lookup('service:window-manager');
		this.get('service').registerContainer(this);
//		this.set('windows',this.container.lookup('ui:windows'));
		this._super();
	},
	
	_updateSize : function() {
		this.set('_width', this.element.parentNode.offsetWidth);
		this.set('_height',this.element.parentNode.offsetHeight);
	},
	
	_resizeHandler : function(event) {
		event.data._updateSize();
	},
	
	ready : function () {
		
	},
	
	didInsertElement : function() {
		this._updateSize();
		this.$(window).on('resize',this,this._resizeHandler);
		this._super();
		this.ready();
	},
	
	destroy: function() {
		this.$(window).off('resize',this._resizeHandler)
	}
	
	
})<commit_msg>Fixed deprecation caused by windows-container component<commit_after>import Ember from 'ember';
export default Ember.Component.extend({
	tagName : 'window-container',
	layoutName : 'window-container',
		
//	classNameBindings: ['showClass'],
	
	overlayClass: 'hidden',
	
	overlayStyle: ('z-index:1;').htmlSafe(),
	
	
	windowOverlayObserver: Ember.observer('windows.@each.visible,window.@each.modal',function(){
		
		this.set('overlayStyle',('z-index:1;').htmlSafe());		
		if(this.get('windows').findBy('modal',true)) {
			this.set('overlayClass','visible');
		} else{
			this.set('overlayClass','hidden');
		}
	}),
	 
	
	windows: Ember.computed.alias('service.windows'),
	
	width:Ember.computed.alias('_width').readOnly(),

	height:Ember.computed.alias('_height').readOnly(),
	
	_width: 0,
	
	_height: 0,
	
	service: Ember.inject.service('window-manager'),
	
	init: function() {
//		var application=this.container.lookup('application:main');		
//		application.register('ui:window-container', this,{ instantiate: false });		
//		this._service=this.container.lookup('service:window-manager');
		this.get('service').registerContainer(this);
//		this.set('windows',this.container.lookup('ui:windows'));
		this._super();
	},
	
	_updateSize : function() {
		this.set('_width', this.element.parentNode.offsetWidth);
		this.set('_height',this.element.parentNode.offsetHeight);
	},
	
	_resizeHandler : function(event) {
		event.data._updateSize();
	},
	
	ready : function () {
		
	},
	
	didInsertElement : function() {
		this._updateSize();
		this.$(window).on('resize',this,this._resizeHandler);
		this._super();
		Ember.run.schedule('afterRender',this,this.ready);
	},
	
	destroy: function() {
		this.$(window).off('resize',this._resizeHandler)
	}
	
	
})
{'fraction_non_alphanumeric': 0.19249926750659244, 'fraction_numerical': 0.0023439789041898623, 'mean_word_length': 4.958115183246074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5882732', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1092, 'n_words': 135}