XObject.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:12:34 +0000 (17:12 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:12:34 +0000 (17:12 +0800)
XObject.js

index e70cbdd..b2e4d85 100644 (file)
@@ -58,7 +58,7 @@ function XObject (cfg) {
     
     for (var i in cfg) {
         this[i] = cfg[i];
-        if ((typeof(cfg[i]) == 'function') || (typeof(cfg[i]) == 'function')) {
+        if ((typeof(cfg[i]) == 'function') || (typeof(cfg[i]) == 'object')) {
             continue;
         }
         // these properties are not copied to cfg.