Skip to content

Commit 37ab3dd

Browse files
author
Yehonal
committed
removed some useless code
1 parent 40a6c42 commit 37ab3dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Class.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ hw2.include([
3535
};
3636
}
3737

38-
// for static and traits
3938
function __inherit (src, dest, staticOnly, __define) {
4039
var extend = function (destination, source, extendsStatic) {
4140
var properties = extendsStatic ? Object.getOwnPropertyNames(source) : source;
@@ -311,7 +310,7 @@ hw2.include([
311310
}
312311
}
313312

314-
if (!scope.__isTrait && __Object.__isFinal) {
313+
if (__Object.__isFinal) {
315314
//Object.preventExtensions(Obj);
316315
Object.seal(obj);
317316
}
@@ -609,7 +608,7 @@ hw2.include([
609608
// expose private variable to internal class function
610609
if (!isStatic) {
611610
scope.i = this.__root || this.__scope.__root;
612-
scope._i = __instMembers.priv(scope.i) || this._i /* alternative this._i for traits*/;
611+
scope._i = __instMembers.priv(scope.i);
613612

614613
scope.__scope = scope._i.__scope = scope.i;
615614
} else {

0 commit comments

Comments
 (0)