Merge pull request #383 from TorchlightSoftware/es-compat

replace deprecated function __defineGetter__
This commit is contained in:
Raymond Feng 2015-01-05 10:53:53 -08:00
commit f20eefc8b5
1 changed files with 4 additions and 4 deletions

View File

@ -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);}
});