// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

exports.releaseReadyWait = function() {
  Object.defineProperty(document, 'readyState', {get: function() { return 'complete'}, configurable: true });
  cordova.fireDocumentEvent('DOMContentLoaded');
  cordova.fireWindowEvent('DOMContentLoaded');
  cordova.fireWindowEvent('load');
};

// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

exports.releaseReadyWait = function() {
  Object.defineProperty(document, 'readyState', {get: function() { return 'interactive'}, configurable: true });
  cordova.fireDocumentEvent('DOMContentLoaded');
  cordova.fireWindowEvent('DOMContentLoaded');
  Object.defineProperty(document, 'readyState', {get: function() { return 'complete'}, configurable: true });
  cordova.fireWindowEvent('load');
};

Set Android's document.readyState to 'interactive' during DOMContentLoaded event
Set Android's document.readyState to 'interactive' during DOMContentLoaded event

This is how it should be, according to:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html
