Skip to content

Commit 77b8e0a

Browse files
author
Yehonal
committed
updated kernel and related repos
1 parent 6915e92 commit 77b8e0a

File tree

8 files changed

+5
-13
lines changed

8 files changed

+5
-13
lines changed

.gitignore

100644100755
File mode changed.

Class.js

100644100755
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/*
2-
* Copyright (C) 2007 - 2014 Hyperweb2 All rights reserved.
3-
* GNU General Public License version 3; see www.hyperweb2.com/terms/
4-
*/
5-
61
'use strict';
72

83
hwc.include([
@@ -602,10 +597,12 @@ hwc.include([
602597

603598
var wrapper = function () {
604599
var scope = {
605-
s: this.__stScope || __Object,
600+
s: (this && this.__stScope) || __Object,
606601
_s: __staticMembers.priv
607602
};
608603

604+
scope.__caller = this;
605+
609606
// expose private variable to internal class function
610607
if (!isStatic) {
611608
scope.i = this.__root || this.__scope.__root;
@@ -618,12 +615,7 @@ hwc.include([
618615

619616
// as scope for __super we pass the base class environment
620617
var sBind = isStatic ? __base : scope;
621-
Object.defineProperty(scope, "__super", {
622-
value: old ? old.bind(sBind) : null,
623-
writable: true,
624-
configurable: true,
625-
enumerable: true
626-
});
618+
scope.__super = old ? old.bind(sBind) : null;
627619

628620
Object.seal(scope); // this generates an error when we try to set something to scope object
629621

@@ -686,7 +678,7 @@ hwc.include([
686678
descriptor.use = [descriptor.use];
687679
}
688680

689-
if (!descriptor.use.length <= 0) {
681+
if (descriptor.use.length > 0) {
690682
descriptor.use.forEach(function (t) {
691683
if (t.__getMembers) {
692684
// if it's a "Class"

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

fSyntax.js

100644100755
File mode changed.

include.js

100644100755
File mode changed.

index.js

100644100755
File mode changed.

upt.json

100644100755
File mode changed.

0 commit comments

Comments
 (0)