datasource-jsonschema-debug.js revision 32b6fd78d1787b0afecb1970111f14a46a569aa7
88f849e5723c03ee1476b48a345c791034ab5681Adam Moore * Extends DataSource with schema-parsing on JSON data.
88f849e5723c03ee1476b48a345c791034ab5681Adam Moore * @module datasource
var DataSourceJSONSchema = function() {
ATTRS: {
schema: {
_beforeDefDataFn: function(e) {
var data = (Y.DataSource.IO && (this.get("host") instanceof Y.DataSource.IO) && Y.Lang.isString(e.data.responseText)) ? e.data.responseText : e.data,
if(!response) {
response = {
meta: {},