-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #493 from SergeAstapov/delete-first-responder-inpu…
…ts-initializer [Breaking] Delete deprecated first-responder-inputs-initializer
- Loading branch information
Showing
5 changed files
with
17 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
addon/initializers/ember-keyboard-first-responder-inputs.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
name: require('./package').name | ||
name: require('./package').name, | ||
|
||
config(environment, appConfig) { | ||
const addonConfig = appConfig['emberKeyboard'] || {}; | ||
|
||
if ('disableInputsInitializer' in addonConfig && !this.deprecationPrinted) { | ||
// Do not print deprecation message multiple times | ||
// as this hook may be invoked more than once. | ||
this.deprecationPrinted = true; | ||
|
||
this.ui.writeDeprecateLine( | ||
'[ember-keyboard] The `emberKeyboard.disableInputsInitializer` option is obsolete. ' + | ||
'You can remove it from your `config/environment.js` file.', false | ||
); | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters