Index: trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js |
— | — | @@ -1,5 +1,5 @@ |
2 | | -es.BlockController = function() { |
3 | | - // manage interactions |
| 2 | +es.BlockController = function( blockView ) { |
| 3 | + es.ControllerItem.call( this, blockView ); |
4 | 4 | }; |
5 | 5 | |
6 | 6 | es.BlockController.prototype.commit = function( transaction ) { |
— | — | @@ -21,3 +21,7 @@ |
22 | 22 | es.BlockController.prototype.prepareAnnotateContent = function( range, annotation ) { |
23 | 23 | // generate transaction |
24 | 24 | }; |
| 25 | + |
| 26 | +/* Inheritance */ |
| 27 | + |
| 28 | +es.extend( es.BlockController, es.ControllerItem ); |
Index: trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js |
— | — | @@ -0,0 +1,27 @@ |
| 2 | +es.ContentController = function( contentView ) { |
| 3 | + this.contentView = contentView; |
| 4 | +}; |
| 5 | + |
| 6 | +es.ContentController.prototype.commit = function( transaction ) { |
| 7 | + // commit transaction |
| 8 | +}; |
| 9 | + |
| 10 | +es.ContentController.prototype.rollback = function( transaction ) { |
| 11 | + // rollback transaction |
| 12 | +}; |
| 13 | + |
| 14 | +es.ContentController.prototype.prepareInsertContent = function( offset, content ) { |
| 15 | + // generate transaction |
| 16 | +}; |
| 17 | + |
| 18 | +es.ContentController.prototype.prepareRemoveContent = function( range ) { |
| 19 | + // generate transaction |
| 20 | +}; |
| 21 | + |
| 22 | +es.ContentController.prototype.prepareAnnotateContent = function( range, annotation ) { |
| 23 | + // generate transaction |
| 24 | +}; |
| 25 | + |
| 26 | +/* Inheritance */ |
| 27 | + |
| 28 | +es.extend( es.ContentController ); |
Index: trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js |
— | — | @@ -1,5 +1,5 @@ |
2 | | -es.DocumentController = function() { |
3 | | - // manage interactions |
| 2 | +es.DocumentController = function( documentView ) { |
| 3 | + es.ControllerList.call( this, documentView ); |
4 | 4 | }; |
5 | 5 | |
6 | 6 | es.DocumentController.prototype.commit = function( transaction ) { |
— | — | @@ -21,3 +21,7 @@ |
22 | 22 | es.DocumentController.prototype.prepareAnnotateContent = function( range, annotation ) { |
23 | 23 | // generate transaction |
24 | 24 | }; |
| 25 | + |
| 26 | +/* Inheritance */ |
| 27 | + |
| 28 | +es.extend( es.DocumentController, es.ControllerList ); |