Sha256: 7f7abc27f43d5998ec9947be298d1f490479025b5cb3559d778d2396fa418c62

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

//>>built
define("dojox/mvc/Element",["dojo/_base/declare","dijit/_WidgetBase"],function(_1,_2){
return _1("dojox.mvc.Element",_2,{_setInnerTextAttr:{node:"domNode",type:"innerText"},_setInnerHTMLAttr:{node:"domNode",type:"innerHTML"},buildRendering:function(){
this.inherited(arguments);
if(/select|input|textarea/i.test(this.domNode.tagName)){
var _3=this,_4=this.focusNode=this.domNode;
this.on("change",function(e){
var _5=/^checkbox$/i.test(_4.getAttribute("type"))?"checked":"value";
_3._set(_5,_3.get(_5));
});
}
},_getCheckedAttr:function(){
return this.domNode.checked;
},_getValueAttr:function(){
return this.domNode.value;
}});
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/mvc/Element.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/mvc/Element.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/mvc/Element.js
dojox-rails-0.11.0 vendor/assets/javascripts/mvc/Element.js