Roo/bootstrap/NavItem.js
authoredward <edward@roojs.com>
Thu, 29 Oct 2015 03:29:21 +0000 (11:29 +0800)
committeredward <edward@roojs.com>
Thu, 29 Oct 2015 03:29:21 +0000 (11:29 +0800)
Roo/bootstrap/NavItem.js

index 01035d9..fc6e667 100644 (file)
@@ -253,7 +253,9 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
     
     scrollToElement : function()
     {
-        var target = Roo.get(document.body).select('a[name=' + this.href.replace('#', '') +']', true).first();
+        var c = Roo.get(document.body);
+        
+        var target = c.select('a[name=' + this.href.replace('#', '') +']', true).first();
         
         if(!target){
             return;