Skip to content

Commit

Permalink
Merge pull request #1 from conterra/dev_reactiveUtils
Browse files Browse the repository at this point in the history
Replace watchUtils with reactiveUtils
  • Loading branch information
sholtkamp authored Aug 3, 2023
2 parents 3991f88 + fea98e7 commit e1bcd37
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
* limitations under the License.
*/
import declare from "dojo/_base/declare";
import {watch} from "esri/core/watchUtils";
import * as reactiveUtils from "esri/core/reactiveUtils";

export default declare([], {

activate: function() {
var mapID = this.basemapsModel.selectedId;
this.localizeBasemap(mapID);
watch(this.basemapsModel, "selectedId", (event)=> {
this.localizeBasemap(event.value);
reactiveUtils.watch(
() => this.basemapsModel.selectedId,
(event)=> {
this.localizeBasemap(event.value);
})
},
localizeBasemap(mapID){
Expand Down

0 comments on commit e1bcd37

Please sign in to comment.