Skip to content

Instantly share code, notes, and snippets.

@qfox
Last active February 3, 2016 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qfox/46776b729f058aad3858 to your computer and use it in GitHub Desktop.
Save qfox/46776b729f058aad3858 to your computer and use it in GitHub Desktop.
nodeConfig.addTechs([
[require('enb-define'), {
target: '?.fullofconsoles.js',
sources: ['?.js'],
variables: {
ISLDEBUG: '*/!/*'
},
sourcemap: true
}]
]);
diff --git a/common.blocks/auth/auth.js b/common.blocks/auth/auth.js
index 5fe901e..6a4485e 100644
--- a/common.blocks/auth/auth.js
+++ b/common.blocks/auth/auth.js
@@ -416,10 +416,10 @@ BEM.DOM.decl('auth', {
* istanbul ignore next
*/
_getRetpath: function() {
- console.assert(false, [
+ (0/*%%%ISLDEBUG%%%*/&&console.assert(false, [
'Статический метод _getRetpath устарел.',
'Используйте метод прототипа getRetpath.'
- ].join(' '));
+ ].join(' ')));
return BEM.blocks['i-global'].param('retpath');
},
@@ -440,10 +440,10 @@ BEM.DOM.decl('auth', {
* istanbul ignore next
*/
_getPassportURL: function(mode) {
- console.assert(false, [
+ (0/*%%%ISLDEBUG%%%*/&&console.assert(false, [
'Статический метод _getPassportURL устарел.',
'Вместо него применяется одноименный метод прототипа.'
- ].join(' '));
+ ].join(' ')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment