fix typo in split.js
This commit is contained in:
parent
ce891c2c2e
commit
544cb09499
1 changed files with 7 additions and 7 deletions
|
|
@ -56,7 +56,7 @@ var Split = function(container, theme, splits) {
|
||||||
this.$splits = 0;
|
this.$splits = 0;
|
||||||
this.$editorCSS = "";
|
this.$editorCSS = "";
|
||||||
this.$editors = [];
|
this.$editors = [];
|
||||||
this.$oriantation = this.BESIDE;
|
this.$orientation = this.BESIDE;
|
||||||
|
|
||||||
this.setSplits(splits || 1);
|
this.setSplits(splits || 1);
|
||||||
this.$cEditor = this.$editors[0];
|
this.$cEditor = this.$editors[0];
|
||||||
|
|
@ -213,15 +213,15 @@ var Split = function(container, theme, splits) {
|
||||||
return session;
|
return session;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getOriantation = function() {
|
this.getOrientation = function() {
|
||||||
return this.$oriantation;
|
return this.$orientation;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setOriantation = function(oriantation) {
|
this.setOrientation = function(orientation) {
|
||||||
if (this.$oriantation == oriantation) {
|
if (this.$orientation == orientation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$oriantation = oriantation;
|
this.$orientation = orientation;
|
||||||
this.resize();
|
this.resize();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -230,7 +230,7 @@ var Split = function(container, theme, splits) {
|
||||||
var height = this.$container.clientHeight;
|
var height = this.$container.clientHeight;
|
||||||
var editor;
|
var editor;
|
||||||
|
|
||||||
if (this.$oriantation == this.BESIDE) {
|
if (this.$orientation == this.BESIDE) {
|
||||||
var editorWidth = width / this.$splits;
|
var editorWidth = width / this.$splits;
|
||||||
for (var i = 0; i < this.$splits; i++) {
|
for (var i = 0; i < this.$splits; i++) {
|
||||||
editor = this.$editors[i];
|
editor = this.$editors[i];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue