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 dom = require("pilot/dom");
|
||||
var event = require("pilot/event");
|
||||
dom.importCssString(editorCss);
|
||||
|
||||
var CliRequisition = require('cockpit/cli').CliRequisition;
|
||||
|
|
@ -69,7 +70,7 @@ exports.startup = function(data, reason) {
|
|||
}.bind(this));
|
||||
*/
|
||||
|
||||
this.input.addEventListener('keyup', function(ev) {
|
||||
event.addListener(this.input, 'keyup', function(ev) {
|
||||
/*
|
||||
var handled = keyboardManager.processKeyEvent(ev, this, {
|
||||
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
|
||||
NAMES.forEach(function(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 {
|
||||
exports[name] = noop;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue