Sha256: d15c9a1760462b4c52730c19161039b8dc6f549fa608b411a29290d1c00ac20b

Contents?: true

Size: 216 Bytes

Versions: 42

Compression:

Stored size: 216 Bytes

Contents

var console = { history: [] };
['error', 'log', 'info', 'warn'].forEach(function (fn) {
  console[fn] = function () {
    console.history.push({level: fn, arguments: Array.prototype.slice.call(arguments)});
  };
});

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
react-rails-3.2.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-3.1.1 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-3.1.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-3.0.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-3.0.0.rc.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.7.1 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.7.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.7.0.rc.2 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.7.0.rc.1 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.7.0.rc.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.6.2 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.6.1 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.6.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.5.0 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.7 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.6 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.5 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.4 lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.4.pre lib/react/server_rendering/bundle_renderer/console_polyfill.js
react-rails-2.4.3 lib/react/server_rendering/bundle_renderer/console_polyfill.js