| Index: chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
|
| diff --git a/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html b/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
|
| index a83ffd2c6d2f1bf130c4b9ade01834df88e1bcd2..bcf0413f29691b28f409c0e61a4fc4d1ba669f8e 100644
|
| --- a/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
|
| +++ b/chrome/common/extensions/docs/examples/api/devtools/panels/chrome-query/devtools.html
|
| @@ -1,28 +1,5 @@
|
| <html>
|
| <body>
|
| -<script type="text/javascript">
|
| -// The function below is executed in the context of the inspected page.
|
| -var page_getProperties = function() {
|
| - var data = window.jQuery && $0 ? jQuery.data($0) : {};
|
| - // Make a shallow copy with a null prototype, so that sidebar does not
|
| - // expose prototype.
|
| - var props = Object.getOwnPropertyNames(data);
|
| - var copy = { __proto__: null };
|
| - for (var i = 0; i < props.length; ++i)
|
| - copy[props[i]] = data[props[i]];
|
| - return copy;
|
| -}
|
| -
|
| -chrome.devtools.panels.elements.createSidebarPane(
|
| - "jQuery Properties",
|
| - function(sidebar) {
|
| - function updateElementProperties() {
|
| - sidebar.setExpression("(" + page_getProperties.toString() + ")()");
|
| - }
|
| - updateElementProperties();
|
| - chrome.devtools.panels.elements.onSelectionChanged.addListener(
|
| - updateElementProperties);
|
| -});
|
| -</script>
|
| +<script src="devtools.js"></script>
|
| </body>
|
| -</html>
|
| +</html>
|
|
|