Skip to content

Commit

Permalink
Fix issue #4859: allow loading RTL text plugin before first style load.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Jun 26, 2017
1 parent 8f3ae82 commit 6ee6b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/source/rtl_text_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module.exports.evented = new Evented();
type ErrorCallback = (error: Error) => void;

module.exports.registerForPluginAvailability = function(
callback: (pluginBlobURL: string, errorCallback: ErrorCallback) => void
callback: (args: {pluginBlobURL: string, errorCallback: ErrorCallback}) => void
) {
if (pluginBlobURL) {
callback(pluginBlobURL, module.exports.errorCallback);
callback({ pluginBlobURL: pluginBlobURL, errorCallback: module.exports.errorCallback});
} else {
module.exports.evented.once('pluginAvailable', callback);
}
Expand Down

0 comments on commit 6ee6b29

Please sign in to comment.