minibuffer-completion.js: Avoid some minor errors
[conkeror.git] / modules / special-buffer.js
blob0fc2b3f3907c4006331301b80e08bc0cb851f668
1 require("buffer.js");
3 function special_buffer(window, element) {
4     this.constructor_begin();
5     keywords(arguments);
6     conkeror.buffer.call(this, window, element, forward_keywords(arguments));
7     this.generated = false;
9     var buffer = this;
10     add_hook.call(this, "buffer_loaded_hook", function () {
11             buffer.generated = true;
12             buffer.generate();
13         });
14     this.web_navigation.loadURI("chrome://conkeror/content/blank.html", Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
15                                 null /* referrer */, null /* post data */, null /* headers */);
16     this.constructor_end();
19 special_buffer.prototype.__proto__ = buffer.prototype;
21 // Sub-classes must define a generate method