Created
January 12, 2012 06:39
-
-
Save lsmith/1599086 to your computer and use it in GitHub Desktop.
Patch for datatable-datasource to work with gallery-datatable-350-preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add('datatabledatasource-350-preview-patch', function (Y) { | |
// Or just put this in your code directly | |
Y.Plugin.DataTableDataSource.prototype.onDataReturnInitializeTable = function (e) { | |
this.get('host').set('data', (e.response && e.response.results) || []); | |
}; | |
}, '0.1', { requires: ['datatable-datasource'] }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment