Skip to content
Browse files
Add debug value in the _internal object in order to disable the debug…
… logging. Closes #79

Disable the debug logging by default
Update to add information about debug
  • Loading branch information
nyroDev committed Apr 16, 2011
1 parent 489ebf6 commit f9e23ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
@@ -249,3 +249,16 @@ Here is a list of the filters officially provided:
* Embedly: Used to show a bunch of different element using [embedly API]( ([Examples]( (depends on link)


In order to enable the debug mode, you should change the debug value of the internal object. You can do it like:
$.nmInternal({debug: true});

By default, the debug function show function name in the console. If you want do something else, you should overwrite the _debug function like:
_debug: function(msg) {
if (this.debug && window.console && window.console.log)
@@ -502,6 +502,7 @@ jQuery(function($, undefined) {
_internal = {
firstInit: true,
debug: false,
stack: [],
fullSize: {
w: 0,
@@ -564,7 +565,7 @@ jQuery(function($, undefined) {

_debug: function(msg) {
if (window.console && window.console.log)
if (this.debug && window.console && window.console.log)

0 comments on commit f9e23ba

Please sign in to comment.