Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
package.dist.prod.locale.directionChange.js.map Maven / Gradle / Ivy
{
"version": 3,
"sources": ["../../../src/locale/directionChange.ts"],
"sourcesContent": ["import EventProvider from \"../EventProvider.js\";\n\ntype DirectionChangeCallback = () => void;\n\nconst eventProvider = new EventProvider();\nconst DIR_CHANGE = \"directionChange\";\n\n/**\n * Attach a callback that will be executed whenever the application calls the \"applyDirection\" function\n * @public\n * @param listener\n */\nconst attachDirectionChange = (listener: DirectionChangeCallback) => {\n\teventProvider.attachEvent(DIR_CHANGE, listener);\n};\n\n/**\n * Detach a callback that was passed with \"attachDirectionChange\"\n * @public\n * @param listener\n */\nconst detachDirectionChange = (listener: DirectionChangeCallback) => {\n\teventProvider.detachEvent(DIR_CHANGE, listener);\n};\n\nconst fireDirectionChange = () => {\n\treturn eventProvider.fireEvent(DIR_CHANGE, undefined);\n};\n\nexport {\n\tattachDirectionChange,\n\tdetachDirectionChange,\n\tfireDirectionChange,\n};\n"],
"mappings": "aAAA,OAAOA,MAAmB,sBAI1B,MAAMC,EAAgB,IAAID,EACpBE,EAAa,kBAObC,EAAyBC,GAAsC,CACpEH,EAAc,YAAYC,EAAYE,CAAQ,CAC/C,EAOMC,EAAyBD,GAAsC,CACpEH,EAAc,YAAYC,EAAYE,CAAQ,CAC/C,EAEME,EAAsB,IACpBL,EAAc,UAAUC,EAAY,MAAS,EAGrD,OACCC,KAAA,sBACAE,KAAA,sBACAC,KAAA",
"names": ["EventProvider", "eventProvider", "DIR_CHANGE", "attachDirectionChange", "listener", "detachDirectionChange", "fireDirectionChange"]
}