diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 6cec1f19ce..ccb90a2268 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -15,8 +15,14 @@ **Bugs** - **Dropdown** - Fixed issue where `apiSettings` was not defaulting to use `cache: 'local'` as specified in the docs - **Dropdown** - Fixed issue where dropdowns with sub-menus would not properly activate on mobile #3183 +- **Form** - Fixed issue where grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717 +- **Menu** - Fixed issue with `stackable` menu where `left/right` `menu` or `item` would incorrectly be floated when stacked. #3604 - **Modal** - Fixes issue where RGB values set for dimmer `background-color` werent being correctly interpreted #3665 **Thanks @larsbo** - **Form** - Fixed use of deprecated `size()` method in `prompt` #3655 **Thanks @SimonArdrey** +- **List** - Fixed issue where `relaxed` and `very relaxed` lists included unnecessary padding on the first and last items #3710 +- **List** - Fixed issue where divided lists had unnecessary padding on first and last items, in both horizontal and vertical layouts #3710 +- **List** - Fixed issue where bullets would be affected by font weight #3715 +- **Rating** - Fixed issue where rating would fire `onRate` when rating is initialized #3712 -**Table** - Fixed issue where `striped selectable` table would not correctly show hover color on striped rows -**Segment/Message** - Fixed issue where `top attached message` would have no border when attached to `segment` #3619 -**Popup** - Fixed issue where checking `instanceof SVGGraphicsElement` caused error in IE11 #3043 @@ -25,6 +31,7 @@ **Enhancements** -**Dropdown** - Using API with dropdown will now +-**Rating** - Added new setting `fireOnInit` for rating, which defaults to `false`. When set to true `onRate` will fire when rating is initialized #3712 -**Site** `@px` and `@relativepx` i.e. `@relative12px` which can be used to return EM value of pixels are now extended to `@relative40px` -**Tabs** - Added option `deactivate`, defaults to `siblings` which will only deactivate tab activators that are DOM siblings elements to the activating element. Setting it to 'all' will deactivate any other tab element initialized at the same time. -**Table** - Added more granular variablaes for controlling style on first column in a `definition table` diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index f836c103ec..069e3fb821 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -848,7 +848,7 @@ $.api = $.fn.api = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -859,7 +859,7 @@ $.api = $.fn.api = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -870,8 +870,10 @@ $.api = $.fn.api = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index b0e1f902fe..0a2e30066f 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -877,7 +877,7 @@ $.fn.form = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -888,7 +888,7 @@ $.fn.form = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -899,8 +899,10 @@ $.fn.form = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { diff --git a/src/definitions/behaviors/state.js b/src/definitions/behaviors/state.js index 56c02d7095..b0743167d5 100644 --- a/src/definitions/behaviors/state.js +++ b/src/definitions/behaviors/state.js @@ -427,7 +427,7 @@ $.fn.state = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -438,7 +438,7 @@ $.fn.state = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -449,8 +449,10 @@ $.fn.state = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index 2ea61de8ce..d301183915 100644 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -970,7 +970,7 @@ $.fn.visibility = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -981,7 +981,7 @@ $.fn.visibility = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -992,8 +992,10 @@ $.fn.visibility = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { diff --git a/src/definitions/behaviors/visit.js b/src/definitions/behaviors/visit.js index 2d1428f0f3..2ed62a3cca 100644 --- a/src/definitions/behaviors/visit.js +++ b/src/definitions/behaviors/visit.js @@ -322,7 +322,7 @@ $.visit = $.fn.visit = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -333,7 +333,7 @@ $.visit = $.fn.visit = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -344,8 +344,10 @@ $.visit = $.fn.visit = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { diff --git a/src/definitions/modules/accordion.js b/src/definitions/modules/accordion.js index 79545a3b98..cdadebb5ad 100644 --- a/src/definitions/modules/accordion.js +++ b/src/definitions/modules/accordion.js @@ -388,7 +388,7 @@ $.fn.accordion = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -399,7 +399,7 @@ $.fn.accordion = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -410,8 +410,10 @@ $.fn.accordion = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -544,6 +546,7 @@ $.fn.accordion.settings = { name : 'Accordion', namespace : 'accordion', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/checkbox.js b/src/definitions/modules/checkbox.js index 257aac6d75..671a7becb7 100644 --- a/src/definitions/modules/checkbox.js +++ b/src/definitions/modules/checkbox.js @@ -602,7 +602,7 @@ $.fn.checkbox = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -613,7 +613,7 @@ $.fn.checkbox = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -624,8 +624,10 @@ $.fn.checkbox = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -760,6 +762,7 @@ $.fn.checkbox.settings = { name : 'Checkbox', namespace : 'checkbox', + silent : false, debug : false, verbose : true, performance : true, diff --git a/src/definitions/modules/dimmer.js b/src/definitions/modules/dimmer.js index d972cec68c..e95a1027b4 100644 --- a/src/definitions/modules/dimmer.js +++ b/src/definitions/modules/dimmer.js @@ -464,7 +464,7 @@ $.fn.dimmer = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -475,7 +475,7 @@ $.fn.dimmer = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -486,8 +486,10 @@ $.fn.dimmer = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -627,6 +629,7 @@ $.fn.dimmer.settings = { name : 'Dimmer', namespace : 'dimmer', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 8d9a730e26..375dee5280 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -3070,7 +3070,7 @@ $.fn.dropdown = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -3081,7 +3081,7 @@ $.fn.dropdown = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -3092,8 +3092,10 @@ $.fn.dropdown = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -3224,6 +3226,7 @@ $.fn.dropdown = function(parameters) { $.fn.dropdown.settings = { + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/embed.js b/src/definitions/modules/embed.js index 377e38ff2b..aec4e368e7 100644 --- a/src/definitions/modules/embed.js +++ b/src/definitions/modules/embed.js @@ -377,7 +377,7 @@ $.fn.embed = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -388,7 +388,7 @@ $.fn.embed = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -399,8 +399,10 @@ $.fn.embed = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -537,6 +539,7 @@ $.fn.embed.settings = { name : 'Embed', namespace : 'embed', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 24178361e0..66134063a5 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -663,7 +663,7 @@ $.fn.modal = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -674,7 +674,7 @@ $.fn.modal = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -685,8 +685,10 @@ $.fn.modal = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -820,6 +822,7 @@ $.fn.modal.settings = { name : 'Modal', namespace : 'modal', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/nag.js b/src/definitions/modules/nag.js index 6e57e34069..331217abaa 100644 --- a/src/definitions/modules/nag.js +++ b/src/definitions/modules/nag.js @@ -273,7 +273,7 @@ $.fn.nag = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -284,7 +284,7 @@ $.fn.nag = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -295,8 +295,10 @@ $.fn.nag = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -430,6 +432,7 @@ $.fn.nag.settings = { name : 'Nag', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index c2737f77cb..11e5033e95 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -1068,7 +1068,7 @@ $.fn.popup = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -1079,7 +1079,7 @@ $.fn.popup = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -1090,8 +1090,10 @@ $.fn.popup = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -1225,6 +1227,7 @@ $.fn.popup.settings = { name : 'Popup', // module settings + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/progress.js b/src/definitions/modules/progress.js index da0b04f427..2ad034a4d0 100644 --- a/src/definitions/modules/progress.js +++ b/src/definitions/modules/progress.js @@ -563,7 +563,7 @@ $.fn.progress = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -574,7 +574,7 @@ $.fn.progress = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -585,8 +585,10 @@ $.fn.progress = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -721,6 +723,7 @@ $.fn.progress.settings = { name : 'Progress', namespace : 'progress', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/rating.js b/src/definitions/modules/rating.js index e835ae9418..728a97c2e6 100644 --- a/src/definitions/modules/rating.js +++ b/src/definitions/modules/rating.js @@ -281,7 +281,7 @@ $.fn.rating = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -292,7 +292,7 @@ $.fn.rating = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -303,8 +303,10 @@ $.fn.rating = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -440,6 +442,7 @@ $.fn.rating.settings = { name : 'Rating', namespace : 'rating', + slent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 97d7cffd89..6df6c36539 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -910,7 +910,7 @@ $.fn.search = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -921,7 +921,7 @@ $.fn.search = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -932,8 +932,10 @@ $.fn.search = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -1070,6 +1072,7 @@ $.fn.search.settings = { name : 'Search', namespace : 'search', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/shape.js b/src/definitions/modules/shape.js index 6a4a9f35cd..b3d9fd159d 100644 --- a/src/definitions/modules/shape.js +++ b/src/definitions/modules/shape.js @@ -668,7 +668,7 @@ $.fn.shape = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -679,7 +679,7 @@ $.fn.shape = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -690,8 +690,10 @@ $.fn.shape = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -828,6 +830,9 @@ $.fn.shape.settings = { // module info name : 'Shape', + // hide all debug content + silent : false, + // debug content outputted to console debug : false, diff --git a/src/definitions/modules/sidebar.js b/src/definitions/modules/sidebar.js index c8036506af..eba56c13d2 100644 --- a/src/definitions/modules/sidebar.js +++ b/src/definitions/modules/sidebar.js @@ -784,7 +784,7 @@ $.fn.sidebar = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -795,7 +795,7 @@ $.fn.sidebar = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -806,8 +806,10 @@ $.fn.sidebar = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -942,6 +944,7 @@ $.fn.sidebar.settings = { name : 'Sidebar', namespace : 'sidebar', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/sticky.js b/src/definitions/modules/sticky.js index c8a5c33260..4ba0bbf719 100644 --- a/src/definitions/modules/sticky.js +++ b/src/definitions/modules/sticky.js @@ -688,7 +688,7 @@ $.fn.sticky = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -699,7 +699,7 @@ $.fn.sticky = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -710,8 +710,10 @@ $.fn.sticky = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -845,6 +847,7 @@ $.fn.sticky.settings = { name : 'Sticky', namespace : 'sticky', + silent : false, debug : false, verbose : true, performance : true, diff --git a/src/definitions/modules/tab.js b/src/definitions/modules/tab.js index 6978049fec..57e8eb2da4 100644 --- a/src/definitions/modules/tab.js +++ b/src/definitions/modules/tab.js @@ -685,7 +685,7 @@ $.fn.tab = function(parameters) { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -696,7 +696,7 @@ $.fn.tab = function(parameters) { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -707,8 +707,10 @@ $.fn.tab = function(parameters) { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -847,6 +849,7 @@ $.fn.tab.settings = { name : 'Tab', namespace : 'tab', + silent : false, debug : false, verbose : false, performance : true, diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index 574d5c70d6..6fa768958b 100644 --- a/src/definitions/modules/transition.js +++ b/src/definitions/modules/transition.js @@ -846,7 +846,7 @@ $.fn.transition = function() { } }, debug: function() { - if(settings.debug) { + if(!settings.silent && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -857,7 +857,7 @@ $.fn.transition = function() { } }, verbose: function() { - if(settings.verbose && settings.debug) { + if(!settings.silent && settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } @@ -868,8 +868,10 @@ $.fn.transition = function() { } }, error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); + if(!settings.silent) { + module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); + module.error.apply(console, arguments); + } }, performance: { log: function(message) { @@ -1001,6 +1003,9 @@ $.fn.transition.settings = { // module info name : 'Transition', + // hide all output from this component regardless of other settings + silent : false, + // debug content outputted to console debug : false,