function BraceDiff(props) {
if (!(this instanceof BraceDiff)) return new BraceDiff(props);
EventEmitter.call(this);
this.ready = false;
this.props = props;
this.props.left = this.props.left||{};
this.props.right = this.props.right||{};
this.editorLeft = null;
this.editorRight = null;
this.$element = null;
this.diffWorker = props.diffWorker;
if (!this.diffWorker) {
var workerUrl = (URL || webkitURL).createObjectURL(new Blob([diffWorker_js_txt], { type: 'application/javascript' }));
this.diffWorker = new IFrameBridge(new Worker(workerUrl));
}
this.lastFocusEditor = null;
this._changeTimeOut = false;
this._attachedTo(props.element);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
function BraceDiff(option) {
if (!(this instanceof BraceDiff)) return new BraceDiff(option);
EventEmitter.call(this);
this.ready = false;
this._option = option;
this.editorLeft = null;
this.editorRight = null;
this.$element = null;
this.diffWorker = option.diffWorker;
if (!this.diffWorker) {
var workerUrl = (URL || webkitURL).createObjectURL(new Blob([diffWorker_js_txt], { type: 'application/javascript' }));
this.diffWorker = new IFrameBridge(new Worker(workerUrl));
}
this.lastFocusEditor = null;
this._changeTimeOut = false;
this._attachedTo(option.element);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
function BraceDiff(option) {
if (!(this instanceof BraceDiff)) return new BraceDiff(option);
EventEmitter.call(this);
this.ready = false;
this._option = option;
this.editorLeft = null;
this.editorRight = null;
this.$element = null;
this.diffWorker = option.diffWorker;
if (!this.diffWorker) {
var workerUrl = (URL || webkitURL).createObjectURL(new Blob([diffWorker_js_txt], { type: 'application/javascript' }));
this.diffWorker = new IFrameBridge(new Worker(workerUrl));
}
this.lastFocusEditor = null;
this._changeTimeOut = false;
this._attachedTo(option.element);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX