From 3368d6af4358fc181986caf31c777b1bc8bb3c7f Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 14 Dec 2011 06:34:08 -0800 Subject: [PATCH] opera can into Object.keys --- 4chan_x.user.js | 11 ----------- script.coffee | 5 ----- 2 files changed, 16 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index cda86656f..2ea4bdef7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -173,17 +173,6 @@ log = typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0; - if (!Object.keys) { - Object.keys = function(o) { - var key, _results; - _results = []; - for (key in o) { - _results.push(key); - } - return _results; - }; - } - conf = {}; (flatten = function(parent, obj) { diff --git a/script.coffee b/script.coffee index 58e19d543..0996d7256 100644 --- a/script.coffee +++ b/script.coffee @@ -103,11 +103,6 @@ config = # XXX GreaseMonkey can't into console.log.bind log = console.log.bind? console -# XXX opera cannot into Object.keys -if not Object.keys - Object.keys = (o) -> - key for key of o - # flatten the config conf = {} (flatten = (parent, obj) ->