+ return view;\r
+ },\r
+ setDocument: function(document) {\r
+ $('textarea', view).val(document);\r
+ isDirty = false;\r
+ },\r
+ getDocument: function() {\r
+ return $('textarea', view).val();\r
+ },\r
+ isDirty: function() {\r
+ return isDirty;\r
+ },\r
+ setDirty: function(dirty) {\r
+ isDirty = dirty;\r