Added var to properly declare local variables so that they don't pollute the global namespace and risk multi-threading conflicts.
diff --git a/js/ContentObject.js b/js/ContentObject.js
index 2704618..0427df6 100644
--- a/js/ContentObject.js
+++ b/js/ContentObject.js
@@ -351,7 +351,7 @@
}
if (decoder.peekStartElement(CCNProtocolDTags.Type)) {
- binType = decoder.readBinaryElement(CCNProtocolDTags.Type);//byte []
+ var binType = decoder.readBinaryElement(CCNProtocolDTags.Type);//byte []
//TODO Implement type of Key Reading