OLD | NEW |
1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
4 | 4 |
5 <!-- | 5 <!-- |
6 Use to make all links in a component view navigation aware. This will trap | 6 Use to make all links in a component view navigation aware. This will trap |
7 clicks to links in that component and then redirect the navigation to the | 7 clicks to links in that component and then redirect the navigation to the |
8 <cr-view> component by dispatching a "navigate" event. | 8 <cr-view> component by dispatching a "navigate" event. |
9 | 9 |
10 To use just add the component to the <template> inside all components that | 10 To use just add the component to the <template> inside all components that |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 }, | 57 }, |
58 enclosingTreeScope: function() { | 58 enclosingTreeScope: function() { |
59 var scope = this; | 59 var scope = this; |
60 while (scope.parentNode) | 60 while (scope.parentNode) |
61 scope = scope.parentNode; | 61 scope = scope.parentNode; |
62 return scope; | 62 return scope; |
63 }, | 63 }, |
64 }); | 64 }); |
65 </script> | 65 </script> |
66 </polymer-element> | 66 </polymer-element> |
OLD | NEW |