IE fixes
This commit is contained in:
parent
e97f9dbbb7
commit
ac923b5813
2 changed files with 3 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
var editorCss = require("text!cockpit/ui/plain.css");
|
var editorCss = require("text!cockpit/ui/plain.css");
|
||||||
var dom = require("pilot/dom");
|
var dom = require("pilot/dom");
|
||||||
|
var event = require("pilot/event");
|
||||||
dom.importCssString(editorCss);
|
dom.importCssString(editorCss);
|
||||||
|
|
||||||
var CliRequisition = require('cockpit/cli').CliRequisition;
|
var CliRequisition = require('cockpit/cli').CliRequisition;
|
||||||
|
|
@ -69,7 +70,7 @@ exports.startup = function(data, reason) {
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
this.input.addEventListener('keyup', function(ev) {
|
event.addListener(this.input, 'keyup', function(ev) {
|
||||||
/*
|
/*
|
||||||
var handled = keyboardManager.processKeyEvent(ev, this, {
|
var handled = keyboardManager.processKeyEvent(ev, this, {
|
||||||
isCommandLine: true, isKeyUp: true
|
isCommandLine: true, isKeyUp: true
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ if (typeof(window) === 'undefined') {
|
||||||
// For each of the console functions, copy them if they exist, stub if not
|
// For each of the console functions, copy them if they exist, stub if not
|
||||||
NAMES.forEach(function(name) {
|
NAMES.forEach(function(name) {
|
||||||
if (window.console && window.console[name]) {
|
if (window.console && window.console[name]) {
|
||||||
exports[name] = window.console[name].bind(window.console);
|
exports[name] = Function.prototype.bind.call(window.console[name], window.console);
|
||||||
} else {
|
} else {
|
||||||
exports[name] = noop;
|
exports[name] = noop;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue