几年来我一直在使用 Google Closure Compiler,但我并没有过多地使用实际的 Closure 库。
当我编译我的应用程序时,我收到以下警告。引用的代码在库本身中,而不是在我的文件中。我想知道我是否应该做些什么来修复它们,或者只是等待 Closure 库的贡献者这样做。
/Users/Jan/.../closure-library/closure/goog/dom/dom.js:673:
WARNING - Property type never defined on attributes
delete attributes.type;
^
/Users/Jan/.../closure-library/closure/goog/dom/dom.js:2396:
WARNING - assignment to property getFrameContentDocument of goog.dom.DomHelper.prototype
found : function ((Element|null)): Document
required: function (this:goog.dom.DomHelper, (HTMLFrameElement|HTMLIFrameElement|null)): HTMLDocument
goog.dom.DomHelper.prototype.getFrameContentDocument =
^
/Users/Jan/.../closure-library/closure/goog/fx/animation.js:255:
WARNING - mismatch of the stop property type and the type of the property it overrides from superclass goog.fx.TransitionBase
original: function (this:goog.fx.TransitionBase, boolean=): ?
override: function (this:goog.fx.Animation, boolean): ?
goog.fx.Animation.prototype.stop = function(gotoEnd) {
^
据我所知,没有任何问题。警告不会仅针对一个项目弹出,但我确实以相同的方式使用该库。