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 3.2.1 - Released 04/27/2010
[extjs.git]
/
src
/
core
/
Element.keys.js
diff --git
a/src/core/Element.keys.js
b/src/core/Element.keys.js
index
2318f49
..
e5a2e1d
100644
(file)
--- a/
src/core/Element.keys.js
+++ b/
src/core/Element.keys.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.2.
0
+ * Ext JS Library 3.2.
1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-18,7
+18,7
@@
Ext.Element.addMethods({
*/
addKeyListener : function(key, fn, scope){
var config;
*/
addKeyListener : function(key, fn, scope){
var config;
- if(
!Ext.isObject(key)
|| Ext.isArray(key)){
+ if(
typeof key != 'object'
|| Ext.isArray(key)){
config = {
key: key,
fn: fn,
config = {
key: key,
fn: fn,
@@
-45,4
+45,4
@@
Ext.Element.addMethods({
addKeyMap : function(config){
return new Ext.KeyMap(this, config);
}
addKeyMap : function(config){
return new Ext.KeyMap(this, config);
}
-});
\ No newline at end of file
+});