You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome だと h5-1.1.4.dev.js の 10710行目 で Uncaught TypeError: Object #<Object> has no method 'name' が発生し、Firefox だと同じ箇所で TypeError: this._itemValueCheckFuncs[prop] is not a function が発生することを確認しました。
childModel 側を削除するとエラーが発生しなくなることから、base を継承した側の name が base 側に影響をおよぼしてしまっているようです。
確認した環境
問題発生の状況
以下のようなコードを書いたとき parentModel を create するタイミングでエラーが発生します。
Chrome だと h5-1.1.4.dev.js の 10710行目 で
Uncaught TypeError: Object #<Object> has no method 'name'
が発生し、Firefox だと同じ箇所でTypeError: this._itemValueCheckFuncs[prop] is not a function
が発生することを確認しました。childModel 側を削除するとエラーが発生しなくなることから、base を継承した側の
name
が base 側に影響をおよぼしてしまっているようです。原因と思われる箇所
ちょっと原因を追ってみたんですが、base を指定した Model を createModel() で設定しているあいだに、validateDescripter() の中(h5-1.1.4.dev.js の 9500行目)で以下のように baseSchema を書き換えている部分が原因ではないかと思います。
The text was updated successfully, but these errors were encountered: