# هل من الممكن تعديل دالة في ملف مساعد عبر نظام المكونات في الإضافة أو القالب؟

**URL:** <https://meta.discourse.org/t/is-it-possible-to-modify-a-function-in-a-helper-via-the-plugin-or-theme-component-system/140964>\
**Category:** Development\
**Created:** [7 فبراير 2020، 8:09ص UTC](https://meta.discourse.org/t/is-it-possible-to-modify-a-function-in-a-helper-via-the-plugin-or-theme-component-system/140964 "2020-02-07T08:09:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [7 فبراير 2020، 8:09ص UTC](https://meta.discourse.org/t/is-it-possible-to-modify-a-function-in-a-helper-via-the-plugin-or-theme-component-system/140964/1 "2020-02-07T08:09:36Z")

</div>

هل توجد طريقة لإعادة فتح فئة (class) واستبدال دالة؟

الدالة التي أحتاج إلى استبدالها هي `function categoryStripe(color, classes) {}` الموجودة في السطر 15 من هنا: [javascripts/discourse/helpers/category-link.js.es6](https://github.com/discourse/discourse/blob/b25d9e96c1414bf78b44221da4d385675843991e/app/assets/javascripts/discourse/helpers/category-link.js.es6).

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-modify-a-function-in-a-helper-via-the-plugin-or-theme-component-system/140964)._
