Permalink
Browse files

Add annotations to prevent globalThis warnings for jQuery.sub

  • Loading branch information...
1 parent d4f9a4a commit 0efa390653bbb9a548cc854414143fc9d793763f @ChadKillingsworth ChadKillingsworth committed Apr 5, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core.js
View
@@ -1023,7 +1023,11 @@ jQuery.extend({
return { browser: match[1] || "", version: match[2] || "0" };
},
- sub: /** @suppress {globalThis} */ function() {
+ /**
+ * @expose
+ * @this {Function}
+ */
+ sub: function() {
/**
* @constructor
* @extends {jQuery}
@@ -1037,6 +1041,7 @@ jQuery.extend({
jQuerySub.superclass = this;
jQuerySub.fn = jQuerySub.prototype = this();
jQuerySub.fn.constructor = jQuerySub;
+ /** @expose */
jQuerySub.sub = this.sub;
/** @constructor */
jQuerySub.fn.init = function init( selector, context ) {

0 comments on commit 0efa390

Please sign in to comment.