2015-01-11 04:55:27 +11:00

23 lines
490 B
JavaScript

"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};
var Test = (function () {
var Test = function Test() {};
_prototypeProperties(Test, null, {
test: {
set: function (val) {
this._test = val;
},
enumerable: true,
configurable: true
}
});
return Test;
})();