From fb8d5eef7719326ea859cc7b05118c5223290ebd Mon Sep 17 00:00:00 2001 From: "mccabe%netscape.com" Date: Wed, 24 May 2000 07:20:11 +0000 Subject: [PATCH] Not used by Mozilla! (also fixes a warning) Change to use non-deprecated js getter/setter syntax. git-svn-id: svn://10.0.0.236/trunk@70722 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/sample/nsSample.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/sample/nsSample.js b/mozilla/xpcom/sample/nsSample.js index 32d8797dd43..50d21539e3f 100644 --- a/mozilla/xpcom/sample/nsSample.js +++ b/mozilla/xpcom/sample/nsSample.js @@ -23,8 +23,8 @@ mySample.prototype = { * properties on the JS object, follow the expected rules for prototype * delegation, and make a mean cup of coffee. */ - value getter: function () { return this.val; }, - value setter: function (newval) { return this.val = newval; }, + get value() { return this.val; }, + set value(newval) { return this.val = newval; }, writeValue: function (aPrefix) { dump("mySample::writeValue => " + aPrefix + this.val + "\n");