Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The properties that are added with .extend should be enumerable #1

Open
3rd-Eden opened this issue Mar 6, 2015 · 0 comments
Open

Comments

@3rd-Eden
Copy link
Member

3rd-Eden commented Mar 6, 2015

Currently when you extend a function and add new properties, these properties will not be enumerable by default.

function Foo() {}
Foo.extend = require('extendible');

var Bar = Foo.extend({
  hello: 'world'
});

var bar = new Bar();
console.log(Object.keys(bar)); // expecting `hello` to be in the array here.
@3rd-Eden 3rd-Eden added the bug label Mar 6, 2015
@3rd-Eden 3rd-Eden added enhancement and removed bug labels Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant