1Ext.override(Ext.form.field.Base, { 2 setFieldLabel: function($Label) { 3 this.fieldLabel = $Label; 4 Ext.get(this.getEl().query("label")[0]).update(this.fieldLabel+this.labelSeparator); 5 console.log(this.fieldLabel); 6 } 7}); 8 9 10/* 11Ext.override(Ext.dom.AbstractElement, { 12 setStyle: function(prop, value) { 13 var me = this, 14 dom = me.dom, 15 hooks = me.styleHooks, 16 style = dom.style, 17 name = prop, 18 hook; 19 20 // we don't promote the 2-arg form to object-form to avoid the overhead... 21 if (typeof name == 'string') { 22 hook = hooks[name]; 23 if (!hook) { 24 hooks[name] = hook = { name: Element.normalize(name) }; 25 } 26 value = (value == null) ? '' : value; 27 if (hook.set) { 28 hook.set(dom, value, me); 29 } else { 30 //////////////////////////////////////////////////////////////////
31 ////////////////////////////////////////////////////////////////// 32 ////////////////////////////////////////////////////////////////// 33 ////////////////////////////////////////////////////////////////// 34 if (isNaN(value)) { 35 //value = ''; 36 } 37 console.log('value: '+value); 38 ////////////////////////////////////////////////////////////////// 39 ////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////// 42 style[hook.name] = value; 43 } 44 if (hook.afterSet) { 45 hook.afterSet(dom, value, me); 46 } 47 } else { 48 for (name in prop) { 49 if (prop.hasOwnProperty(name)) { 50 hook = hooks[name]; 51 if (!hook) { 52 hooks[name] = hook = { name: Element.normalize(name) }; 53 } 54 value = prop[name]; 55 value = (value == null) ? '' : value; 56 if (hook.set) { 57 hook.set(dom, value, me); 58 } else { 59 style[hook.name] = value; 60 } 61 if (hook.afterSet) { 62 hook.afterSet(dom, value, me); 63 } 64 } 65 } 66 } 67 68 return me; 69 } 70}); 71*/ 72 73 74Ext.define('Ext.form.SubmitFix', { 75 override: 'Ext.ZIndexManager', 76 77 78 register : function(comp) { 79 var me = this, 80 compAfterHide = comp.afterHide; 81 82 if (comp.zIndexManager) { 83 comp.zIndexManager.unregister(comp); 84 } 85 comp.zIndexManager = me; 86 87 me.list[comp.id] = comp; 88 me.zIndexStack.push(comp); 89 90 // Hook into Component's afterHide processing 91 comp.afterHide = function() { 92 compAfterHide.apply(comp, arguments); 93 me.onComponentHide(comp); 94 }; 95 }, 96 97 /** 98 * Unregisters a {@link Ext.Component} from this ZIndexManager. This should not 99 * need to be called. Components are automatically unregistered upon destruction. 100 * See {@link #register}. 101 * @param {Ext.Component} comp The Component to unregister. 102 */ 103 unregister : function(comp) { 104 var me = this, 105 list = me.list; 106 107 delete comp.zIndexManager; 108 if (list && list[comp.id]) { 109 delete list[comp.id]; 110 111 // Relinquish control of Component's afterHide processing 112 delete comp.afterHide; 113 Ext.Array.remove(me.zIndexStack, comp); 114 115 // Destruction requires that the topmost visible floater be activated. Same as hiding. 116 me._activateLast(); 117 } 118 } 119 120});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.