mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Update ember-one-way-controls to version 2.0.0 🚀 (#475)
* chore(package): update ember-one-way-controls to version 2.0.0 * update yarn.lock * update `gh-trim-focus-input` for removal of `sanitizeInput` in `ember-one-way-controls`
This commit is contained in:
parent
333ed66776
commit
c26b6fa04f
@ -31,12 +31,16 @@ const TrimFocusInputComponent = GhostInput.extend({
|
||||
this._focus();
|
||||
},
|
||||
|
||||
sanitizeInput(input) {
|
||||
if (input && typeof input.trim === 'function') {
|
||||
return input.trim();
|
||||
} else {
|
||||
return input;
|
||||
focusOut(event) {
|
||||
this._trimInput(event.target.value);
|
||||
},
|
||||
|
||||
_trimInput(value) {
|
||||
if (value && typeof value.trim === 'function') {
|
||||
value = value.trim();
|
||||
}
|
||||
|
||||
this._processNewValue(value);
|
||||
},
|
||||
|
||||
_focus() {
|
||||
|
@ -68,7 +68,7 @@
|
||||
"ember-load": "0.0.11",
|
||||
"ember-load-initializers": "0.6.3",
|
||||
"ember-myth": "0.1.1",
|
||||
"ember-one-way-controls": "1.1.2",
|
||||
"ember-one-way-controls": "2.0.0",
|
||||
"ember-power-select": "1.2.0",
|
||||
"ember-resolver": "2.1.1",
|
||||
"ember-route-action-helper": "2.0.2",
|
||||
|
@ -2362,11 +2362,11 @@ ember-new-computed@^1.0.0, ember-new-computed@^1.0.2:
|
||||
dependencies:
|
||||
ember-cli-babel "^5.1.5"
|
||||
|
||||
ember-one-way-controls@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/ember-one-way-controls/-/ember-one-way-controls-1.1.2.tgz#9ebaba62bb43bf3d5e680f0d13b996353e47ce6d"
|
||||
ember-one-way-controls@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ember-one-way-controls/-/ember-one-way-controls-2.0.0.tgz#7a79f1a56094c44fe1012fd0f9b75bd92d136fe9"
|
||||
dependencies:
|
||||
ember-cli-babel "^5.1.6"
|
||||
ember-cli-babel "^5.1.7"
|
||||
ember-cli-htmlbars "^1.0.10"
|
||||
ember-get-helper "~1.1.0"
|
||||
ember-invoke-action "1.4.0"
|
||||
|
Loading…
Reference in New Issue
Block a user