Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Update ember-one-way-controls to version 2.0.0 🚀 (#475)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
greenkeeperio-bot authored and kevinansfield committed Jan 23, 2017
1 parent 1c4714d commit 526a239
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 9 additions & 5 deletions app/components/gh-trim-focus-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 526a239

Please sign in to comment.