summaryrefslogtreecommitdiffstats
path: root/keyval-assignment.js
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2013-06-25 11:55:36 -0500
committerKyle Kaminski <kyle@kkaminsk.com>2013-06-25 11:55:36 -0500
commited2b003ea059d7c6a62ee3e35bc3c6d3ce73da8b (patch)
treed5b3e45f6e934b5b30854af653f61b86312ce7f4 /keyval-assignment.js
parentb0f6fe9338c5d0da445bfe7258fc0f68b54adb24 (diff)
downloadjsexamples-ed2b003ea059d7c6a62ee3e35bc3c6d3ce73da8b.tar.gz
jsexamples-ed2b003ea059d7c6a62ee3e35bc3c6d3ce73da8b.tar.bz2
jsexamples-ed2b003ea059d7c6a62ee3e35bc3c6d3ce73da8b.zip
remove incorrect assignment
definition of funtion Node was improperly declared due to an assignment where a prototype object was overwritten and unwanted inheritance took place
Diffstat (limited to 'keyval-assignment.js')
-rw-r--r--keyval-assignment.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyval-assignment.js b/keyval-assignment.js
index c4b491f..d64fdd3 100644
--- a/keyval-assignment.js
+++ b/keyval-assignment.js
@@ -16,10 +16,10 @@ console.log(foo['val3']);
var bar = new Object();
bar.foo = function() {};
-bar.foo.val1 = 99;
+bar.foo.val1 = 99; // will get overwritten
bar.foo = {
val2: 3.14,
val3: 121
};
-console.log(bar.foo['val2']); \ No newline at end of file
+console.log(bar.foo['val2']);