Skip to content

Commit

Permalink
Don't fail on unresolvable namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
padolsey committed Feb 28, 2012
1 parent cbf4360 commit 6a3b6ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jsapi/jsapi.sourcehandler.resolver.js
Expand Up @@ -98,14 +98,14 @@ Resolver.prototype = {
methodName = relatedTo.methodName,
window = this.env.window,
ret = [],
obj = window.Function('return ' + namespace)(),
obj = window.Function('try { return ' + namespace + '} catch(e) {}')(),
hasOwn = window.Object().hasOwnProperty;

log('LISTING METHODS', methodName);

fnCheck = fnCheck || function(){ return true; };

for (var i in obj) {
if (obj) for (var i in obj) {
if (
obj[i] &&
hasOwn.call(obj, i) &&
Expand Down

0 comments on commit 6a3b6ac

Please sign in to comment.