diff --git a/demo/iframes/iframe1.php b/demo/iframes/iframe1.php
deleted file mode 100644
index e270195..0000000
--- a/demo/iframes/iframe1.php
+++ /dev/null
@@ -1,13 +0,0 @@
-setBaseUrl('../../src/DebugBar/Resources');
-
-$debugbar['messages']->addMessage('I\'m a IFRAME');
-
-render_demo_page(function() {
-?>
-
-setBaseUrl('../../src/DebugBar/Resources');
-
-$debugbar['messages']->addMessage('I\'m a Deeper Hidden Iframe');
-
-render_demo_page(function() {});
diff --git a/demo/iframes/index.php b/demo/iframes/index.php
deleted file mode 100644
index a88eec4..0000000
--- a/demo/iframes/index.php
+++ /dev/null
@@ -1,13 +0,0 @@
-setBaseUrl('../../src/DebugBar/Resources');
-
-$debugbar['messages']->addMessage('Top Page(Main debugbar)');
-
-render_demo_page(function() {
-?>
-
-load ajax content
load ajax content with exception
-IFRAMES
-
Stack
- perform a redirect
diff --git a/src/DebugBar/Resources/debugbar.js b/src/DebugBar/Resources/debugbar.js
index 93dc8ef..a683113 100644
--- a/src/DebugBar/Resources/debugbar.js
+++ b/src/DebugBar/Resources/debugbar.js
@@ -424,7 +424,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.activePanelName = null;
this.datesetTitleFormater = new DatasetTitleFormater(this);
this.options.bodyMarginBottomHeight = parseInt($('body').css('margin-bottom'));
- this.hasParent = window.parent && window.parent.phpdebugbar && window.parent.phpdebugbar != this;
this.registerResizeHandler();
},
@@ -434,7 +433,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
* @this {DebugBar}
*/
registerResizeHandler: function() {
- if (typeof this.resize.bind == 'undefined' || this.hasParent) return;
+ if (typeof this.resize.bind == 'undefined') return;
var f = this.resize.bind(this);
this.respCSSSize = 0;
@@ -475,10 +474,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
* @this {DebugBar}
*/
render: function() {
- if (this.hasParent) {
- this.$el.hide();
- }
-
var self = this;
this.$el.appendTo('body');
this.$dragCapture = $('').addClass(csscls('drag-capture')).appendTo(this.$el);
@@ -578,7 +573,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
* @this {DebugBar}
*/
restoreState: function() {
- if (this.hasParent) return;
// bar height
var height = localStorage.getItem('phpdebugbar-height');
this.setHeight(height || this.$body.height());
@@ -929,15 +923,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
* @return {String} Dataset's id
*/
addDataSet: function(data, id, suffix, show) {
- if (this.hasParent) {
- if (!suffix || ('(iframe)').indexOf(suffix) < 0) {
- suffix = '(iframe)' + (suffix || '');
- }
-
- window.parent.phpdebugbar.addDataSet(data, id, suffix, show);
- return;
- }
-
var label = this.datesetTitleFormater.format(id, data, suffix);
id = id || (getObjectSize(this.datasets) + 1);
this.datasets[id] = data;