Skip to content

Commit

Permalink
Small chrome extension update
Browse files Browse the repository at this point in the history
  • Loading branch information
Irrelon committed May 30, 2013
1 parent 49d43a6 commit 730d5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/chrome-extension/panel.js
Expand Up @@ -13,7 +13,7 @@ function addToSG(item) {
if (!selectedItem) {
event.stopPropagation();
//document.getElementById('igeConsole').innerHTML += "ige.$('vp1').drawBoundsLimitId('" + this.id + "');" + '<br />';
chrome.devtools.inspectedWindow.eval("ige.$('vp1').drawBoundsLimitId('" + this.id + "');", function (result, isException) {
chrome.devtools.inspectedWindow.eval("ige._children.each(function (item) { if (item.drawBoundsLimitId) { item.drawBoundsLimitId('" + this.id + "'); } });", function (result, isException) {

});
}
Expand All @@ -23,7 +23,7 @@ function addToSG(item) {
if (!selectedItem) {
event.stopPropagation();
//document.getElementById('igeConsole').innerHTML += "ige.$('vp1').drawBoundsLimitId('');" + '<br />';
chrome.devtools.inspectedWindow.eval("ige.$('vp1').drawBoundsLimitId('');", function (result, isException) {
chrome.devtools.inspectedWindow.eval("ige._children.each(function (item) { if (item.drawBoundsLimitId) { item.drawBoundsLimitId(''); } });", function (result, isException) {

});
}
Expand All @@ -38,7 +38,7 @@ function addToSG(item) {
selectedItem = this.id;
$('#id').html(this.id);

chrome.devtools.inspectedWindow.eval("ige.$('vp1').drawBoundsLimitId('" + this.id + "');", function (result, isException) {
chrome.devtools.inspectedWindow.eval("ige._children.each(function (item) { if (item.drawBoundsLimitId) { item.drawBoundsLimitId('" + this.id + "'); } });", function (result, isException) {

});

Expand Down

0 comments on commit 730d5bd

Please sign in to comment.