Permalink
Browse files

Port flat json writer to ST2.

  • Loading branch information...
1 parent eb866d1 commit 974fa926342eb18f36609d886cd2a9b2488136da @abierbaum abierbaum committed Mar 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/vrs.Util.js
View
@@ -31,10 +31,10 @@ Ext.format = Ext.util.Format.format;
*
* Just write as one json object or a list of json objects.
*/
-vrs.FlatJsonWriter = Ext.extend(Ext.data.JsonWriter, {
- constructor: function(config) {
- vrs.FlatJsonWriter.superclass.constructor.call(this, config);
- },
+Ext.define('vrs.FlatJsonWriter', {
+ extend: 'Ext.data.writer.Json',
+
+ alias: 'writer.json_flat', // Register the writer.
writeRecords: function(request, data) {
var local_data = data;

0 comments on commit 974fa92

Please sign in to comment.