1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 15:35:45 +01:00

Fix some unnecessary error reports for invalid jar: URLs. Also complete the JAR file portion of the URL.

This commit is contained in:
Kris Maglione
2011-03-10 10:58:02 -05:00
parent d7b68c66af
commit b7a3f8d2fb
3 changed files with 15 additions and 4 deletions

View File

@@ -1722,7 +1722,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
*/
trapErrors: function trapErrors(func, self) {
try {
if (isString(func))
if (!callable(func))
func = self[func];
return func.apply(self || this, Array.slice(arguments, 2));
}