r97572 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97571‎ | r97572 | r97573 >
Date:23:11, 19 September 2011
Author:tparscal
Status:deferred
Tags:
Comment:
* Added es.ContentController
* Added inheritance to block and document controllers
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js (modified) (history)
  • /trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js (added) (history)
  • /trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js (modified) (history)

Diff [purge]

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 );
44 };
55
66 es.BlockController.prototype.commit = function( transaction ) {
@@ -21,3 +21,7 @@
2222 es.BlockController.prototype.prepareAnnotateContent = function( range, annotation ) {
2323 // generate transaction
2424 };
 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 );
44 };
55
66 es.DocumentController.prototype.commit = function( transaction ) {
@@ -21,3 +21,7 @@
2222 es.DocumentController.prototype.prepareAnnotateContent = function( range, annotation ) {
2323 // generate transaction
2424 };
 25+
 26+/* Inheritance */
 27+
 28+es.extend( es.DocumentController, es.ControllerList );

Status & tagging log