summaryrefslogtreecommitdiffstats
path: root/js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js')
-rw-r--r--js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js b/js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js
new file mode 100644
index 000000000..01ae3e1b1
--- /dev/null
+++ b/js/yui3/datatable-datasource-deprecated/datatable-datasource-deprecated-min.js
@@ -0,0 +1,7 @@
+/*
+YUI 3.7.3 (build 5687)
+Copyright 2012 Yahoo! Inc. All rights reserved.
+Licensed under the BSD License.
+http://yuilibrary.com/license/
+*/
+YUI.add("datatable-datasource-deprecated",function(b){function a(){a.superclass.constructor.apply(this,arguments);}b.mix(a,{NS:"datasource",NAME:"dataTableDataSource",ATTRS:{datasource:{setter:"_setDataSource"},initialRequest:{setter:"_setInitialRequest"}}});b.extend(a,b.Plugin.Base,{_setDataSource:function(c){return c||new b.DataSource.Local(c);},_setInitialRequest:function(c){},initializer:function(c){if(!b.Lang.isUndefined(c.initialRequest)){this.load({request:c.initialRequest});}},load:function(c){c=c||{};c.request=c.request||this.get("initialRequest");c.callback=c.callback||{success:b.bind(this.onDataReturnInitializeTable,this),failure:b.bind(this.onDataReturnInitializeTable,this),argument:this.get("host").get("state")};var d=(c.datasource||this.get("datasource"));if(d){d.sendRequest(c);}},onDataReturnInitializeTable:function(d){var c=(d.response&&d.response.results)||[];this.get("host").get("recordset").set("records",c);}});b.namespace("Plugin").DataTableDataSource=a;},"3.7.3",{requires:["datatable-base-deprecated","plugin","datasource-local"]}); \ No newline at end of file