Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 735659097 for ; Tue, 3 Apr 2012 18:54:51 +0000 (UTC) Received: (qmail 12192 invoked by uid 500); 3 Apr 2012 18:54:51 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 12175 invoked by uid 500); 3 Apr 2012 18:54:51 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 12168 invoked by uid 99); 3 Apr 2012 18:54:51 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 18:54:51 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 1FD4BACF8; Tue, 3 Apr 2012 18:54:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bcurtis@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: Provide access to original event handlers. Message-Id: <20120403185451.1FD4BACF8@tyr.zones.apache.org> Date: Tue, 3 Apr 2012 18:54:51 +0000 (UTC) Updated Branches: refs/heads/master c31219a88 -> 9c962f3b0 Provide access to original event handlers. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/9c962f3b Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/9c962f3b Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/9c962f3b Branch: refs/heads/master Commit: 9c962f3b02c86a0e58464cb8cb3254fcefc55e63 Parents: c31219a Author: Bryce Curtis Authored: Tue Apr 3 13:54:34 2012 -0500 Committer: Bryce Curtis Committed: Tue Apr 3 13:54:34 2012 -0500 ---------------------------------------------------------------------- lib/cordova.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/9c962f3b/lib/cordova.js ---------------------------------------------------------------------- diff --git a/lib/cordova.js b/lib/cordova.js index ac55943..ab195d8 100644 --- a/lib/cordova.js +++ b/lib/cordova.js @@ -94,6 +94,15 @@ var cordova = { delete documentEventHandlers[event]; }, /** + * Retreive original event handlers that were replaced by Cordova + * + * @return object + */ + getOriginalHandlers: function() { + return {'document': {'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener}, + 'window': {'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener}}; + }, + /** * Method to fire event from native code */ fireDocumentEvent: function(type, data) {