Browse files

remove log messages

  • Loading branch information...
1 parent 1132553 commit 7f784d5690342e71fc86292af038f9a7dfdb05a2 @anandology anandology committed Jan 21, 2010
Showing with 1 addition and 8 deletions.
  1. +0 −3 jquery-wmd-plugin.js
  2. +0 −3 jquery.wmd.js
  3. +1 −2 jquery.wmd.min.js
View
3 jquery-wmd-plugin.js
@@ -37,9 +37,6 @@
this.id = this.id || "wmd-input-" + counter;
options.input = this.id;
- if (window.console)
- console.log(options);
-
setup_wmd(options);
counter++;
});
View
3 jquery.wmd.js
@@ -37,9 +37,6 @@
this.id = this.id || "wmd-input-" + counter;
options.input = this.id;
- if (window.console)
- console.log(options);
-
setup_wmd(options);
counter++;
});
View
3 jquery.wmd.min.js
@@ -2,8 +2,7 @@
(function($){var counter=0;$.fn.wmd=function(_options){this.each(function(){var defaults={"preview":true};var options=$.extend({},_options||{},defaults);if(!options.button_bar){options.button_bar="wmd-button-bar-"+counter;$("<div/>").attr("class","wmd-button-bar").attr("id",options.button_bar).insertBefore(this);}
if(typeof(options.preview)=="boolean"&&options.preview){options.preview="wmd-preview-"+counter;$("<div/>").attr("class","wmd-preview").attr("id",options.preview).insertAfter(this);}
if(typeof(options.output)=="boolean"&&options.output){options.output="wmd-output-"+counter;$("<div/>").attr("class","wmd-output").attr("id",options.output).insertAfter(this);}
-this.id=this.id||"wmd-input-"+counter;options.input=this.id;if(window.console)
-console.log(options);setup_wmd(options);counter++;});};})(jQuery);function setup_wmd(wmd_options){var Attacklab=Attacklab||{};wmd_options=wmd_options||top.wmd_options||{};Attacklab.wmdBase=function(){var wmd=Attacklab;var doc=top.document;var re=top.RegExp;var nav=top.navigator;wmd.Util={};wmd.Position={};wmd.Command={};wmd.Global={};wmd.buttons={};wmd.showdown=top.Attacklab&&top.Attacklab.showdown;var util=wmd.Util;var position=wmd.Position;var command=wmd.Command;var global=wmd.Global;global.isIE=/msie/.test(nav.userAgent.toLowerCase());global.isIE_5or6=/msie 6/.test(nav.userAgent.toLowerCase())||/msie 5/.test(nav.userAgent.toLowerCase());global.isIE_7plus=global.isIE&&!global.isIE_5or6;global.isOpera=/opera/.test(nav.userAgent.toLowerCase());global.isKonqueror=/konqueror/.test(nav.userAgent.toLowerCase());var imageDialogText=wmd_options.imageDialogText||"<p style='margin-top: 0px'><b>Enter the image URL.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>";var linkDialogText=wmd_options.linkDialogText||"<p style='margin-top: 0px'><b>Enter the web address.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>";var imageDefaultText="http://";var linkDefaultText="http://";var imageDirectory="images/";var previewPollInterval=500;var pastePollInterval=100;var helpLink=wmd_options.helpLink||"http://wmd-editor.com/";var helpHoverTitle=wmd_options.helpHoverTitle||"WMD website";var helpTarget=wmd_options.helpTarget||"_blank";wmd.PanelCollection=function(){this.buttonBar=doc.getElementById(wmd_options.button_bar||"wmd-button-bar");this.preview=doc.getElementById(wmd_options.preview||"wmd-preview");this.output=doc.getElementById(wmd_options.output||"wmd-output");this.input=doc.getElementById(wmd_options.input||"wmd-input");};wmd.panels=undefined;wmd.ieCachedRange=null;wmd.ieRetardedClick=false;util.isVisible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};util.addEvent=function(elem,event,listener){if(elem.attachEvent){elem.attachEvent("on"+event,listener);}
+this.id=this.id||"wmd-input-"+counter;options.input=this.id;setup_wmd(options);counter++;});};})(jQuery);function setup_wmd(wmd_options){var Attacklab=Attacklab||{};wmd_options=wmd_options||top.wmd_options||{};Attacklab.wmdBase=function(){var wmd=Attacklab;var doc=top.document;var re=top.RegExp;var nav=top.navigator;wmd.Util={};wmd.Position={};wmd.Command={};wmd.Global={};wmd.buttons={};wmd.showdown=top.Attacklab&&top.Attacklab.showdown;var util=wmd.Util;var position=wmd.Position;var command=wmd.Command;var global=wmd.Global;global.isIE=/msie/.test(nav.userAgent.toLowerCase());global.isIE_5or6=/msie 6/.test(nav.userAgent.toLowerCase())||/msie 5/.test(nav.userAgent.toLowerCase());global.isIE_7plus=global.isIE&&!global.isIE_5or6;global.isOpera=/opera/.test(nav.userAgent.toLowerCase());global.isKonqueror=/konqueror/.test(nav.userAgent.toLowerCase());var imageDialogText=wmd_options.imageDialogText||"<p style='margin-top: 0px'><b>Enter the image URL.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>";var linkDialogText=wmd_options.linkDialogText||"<p style='margin-top: 0px'><b>Enter the web address.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>";var imageDefaultText="http://";var linkDefaultText="http://";var imageDirectory="images/";var previewPollInterval=500;var pastePollInterval=100;var helpLink=wmd_options.helpLink||"http://wmd-editor.com/";var helpHoverTitle=wmd_options.helpHoverTitle||"WMD website";var helpTarget=wmd_options.helpTarget||"_blank";wmd.PanelCollection=function(){this.buttonBar=doc.getElementById(wmd_options.button_bar||"wmd-button-bar");this.preview=doc.getElementById(wmd_options.preview||"wmd-preview");this.output=doc.getElementById(wmd_options.output||"wmd-output");this.input=doc.getElementById(wmd_options.input||"wmd-input");};wmd.panels=undefined;wmd.ieCachedRange=null;wmd.ieRetardedClick=false;util.isVisible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};util.addEvent=function(elem,event,listener){if(elem.attachEvent){elem.attachEvent("on"+event,listener);}
else{elem.addEventListener(event,listener,false);}};util.removeEvent=function(elem,event,listener){if(elem.detachEvent){elem.detachEvent("on"+event,listener);}
else{elem.removeEventListener(event,listener,false);}};util.fixEolChars=function(text){text=text.replace(/\r\n/g,"\n");text=text.replace(/\r/g,"\n");return text;};util.extendRegExp=function(regex,pre,post){if(pre===null||pre===undefined)
{pre="";}

0 comments on commit 7f784d5

Please sign in to comment.