<commit_before>/**
 * AXSplit
 * @class AXSplit
 * @extends AXJ
 * @version v0.2
 * @author <EMAIL>
 * @logs
 * "2015-05-24 HJ.Park : data-min-width, data-max-width, data-min-height, data-max-height 속성 추가. % 단위 지원 추가"
 *
 */
var AXSplit = Class.create(AXJ, {
	initialize: function(AXJ_super) {
		AXJ_super();

	},
	init: function() {
		var cfg = this.config;

		if(!cfg.onwindowresize) cfg.onwindowresize = cfg.onWindowResize;
		if(!cfg.onready) cfg.onready = cfg.onReady;
		if(!cfg.onsplitresize) cfg.onsplitresize = cfg.onSplitResize;
		if(!cfg.onsplitresizeend) cfg.onsplitresizeend = cfg.onSplitResizeEnd;

		this.target = axdom("#"+cfg.targetID);
		this.target.attr("ondragstart", "return false");
		this.initChild(this.target);
		this.initEvent();
		axdom(window).resize(this.windowResize.bind(this));

		if(cfg.onready){
			cfg.onready.call({});
		}
	},
	windowResize: function () {
		this.windowResizeApply();

		/*
		var windowResizeApply = this.windowResizeApply.bind(this);
		if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
		this.windowResizeObserver = setTimeout(function () {<commit_msg>resize 이벤트 발생시 스크롤이 순간적으로 발생해서 길이가 줄어드는 경우 스크롤로 인해 계산에 오류가 생기는 버그 수정 https://github.com/axisj-com/axisj/issues/585<commit_after>/**
 * AXSplit
 * @class AXSplit
 * @extends AXJ
 * @version v0.2
 * @author <EMAIL>
 * @logs
 * "2015-05-24 HJ.Park : data-min-width, data-max-width, data-min-height, data-max-height 속성 추가. % 단위 지원 추가"
 *
 */
var AXSplit = Class.create(AXJ, {
	initialize: function(AXJ_super) {
		AXJ_super();

	},
	init: function() {
		var cfg = this.config;

		if(!cfg.onwindowresize) cfg.onwindowresize = cfg.onWindowResize;
		if(!cfg.onready) cfg.onready = cfg.onReady;
		if(!cfg.onsplitresize) cfg.onsplitresize = cfg.onSplitResize;
		if(!cfg.onsplitresizeend) cfg.onsplitresizeend = cfg.onSplitResizeEnd;

        $("html, body").css("overflow", "hidden"); // resize 이벤트 발생시 스크롤이 순간적으로 발생하는 현상을 막기위해 필수!

		this.target = axdom("#"+cfg.targetID);
		this.target.attr("ondragstart", "return false");
		this.initChild(this.target);
		this.initEvent();
		axdom(window).resize(this.windowResize.bind(this));

		if(cfg.onready){
			cfg.onready.call({});
		}
	},
	windowResize: function () {
		this.windowResizeApply();

		/*
		var windowResizeApply = this.windowResizeApply.bind(this);
		if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
		this.windowResizeObserver = setTimeout(function () {
{'fraction_non_alphanumeric': 0.15632653061224488, 'fraction_numerical': 0.009387755102040816, 'mean_word_length': 4.375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '2431233', 'n_tokens_mistral': 1014, 'n_tokens_neox': 1036, 'n_words': 160}