We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内部でmanager.beginUpdate()が呼ばれ、endUpdate()が呼ばれる前にエラーで中断されるため、beginUpdate()が呼ばれっぱなしのままになってしまっているからだと思われる。
以下、検証コード。
manager = h5.core.data.createManager('Manager'); model = manager.createModel({ name: 'Test', schema: { id: { id: true }, v: { type: 'string' } } }); item = model.create({ id: '001' }); item.addEventListener('change', function(e) { console.log(e) }); try { item.set('v', 0); // error } catch (e) { } item.set('v', 'abc'); // イベントが上がらない manager.endUpdate(); // イベントが呼ばれる
The text was updated successfully, but these errors were encountered:
hifive#229 修正しました。テストケース追加しました。
d45d698
hifive#229 ソースコード修正。
7dcb273
model.create();でエラーが起きた時も同様の現象が起きてたので、model.createも修正します。
model.addEventListener('itemsChange', function(e) { console.log(e); }); try { model.create({ id: '001', v: 0 }); } catch (e) { } model.create({ id: '001', v: 'abc' }); // イベントが上がらない
Sorry, something went wrong.
hifive#229 create修正しました。テストケース追加しました。
d92992f
fukudayasuo
No branches or pull requests
内部でmanager.beginUpdate()が呼ばれ、endUpdate()が呼ばれる前にエラーで中断されるため、beginUpdate()が呼ばれっぱなしのままになってしまっているからだと思われる。
以下、検証コード。
The text was updated successfully, but these errors were encountered: