Skip to content

Commit 5ef074c

Browse files
committed
feat(jQuery): プラグインはただのルールとしての実装
1 parent 0b36c50 commit 5ef074c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ja/jQuery/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ calculator.fn = calculator.prototype;
4848

4949
[import, calculator-example.js](../../src/jQuery/calculator-example.js)
5050

51+
実装をみてもらうと分かりますが、JavaScriptの`prototype`の仕組みをそのまま利用しています。
52+
そのため、特別な実装は必要なく「拡張する時は`calculator.prototype`の代わりに`calculator.fn`を拡張して下さい」というルールがあるだけとも言えます。

0 commit comments

Comments
 (0)