File tree Expand file tree Collapse file tree
vendor/ember-cli-deprecation-workflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ self.deprecationWorkflow.config = {
55 workflow : [
66 /*
77 * Actual controlled deprecations
8+ *
9+ * The ember-global log configuration is only required for
10+ * ember-release-with-jquery. All other ember-try scenarios pass with that
11+ * handler removed (and defaulting to a throw).
812 */
913 { matchId : 'ember-global' , handler : 'log' } ,
1014
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ const LOG_LIMIT = 100;
3030 }
3131 }
3232
33- Ember . Debug . registerDeprecationHandler ( function handleDeprecationWorkflow ( message , options , next ) {
33+ let registerDeprecationHandler = require . has ( '@ember/debug' ) ? require ( '@ember/debug' ) . registerDeprecationHandler : Ember . Debug . registerDeprecationHandler ;
34+
35+ registerDeprecationHandler ( function handleDeprecationWorkflow ( message , options , next ) {
3436 let config = self . deprecationWorkflow . config || { } ;
3537
3638 let matchingWorkflow = detectWorkflow ( config , message , options ) ;
@@ -68,7 +70,7 @@ const LOG_LIMIT = 100;
6870 }
6971 } ) ;
7072
71- Ember . Debug . registerDeprecationHandler ( function deprecationCollector ( message , options , next ) {
73+ registerDeprecationHandler ( function deprecationCollector ( message , options , next ) {
7274 let key = options && options . id || message ;
7375 let matchKey = options && key === options . id ? 'matchId' : 'matchMessage' ;
7476
You can’t perform that action at this time.
0 commit comments