Skip to content

Commit

Permalink
Add debug-handlers polyfill to capture warning in older Ember
Browse files Browse the repository at this point in the history
Add `test` condition to warn call in collapse-tree
  • Loading branch information
bantic committed Jul 30, 2019
1 parent 961a5d5 commit ea8d909
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions addon/-private/collapse-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ function mapSelectionToMeta(tree, selection) {
`[ember-table] The selection included a row that was not found in the table's rows. This should be avoided as it causes performance issues. The missing row is: ${JSON.stringify(
item
)}`,
false,
{
id: 'ember-table.selection-invalid',
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"broccoli-string-replace": "^0.1.2",
"css-element-queries": "^0.4.0",
"ember-assign-polyfill": "^2.2.0",
"ember-classy-page-object": "^0.5.0",
"ember-cli-babel": "^6.7.1",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
Expand All @@ -38,7 +39,6 @@
"ember-getowner-polyfill": "^2.2.0",
"ember-legacy-class-shim": "^1.0.0",
"ember-raf-scheduler": "^0.1.0",
"ember-classy-page-object": "^0.5.0",
"ember-test-selectors": "^0.3.9",
"ember-useragent": "^0.6.0",
"hammerjs": "^2.0.8"
Expand Down Expand Up @@ -70,6 +70,7 @@
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0",
"ember-debug-handlers-polyfill": "^1.1.1",
"ember-decorators": "^2.2.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5855,6 +5855,11 @@ ember-copy@^1.0.0:
ember-cli-typescript "^2.0.1"
ember-inflector "^3.0.0"

ember-debug-handlers-polyfill@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/ember-debug-handlers-polyfill/-/ember-debug-handlers-polyfill-1.1.1.tgz#e9ae0a720271a834221179202367421b580002ef"
integrity sha512-lO7FBAqJjzbL+IjnWhVfQITypPOJmXdZngZR/Vdn513W4g/Q6Sjicao/mDzeDCb48Y70C4Facwk0LjdIpSZkRg==

ember-decorators@^2.2.0:
version "2.5.2"
resolved "https://registry.npmjs.org/ember-decorators/-/ember-decorators-2.5.2.tgz#6d69c48d86df5f90c3d540486681c08a33256196"
Expand Down

0 comments on commit ea8d909

Please sign in to comment.