##// END OF EJS Templates
active_output_areas (plural)
Jonathan Frederic -
Show More
@@ -85,7 +85,7 define([
85 85 // area, it gets pushed to the stack. Then, when the output area is
86 86 // deactivated, it's popped from the stack. When the stack is empty,
87 87 // the cell's output area is used.
88 this.active_output_area = [];
88 this.active_output_areas = [];
89 89 this.last_msg_id = null;
90 90 this.completer = null;
91 91
@@ -128,8 +128,8 define([
128 128 * @method get_output_area
129 129 */
130 130 CodeCell.prototype.get_output_area = function () {
131 if (this.active_output_area && this.active_output_area.length > 0) {
132 return this.active_output_area[this.active_output_area.length-1];
131 if (this.active_output_areas && this.active_output_areas.length > 0) {
132 return this.active_output_areas[this.active_output_areas.length-1];
133 133 } else {
134 134 return this.output_area;
135 135 }
@@ -139,16 +139,16 define([
139 139 * @method push_output_area
140 140 */
141 141 CodeCell.prototype.push_output_area = function (output_area) {
142 this.active_output_area.push(output_area);
142 this.active_output_areas.push(output_area);
143 143 };
144 144
145 145 /**
146 146 * @method pop_output_area
147 147 */
148 148 CodeCell.prototype.pop_output_area = function (output_area) {
149 var index = this.active_output_area.lastIndexOf(output_area);
149 var index = this.active_output_areas.lastIndexOf(output_area);
150 150 if (index > -1) {
151 this.active_output_area.splice(index, 1);
151 this.active_output_areas.splice(index, 1);
152 152 }
153 153 };
154 154
General Comments 0
You need to be logged in to leave comments. Login now