You can implement getter and setter without touching this webview file. The Object.defineProperty code is all you need.

Sent from my BlackBerry 10 smartphone.

From: Ashraful Alam
Sent: Thursday, January 10, 2013 12:09 PM
To: blackberry/BB10-WebWorks-Framework
Reply To: blackberry/BB10-WebWorks-Framework
Cc: Rosa Tse
Subject: Re: [BB10-WebWorks-Framework] First Attempt to implement Payment SDK for WebWorks. (#455)



In lib/webview.js:

> @@ -171,6 +171,14 @@ webview =
>          return _webviewObj.setFileSystemSandbox;
>      },
>
> +    setDevelopmentMode: function (developmentMode) {


Client will call DevelopmentMode before calling any PaymentAPI from webworks. The subsequent call need to remember what client did set. Now since payment_js has same life cycle as the app, we can set DevelopmentMode in payment_js.

\u2014
Reply to this email directly or view it on GitHub<https://github.com/blackberry/BB10-WebWorks-Framework/pull/455/files#r2607339>.



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.