PHP Classes

File: vendors/gentelella/vendors/echarts/src/component/helper/interactionMutex.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/echarts/src/component/helper/interactionMutex.js   Download  
File: vendors/gentelella/vendors/echarts/src/component/helper/interactionMutex.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 483 bytes
 

Contents

Class file image Download
define(function (require) { var ATTR = '\0_ec_interaction_mutex'; var interactionMutex = { take: function (key, zr) { getStore(zr)[key] = true; }, release: function (key, zr) { getStore(zr)[key] = false; }, isTaken: function (key, zr) { return !!getStore(zr)[key]; } }; function getStore(zr) { return zr[ATTR] || (zr[ATTR] = {}); } return interactionMutex; });