PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/ios/smooth/BackgroundActivity.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/ios/smooth/BackgroundActivity.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/ios/smooth/BackgroundActivity.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: 802 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.ios.smooth.BackgroundActivity', [ 'ephox.katamari.api.Cell', 'ephox.katamari.api.LazyValue' ], function (Cell, LazyValue) { return function (doAction) { // Start the activity in idle state. var action = Cell( LazyValue.pure({}) ); var start = function (value) { var future = LazyValue.nu(function (callback) { return doAction(value).get(callback); }); // Note: LazyValue kicks off immediately action.set(future); }; // Idle will fire g once the current action is complete. var idle = function (g) { action.get().get(function () { g(); }); }; return { start: start, idle: idle }; }; } );