Allow sao classes to use javascript properties

issue8109
review60561002
This commit is contained in:
Nicolas Évrard
2019-02-13 16:05:41 +01:00
parent 762ed3171d
commit 5125415da2
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Allow sao classes to use javascript properties
* Improve layout of CSV import/export
* Add support for height and width on notebook
* Use tab key for tab navigation
+2 -1
View File
@@ -125,7 +125,8 @@ var Sao = {};
ClassConstructor._super = Parent.prototype;
if (props) {
for (var name in props) {
ClassConstructor.prototype[name] = props[name];
Object.defineProperty(ClassConstructor.prototype, name,
Object.getOwnPropertyDescriptor(props, name));
}
}
return ClassConstructor;