Hi, We have created xwalk.utils extension for sharing code between extensions. Put your code there so you can share it.
https://github.com/crosswalk-project/tizen-extensions-crosswalk/tree/master/utils One API using it already: https://github.com/crosswalk-project/tizen-extensions-crosswalk/blob/master/content/content_api.js ContentManager.prototype.find = function(onsuccess, onerror, directoryId, filter, sortMode, count, offset) { if (!xwalk.utils.validateArguments('f?fsoonn', arguments)) { throw new tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR); } Sakari From: Romuald TEXIER-MARCADÉ <[email protected]<mailto:[email protected]>> Date: Wednesday, June 4, 2014 at 16:51 To: crosswalk-dev <[email protected]<mailto:[email protected]>> Subject: [Crosswalk-dev] [Tizen] What is the best way to share code between extensions? Hello, In order to avoid duplication of effort and to make maintenance easier I would like to reuse some code from one extension in another (in my case, the code resolving virtual roots from the filesystem API is also needed in the Download API). So what is the best practice to do so? Could I factor the common code out and place it in common/? Thank you. Romuald. _______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
