Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created January 12, 2012 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsmith/1599086 to your computer and use it in GitHub Desktop.
Save lsmith/1599086 to your computer and use it in GitHub Desktop.
Patch for datatable-datasource to work with gallery-datatable-350-preview
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