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
現在の実装だとtombfix.js内の処理に、component.jsと被っているものやユーティリティー系の関数がいくつかあるので、可能であれば、それらを全て別のファイルに切り出し、tombfix.jsでは起動処理となるTombfixServiceの作成とエクスポートに限定したい。 最終的には、だいたい以下の様な感じにしたいかな。
tombfix.js
component.js
TombfixService
// core/src/components/components.js /* global Components */ (function executeComponents(global) { 'use strict'; const {utils: Cu} = Components; const {Utils} = Cu.import('resource://tombfix/Utils.jsm', {}); const {Tombfix} = Cu.import('resource://tombfix/Tombfix.jsm', {}); Utils.exportService(global, function TombfixService() { this.init(); }, { classDescription: 'Tombfix\'s JavaScript XPCOM Component', contractID: '@tombfix.github.io/tombfix-service;1', classID: '{ab5cbd9b-56e1-42e4-8414-2201edb883e7}', init() { Tombfix.init(); } }); }(this));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
現在の実装だと
tombfix.js
内の処理に、component.js
と被っているものやユーティリティー系の関数がいくつかあるので、可能であれば、それらを全て別のファイルに切り出し、tombfix.js
では起動処理となるTombfixService
の作成とエクスポートに限定したい。最終的には、だいたい以下の様な感じにしたいかな。
The text was updated successfully, but these errors were encountered: