Closed kuraga closed 9 years ago
Hi @kuraga
I can think of it for the next release. The reason because freezer does not have those methods in the prototype is because it stores the current frozen data using a closure to keep it private.
Maybe we can add it to the Freezer instance as an attribute like _frozen
so it is possible to move those methods to the prototype.
Do you want to create a PR for that?
Cheers, Javi
Yes, I really want. But I'm not sure about my JavaScript competence. But I'll try :smile: What do you exactly propose? Thanks!
Like that? https://github.com/arqex/freezer/compare/master...kuraga:kuraga All tests are green.
Update: I tried my commits to make a class extends Freezer
. It works! :smile:
Hi @kuranga
Thanks for your collaboration. I am out of my city without my laptop. I will have a look at your changes on wednesday.
Cheers
Thanks! All actual info will be in comment above.
I tried out @kuraga's changes and now I can use babel. I was using jstransform before and had tried moving to babel due to an unrelated bug in jstransform.
Hi, sorry for the delay replying, but I was on holidays and my gf don't let me code! :smile:
I will review those changes, commiting them if they are ok right now.
Ok, will done later
See #26
Good day, @arqex ! Thank you for your work!
I want to inherit
Freezer
in my class (in ECMAScript 6). What do you think about possibility of it?But
Freezer.prototype
doesn't have any methods such asget
andset
. Can this be changed?