datasource-jsonparser-debug.js revision 404905c7e219f117d5a09626421a02d395bb110e
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * Extends DataSource with schema-based JSON parsing functionality.
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @module datasource
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @submodule datasource-dataparser
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * Adds parsability to the YUI DataSource utility.
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @class DataSourceJSONParser
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @extends Plugin
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smithvar DataSourceJSONParser = function() {
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith DataSourceJSONParser.superclass.constructor.apply(this, arguments);
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * The namespace for the plugin. This will be the property on the host which
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * references the plugin instance.
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @property NS
eb6c1c09177446c3a7fa974e4658cbd555c5be18Luke Smith * @type String
a3b15d60042c81a524cebb94370e5a234a19d04bLuke Smith * @value "parser"
ATTRS: {
parser: {
readOnly: true,
useRef: true
schema: {
_beforeDefDataFn: function(e) {
if(!response) {
response = {
meta: {},