| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 525 | 89ef5ed3c48b |
| permissions | -rw-r--r-- |
| 525 | 1 |
/* |
2 |
YUI 3.10.3 (build 2fb5187) |
|
3 |
Copyright 2013 Yahoo! Inc. All rights reserved. |
|
4 |
Licensed under the BSD License. |
|
5 |
http://yuilibrary.com/license/ |
|
6 |
*/ |
|
7 |
||
8 |
YUI.add("datasource-function",function(e,t){var n=e.Lang,r=function(){r.superclass.constructor.apply(this,arguments)};e.mix(r,{NAME:"dataSourceFunction",ATTRS:{source:{validator:n.isFunction}}}),e.extend(r,e.DataSource.Local,{_defRequestFn:function(e){var t=this.get("source"),n=e.details[0];if(t)try{n.data=t(e.request,this,e)}catch(r){n.error=r}else n.error=new Error("Function data failure");return this.fire("data",n),e.tId}}),e.DataSource.Function=r},"3.10.3",{requires:["datasource-local"]}); |