Permalink
Browse files

Added fallback for console object. Fixes #12

  • Loading branch information...
1 parent 8f7995f commit d852f42df038d54f330143882b39742691a1d45e @beneverard committed Apr 13, 2012
Showing with 15 additions and 2 deletions.
  1. +14 −1 js/jquery.jqpagination.js
  2. +1 −1 js/jquery.jqpagination.min.js
View
@@ -361,4 +361,17 @@
};
-})(jQuery);
+})(jQuery);
+
+// polyfill, provide a fallback if the console doesn't exist
+if (!console) {
+
+ var console = {},
+ func = function () { return false; };
+
+ console.log = func;
+ console.info = func;
+ console.warn = func;
+ console.error = func;
+
+}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d852f42

Please sign in to comment.