git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git]
/
src
/
grid
/
property
/
Grid.js
diff --git
a/src/grid/property/Grid.js
b/src/grid/property/Grid.js
index
8227d16
..
5aeb464
100644
(file)
--- a/
src/grid/property/Grid.js
+++ b/
src/grid/property/Grid.js
@@
-20,10
+20,13
@@
var grid = new Ext.grid.property.Grid({
</code></pre>
* @constructor
* @param {Object} config The grid config object
</code></pre>
* @constructor
* @param {Object} config The grid config object
+ * @xtype propertygrid
*/
Ext.define('Ext.grid.property.Grid', {
extend: 'Ext.grid.Panel',
*/
Ext.define('Ext.grid.property.Grid', {
extend: 'Ext.grid.Panel',
+
+ alias: 'widget.propertygrid',
alternateClassName: 'Ext.grid.PropertyGrid',
alternateClassName: 'Ext.grid.PropertyGrid',
@@
-213,12
+216,12
@@
var grid = Ext.create('Ext.grid.property.Grid', {
if (operation == Ext.data.Model.EDIT) {
v = record.get(me.valueField);
oldValue = record.modified.value;
if (operation == Ext.data.Model.EDIT) {
v = record.get(me.valueField);
oldValue = record.modified.value;
- if (me.fireEvent('beforepropertychange', me.source, record.
id
, v, oldValue) !== false) {
+ if (me.fireEvent('beforepropertychange', me.source, record.
getId()
, v, oldValue) !== false) {
if (me.source) {
if (me.source) {
- me.source[record.
id
] = v;
+ me.source[record.
getId()
] = v;
}
record.commit();
}
record.commit();
- me.fireEvent('propertychange', me.source, record.
id
, v, oldValue);
+ me.fireEvent('propertychange', me.source, record.
getId()
, v, oldValue);
} else {
record.reject();
}
} else {
record.reject();
}
@@
-232,7
+235,7
@@
var grid = Ext.create('Ext.grid.property.Grid', {
} else if (direction == 'right') {
direction = 'down';
}
} else if (direction == 'right') {
direction = 'down';
}
-
var
pos = Ext.view.Table.prototype.walkCells.call(this, pos, direction, e, preventWrap, verifierFn, scope);
+ pos = Ext.view.Table.prototype.walkCells.call(this, pos, direction, e, preventWrap, verifierFn, scope);
if (!pos.column) {
pos.column = 1;
}
if (!pos.column) {
pos.column = 1;
}
@@
-281,7
+284,9
@@
var grid = Ext.create('Ext.grid.property.Grid', {
destroyEditors: function (editors) {
for (var ed in editors) {
destroyEditors: function (editors) {
for (var ed in editors) {
- Ext.destroy(editors[ed]);
+ if (editors.hasOwnProperty(ed)) {
+ Ext.destroy(editors[ed]);
+ }
}
},
}
},