UNPKG

openfl

Version:

A fast, productive library for 2D cross-platform development.

62 lines (44 loc) 1.49 kB
// Class: lime.system._ThreadPool.PseudoEvent_Impl_ var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this $global.Object.defineProperty(exports, "__esModule", {value: true}); var __map_reserved = {}; // Imports var $hxClasses = require("./../../../hxClasses_stub").default; var $hxEnums = require("./../../../hxEnums_stub").default; // Constructor var PseudoEvent_Impl_ = function(){} // Meta PseudoEvent_Impl_.__name__ = "lime.system._ThreadPool.PseudoEvent_Impl_"; PseudoEvent_Impl_.__isInterface__ = false; PseudoEvent_Impl_.prototype = { }; PseudoEvent_Impl_.prototype.__class__ = PseudoEvent_Impl_.prototype.constructor = $hxClasses["lime.system._ThreadPool.PseudoEvent_Impl_"] = PseudoEvent_Impl_; // Init // Statics PseudoEvent_Impl_.get___listeners = function(this1) { return []; } PseudoEvent_Impl_.get___repeat = function(this1) { return []; } PseudoEvent_Impl_.add = function(this1,callback) { var callCallback = function(state,output) { callback(state); }; this1.__doWork = callCallback; } PseudoEvent_Impl_.cancel = function(this1) { } PseudoEvent_Impl_.dispatch = function(this1) { } PseudoEvent_Impl_.has = function(this1,callback) { return this1.__doWork != null; } PseudoEvent_Impl_.remove = function(this1,callback) { this1.__doWork = null; } PseudoEvent_Impl_.removeAll = function(this1) { this1.__doWork = null; } // Export exports.default = PseudoEvent_Impl_;