Skip to content

Commit d2ebee9

Browse files
committed
translate "In Concluseion" to ja
1 parent a4a7721 commit d2ebee9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎doc/ja/object/prototype.md‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,9 @@ JavaScriptはプロトタイプベースが採用されている唯一の広範
7777
**唯一**組み込みのプロトタイプを拡張しても良い理由としては、JavaScriptエンジンに将来実装されるであろう機能の移植だけです。
7878
例えば[`Array.forEach`][3]などが、それに当たります。
7979

80-
### In Conclusion
81-
82-
It is a **must** to understand the prototypal inheritance model completely
83-
before writing complex code which makes use of it. Also, watch the length of
84-
the prototype chains and break them up if necessary to avoid possible
85-
performance issues. Further, the native prototypes should **never** be extended
86-
unless it is for the sake of compatibility with newer JavaScript features.
80+
### 終わりに
8781

82+
ここまでがプロトタイプベース継承モデルを使って複雑なコードを書く前に**必ず**理解すべき事です。また、プロパティチェーンの長さを観察して、もしパフォーマンスに悪影響を及ぼすのを防ぐ為ならば、これを分割をしなければなりません。さらに組み込みのプロトタイプは新しいJavaScriptの機能と互換性が無い限りは**絶対**に拡張してはいけません。
8883
[1]: http://en.wikipedia.org/wiki/Monkey_patch
8984
[2]: http://prototypejs.org/
9085
[3]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach

0 commit comments

Comments
 (0)