mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 15:21:51 +00:00
17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
|
/**
|
||
|
* Creates an es.SurfaceModel object.
|
||
|
*
|
||
|
* @class
|
||
|
* @constructor
|
||
|
* @param {es.DocumentModel} doc Document model to create surface for
|
||
|
*/
|
||
|
es.SurfaceModel = function( doc ) {
|
||
|
this.doc = doc;
|
||
|
};
|
||
|
|
||
|
/* Methods */
|
||
|
|
||
|
es.SurfaceModel.prototype.getDocument = function() {
|
||
|
return this.doc;
|
||
|
};
|