Skip to content

Commit d3ae352

Browse files
committed
reordering __extends. Issue jashkenas#848
1 parent c8a2a78 commit d3ae352

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/nodes.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nodes.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,10 +1654,10 @@ UTILITIES =
16541654
# to the superclass for `super()` calls, and copies of any static properties.
16551655
extends: '''
16561656
function(child, parent) {
1657+
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
16571658
function ctor() { this.constructor = child; }
16581659
ctor.prototype = parent.prototype;
16591660
child.prototype = new ctor;
1660-
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
16611661
child.__super__ = parent.prototype;
16621662
return child;
16631663
}

0 commit comments

Comments
 (0)