the declaredClass:"CustomGraphic" line that was added. Once this is in there, it works. This should be used in all extended classes. Doc will be updated to reflect this and hopefully alleviate any future confusion."/>
登录以获取更新
URL 已复制共享 URL
漏洞
Classes cannot be extended in ArcGIS API for JavaScript 4.1.
上次发布: July 31, 2017ArcGIS for Server
漏洞 ID 编号
BUG-000100264
已提交
October 21, 2016
上次修改时间
March 30, 2022
适用范围
ArcGIS for Server
找到的版本
10.2.2
服务器平台
Windows OS
客户端平台
7.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Problem is with how the custom class was created, it should read
define(["esri/core/declare", "esri/Graphic"],function (declare, graphic) {
return declare([graphic],{
declaredClass: "CustomGraphic"
});
});
NOTE -> the declaredClass:"CustomGraphic" line that was added. Once this is in there, it works. This should be used in all extended classes. Doc will be updated to reflect this and hopefully alleviate any future confusion.