Page MenuHomeWickedGov Phorge

tinyve.ce.Document.js
No OneTemporary

Size
804 B
Referenced Files
None
Subscribers
None

tinyve.ce.Document.js

/**
* TinyVE CE Document - ContentEditable representation of the document content
*
* This is a toy version of ve.ce.Document which illustrates the main concepts
*/
/**
* ContentEditable representation of the document content
*
* @class
*
* @constructor
* @param {tinyve.dm.Document} model Model for which this object is a view
* @param {tinyve.ce.Surface} surface Surface the document is part of
*/
tinyve.ce.Document = function TinyVeCeDocument( model, surface ) {
/**
* @property {tinyve.dm.Document} model Model for which this object is a view
*/
this.model = model;
/**
* @property {tinyve.ce.Node} documentNode Tree of CE nodes that own DOM elements
*/
this.documentNode = surface.buildNode( model.documentNode );
};
/* Inheritance */
OO.initClass( tinyve.ce.Document );

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 14:23 (6 h, 9 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/c4/db0aaa8be04c378d191b936788be
Default Alt Text
tinyve.ce.Document.js (804 B)

Event Timeline