From 803e75e9b922d9ad7584c8bdbc9b725fc8104efd Mon Sep 17 00:00:00 2001 From: bitmage Date: Sun, 28 Dec 2014 14:14:12 -0700 Subject: [PATCH] replace deprecated function __defineGetter__ --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index a1e5420e..05001c5f 100644 --- a/index.js +++ b/index.js @@ -4,11 +4,11 @@ exports.ModelBaseClass = require('./lib/model.js'); exports.GeoPoint = require('./lib/geo.js').GeoPoint; exports.ValidationError = require('./lib/validations.js').ValidationError; -exports.__defineGetter__('version', function () { - return require('./package.json').version; +Object.defineProperty(exports, 'version', { + get: function() {return require('./package.json').version;} }); var commonTest = './test/common_test'; -exports.__defineGetter__('test', function () { - return require(commonTest); +Object.defineProperty(exports, 'test', { + get: function() {return require(commonTest);} });