commit | 420b5895afb8bcd8ea72cb4f034c0327e71f0041 | [log] [tgz] |
---|---|---|
author | Wentao Shang <wentaoshang@gmail.com> | Fri Jul 26 20:01:37 2013 -0700 |
committer | Wentao Shang <wentaoshang@gmail.com> | Fri Jul 26 20:01:37 2013 -0700 |
tree | b20dc70992d3f0ca6419e99c1c2d1284c16d370e | |
parent | 2a74ed892e8a8d44eb2fb85c54a285e4a93242eb [diff] | |
parent | 3a09fc8caa1fe3aaba9a7a437dae23eec67ec9b3 [diff] |
Merge branch 'master' of github.com:named-data/ndn-js
diff --git a/js/NDN.js b/js/NDN.js index a6cbd32..f6d51a2 100644 --- a/js/NDN.js +++ b/js/NDN.js
@@ -136,7 +136,7 @@ function getEntryForRegisteredPrefix(name) { for (var i = 0; i < NDN.CSTable.length; i++) { - if (NDN.CSTable[i].name.match(name) != null) + if (NDN.CSTable[i].name.match(name)) return NDN.CSTable[i]; } return null;