mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 19:10:11 +00:00
mixed a minor bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9d31f9f985
commit
1b42aa4b19
@ -188,8 +188,7 @@ function makeConstructor(name, a, b){
|
|||||||
|
|
||||||
// set an informative .toString...
|
// set an informative .toString...
|
||||||
// NOTE: do this only if .toString(..) is not defined by user...
|
// NOTE: do this only if .toString(..) is not defined by user...
|
||||||
if(cls_proto
|
if((cls_proto || {}).toString() == ({}).toString()){
|
||||||
&& cls_proto.toString() == ({}).toString()){
|
|
||||||
// XXX is this the right way to go or should we set this openly???
|
// XXX is this the right way to go or should we set this openly???
|
||||||
Object.defineProperty(_constructor, 'toString', {
|
Object.defineProperty(_constructor, 'toString', {
|
||||||
value: function(){
|
value: function(){
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-object",
|
"name": "ig-object",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user