PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/channels/Receivers.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/channels/Receivers.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/channels/Receivers.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,115 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.channels.Receivers', [ 'ephox.alloy.api.behaviour.Receiving', 'ephox.boulder.api.Objects', 'tinymce.themes.mobile.channels.TinyChannels' ], function (Receiving, Objects, TinyChannels) { var format = function (command, update) { return Receiving.config({ channels: Objects.wrap( TinyChannels.formatChanged(), { onReceive: function (button, data) { if (data.command === command) { update(button, data.state); } } } ) }); }; var orientation = function (onReceive) { return Receiving.config({ channels: Objects.wrap( TinyChannels.orientationChanged(), { onReceive: onReceive } ) }); }; var receive = function (channel, onReceive) { return { key: channel, value: { onReceive: onReceive } }; }; return { format: format, orientation: orientation, receive: receive }; } );