Skip to content

Commit

Permalink
Fix for listListenerMatching in IE8 and potentially other browsers
Browse files Browse the repository at this point in the history
Return causes `listListenerMatching` to return early with `undefined`. I believe the intention is to just ignore prototype properties.
  • Loading branch information
amccloud authored and mikaelbr committed May 26, 2015
1 parent 5f8ca9d commit 52d432d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function pathString(path) {
function listListenerMatching (listeners, basePath) {
var newListeners = [];
for (var key in listeners) {
if (!listeners.hasOwnProperty(key)) return;
if (!listeners.hasOwnProperty(key)) continue;
if (basePath.indexOf(key) !== 0) continue;
newListeners.push(listeners[key]);
}
Expand Down

0 comments on commit 52d432d

Please sign in to comment.