Major update: Refactor to rename ContentName to Name. Delete KeyName.js. For the moment, the KeyName class is now in KeyLocator.js.
This is done according to the API notes:
http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt
diff --git a/js/Interest.js b/js/Interest.js
index 15fb05a..04cc290 100644
--- a/js/Interest.js
+++ b/js/Interest.js
@@ -36,7 +36,7 @@
decoder.readStartElement(CCNProtocolDTags.Interest);
- this.name = new ContentName();
+ this.name = new Name();
this.name.from_ccnb(decoder);
if (decoder.peekStartElement(CCNProtocolDTags.MinSuffixComponents)) {
@@ -117,7 +117,7 @@
};
-Interest.prototype.matches_name = function(/*ContentName*/ name){
+Interest.prototype.matches_name = function(/*Name*/ name){
var i_name = this.name.components;
var o_name = name.components;