项目作者: telecomsoftware

项目描述 :
Aurelia with SystemJS 0.20 and I18N, test repository for aurelia-i18n issue #230
高级语言: JavaScript
项目地址: git://github.com/telecomsoftware/sample-aurelia-i18n-i230.git
创建时间: 2017-07-19T09:13:09Z
项目社区:https://github.com/telecomsoftware/sample-aurelia-i18n-i230

开源协议:MIT License

下载


sample-aurelia-i18n-i230

Aurelia, JSPM 0.17, SystemJS 0.20 - utilizing aurelia-i18n

Install packages

  1. npm install
  2. jspm install
  3. typings install

Compile, Serve, Run

  1. gulp

(Default task)

Steps to reproduce

  • After above preparations, open the app in the browser (in most cases http://localhost:9100/).
  • Open the browser console.
  • Click on one of the t in the box, a context menu (by Kendo UI) opens. Click somewhere else to close the menu.
  • Click on Toggle Panel, the view changes and the t become things without context menus.
  • Click on Toggle Panel again and examine the exception:
  1. Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
  2. at I18N.updateValue (http://localhost:9100/jspm_packages/npm/aurelia-i18n@1.6.2/i18n.js:221:20)
  3. at TCustomAttribute.bind (http://localhost:9100/jspm_packages/npm/aurelia-i18n@1.6.2/t.js:78:20)
  4. at Controller.bind (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:3458:24)
  5. at View.bind (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:1462:24)
  6. at If._runValueChanged (http://localhost:9100/jspm_packages/npm/aurelia-templating-resources@1.4.0/if.js:84:19)
  7. at If.valueChanged (http://localhost:9100/jspm_packages/npm/aurelia-templating-resources@1.4.0/if.js:39:31)
  8. at BehaviorPropertyObserver.selfSubscriber (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:3702:48)
  9. at BehaviorPropertyObserver.call (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:3568:14)
  10. at BehaviorPropertyObserver.setValue (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:3548:18)
  11. at If.descriptor.set [as value] (http://localhost:9100/jspm_packages/npm/aurelia-templating@1.4.2/aurelia-templating.js:3657:43)

Examine my-thing.html line 11 for a possible workaround:

Instead of

  1. <li data-menuitem-id="settings" t="logout"></li>

use this to avoid the problem:

  1. <li data-menuitem-id="settings">${'logout' & t}</li>