phpldapadmin/application/media/js/dojo-release-1.7.2/dojox/wire/TextAdapter.js

34 lines
790 B
JavaScript
Raw Normal View History

2012-06-19 02:07:43 +00:00
//>>built
define(["dijit","dojo","dojox","dojo/require!dojox/wire/CompositeWire"],function(_1,_2,_3){
_2.provide("dojox.wire.TextAdapter");
_2.require("dojox.wire.CompositeWire");
_2.declare("dojox.wire.TextAdapter",_3.wire.CompositeWire,{_wireClass:"dojox.wire.TextAdapter",constructor:function(_4){
this._initializeChildren(this.segments);
if(!this.delimiter){
this.delimiter="";
}
},_getValue:function(_5){
if(!_5||!this.segments){
return _5;
}
var _6="";
for(var i in this.segments){
var _7=this.segments[i].getValue(_5);
_6=this._addSegment(_6,_7);
}
return _6;
},_setValue:function(_8,_9){
throw new Error("Unsupported API: "+this._wireClass+"._setValue");
},_addSegment:function(_a,_b){
if(!_b){
return _a;
}else{
if(!_a){
return _b;
}else{
return _a+this.delimiter+_b;
}
}
}});
});