This repository was archived by the owner on Feb 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
var panels = chrome && chrome . devtools && chrome . devtools . panels ;
2
2
3
- function getScope ( node ) {
4
- var scope = window . angular . element ( node ) . scope ( ) ;
5
- if ( ! scope ) {
6
- // Might be a child of a DocumentFragment...
7
- while ( node && node . nodeType === 1 ) node = node . parentNode ;
8
- if ( node && node . nodeType === 11 ) node = ( node . parentNode || node . host ) ;
9
- return getScope ( node ) ;
10
- }
11
- return scope ;
12
- }
13
-
14
3
// The function below is executed in the context of the inspected page.
15
4
16
5
var getPanelContents = function ( ) {
@@ -39,6 +28,17 @@ var getPanelContents = function () {
39
28
} else {
40
29
return { } ;
41
30
}
31
+
32
+ function getScope ( node ) {
33
+ var scope = window . angular . element ( node ) . scope ( ) ;
34
+ if ( ! scope ) {
35
+ // Might be a child of a DocumentFragment...
36
+ while ( node && node . nodeType === 1 ) node = node . parentNode ;
37
+ if ( node && node . nodeType === 11 ) node = ( node . parentNode || node . host ) ;
38
+ return getScope ( node ) ;
39
+ }
40
+ return scope ;
41
+ }
42
42
} ;
43
43
44
44
panels && panels . elements . createSidebarPane (
@@ -52,7 +52,7 @@ panels && panels.elements.createSidebarPane(
52
52
var angularPanel = panels . create (
53
53
"AngularJS" ,
54
54
"img/angular.png" ,
55
- "panel.html"
55
+ "panel/app .html"
56
56
) ;
57
57
} ) ;
58
58
You can’t perform that action at this time.
0 commit comments