roojs-debug.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 07:04:54 +0000 (15:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 07:04:54 +0000 (15:04 +0800)
roojs-debug.js

index c9e0eed..3f5fb5a 100644 (file)
@@ -51449,7 +51449,7 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
         el = el || false;
         var hp = this.parent ? 1 : 0;
         
-        if (!el && typeof(this.parent) == 'string' && this.parent[0] == '#') {
+        if (!el && typeof(this.parent) == 'string' && this.parent.substring(0,1) == '#') {
             // if parent is a '#.....' string, then let's use that..
             var ename = this.parent.substr(1)
             this.parent = false;
@@ -51566,7 +51566,7 @@ Roo.apply(Roo.XComponent, {
         if (!str || typeof(str) == 'object') {
             return str;
         }
-        if (str[0]=='#') {
+        if (str.substring(0,1) == '#') {
             return str;
         }