Google Closure Library - 编译警告

时间:2012-10-27 20:25:44

标签: javascript google-closure-compiler google-closure-library

我一直在使用Google Closure Compiler几年,但我还没有玩过那么多Closure Library。

当我编译我的应用程序时,我收到以下警告。引用的代码在库本身,而不是在我的文件中。 我想知道我是否应该做些什么来修复它们或者只是等待Closure Library贡献者这样做。

/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) {
^

据我所知,没有什么能打破。警告不会仅针对一个项目弹出,但我确实以相同的方式使用库。

0 个答案:

没有答案