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

index b06816c..97badd2 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 = document.body;
+        
+        var target = Roo.get(c).select('a[name=' + this.href.replace('#', '') +']', true).first();
         
         if(!target){
             return;