Skip to content

Commit a36de0f

Browse files
committed
builder 2d - update example code and tsconfig
- tsconfig - consistent with developer folder - use `self.inherited` instead of `.call`
1 parent 9d064b6 commit a36de0f

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

builder-2d/package-lock.json

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builder-2d/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"grunt-ts": "^6.0.0-beta.16",
1919
"dojo-typings": "^1.11.7",
2020
"@types/arcgis-js-api": "^3.22.0",
21-
"@types/es6-promise": "0.0.32",
2221
"typescript": "^2.6.2"
2322
}
2423
}

builder-2d/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"experimentalDecorators": true,
1111
"preserveConstEnums": true,
1212
"suppressImplicitAnyIndexErrors": true,
13-
"types": [ "arcgis-js-api", "dojo-typings", "es6-promise"],
13+
"types": [ "arcgis-js-api", "dojo-typings"],
1414
"rootDir": "widgets",
1515
"outDir": "dist/Widgets",
1616
"noImplicitUseStrict":true,
17+
"lib": ["dom", "es5", "scripthost", "es2015.promise"],
1718
"inlineSources": true,
1819
"inlineSourceMap": true
1920
},

builder-2d/widgets/MyWidget/Widget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class Widget {
3131

3232
postCreate(args: any) {
3333
// not allowed in option strict this.inherited(arguments);
34-
BaseWidget.prototype.postCreate.call(this, args);
34+
let self: any = this;
35+
self.inherited(arguments);
3536
this.widgetWrapper.innerHTML = this.config.demoSetting;
3637
this.createLayer();
3738
};

0 commit comments

Comments
 (0)