envtemperature.js
var envtemperature = StudioWidgetWrapper.extend({
/*
* Triggered when initializing a widget and will have the code that invokes rendering of the widget
*/
init: function () {
var thisObj = this;
thisObj._super.apply(thisObj, arguments);
thisObj.render();
if ((typeof (Studio) != “undefined”) && Studio) {
//切换设备发出的事件
//Studio.registerEvents(thisObj, "changeCurrentDevice", "Change Current Device", []);
//接受点击某个设备事件
//Studio.registerAction(thisObj, "clickMarkerAction", "Click Marker Action", [], $.proxy(thisObj.clickMarkerActionCbk, thisObj), []);
// Studio.registerEvents(thisObj, "clearDeviceIconById", "clearDeviceById", []); //{overlaysIds[]}
//Studio.registerEvents(thisObj, "addDeviceIconById", "addDeviceIconById", []); //{overlaysIds[]}
//Studio.registerEvents(thisObj,