mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -05:00
Add getRoot method
This commit is contained in:
parent
230520645b
commit
5b4aa6b764
3 changed files with 8 additions and 2 deletions
|
@ -2396,6 +2396,9 @@ proto.didError = function ( error ) {
|
||||||
proto.getDocument = function () {
|
proto.getDocument = function () {
|
||||||
return this._doc;
|
return this._doc;
|
||||||
};
|
};
|
||||||
|
proto.getRoot = function () {
|
||||||
|
return this._root;
|
||||||
|
};
|
||||||
|
|
||||||
// --- Events ---
|
// --- Events ---
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -190,6 +190,9 @@ proto.didError = function ( error ) {
|
||||||
proto.getDocument = function () {
|
proto.getDocument = function () {
|
||||||
return this._doc;
|
return this._doc;
|
||||||
};
|
};
|
||||||
|
proto.getRoot = function () {
|
||||||
|
return this._root;
|
||||||
|
};
|
||||||
|
|
||||||
// --- Events ---
|
// --- Events ---
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue