MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / toggle

Method toggle

src/common/control/TimeControlBase.js:202–210  ·  view source on GitHub ↗

* @function TimeControlBase.prototype.toggle * @description 开关切换,切换的是开始和暂停。

()

Source from the content-addressed store, hash-verified

200 * @description 开关切换,切换的是开始和暂停。
201 */
202 toggle() {
203 var me = this;
204
205 if (me.running) {
206 me.pause();
207 } else {
208 me.start();
209 }
210 }
211
212
213 /**

Callers 5

mapbox-gl.jsFile · 0.80
leaflet.jsFile · 0.80
leaflet-src.jsFile · 0.80
ol.jsFile · 0.80

Calls 2

pauseMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected