From c5a94f1b040a1a4895c9cd1ede54497ed7845a3e Mon Sep 17 00:00:00 2001 From: marekpetras Date: Tue, 6 Mar 2018 15:38:06 +1100 Subject: [PATCH] jquery.selector deprecated as of jquery 3.0.0 https://api.jquery.com/selector/ --- Source/jQuery.addObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/jQuery.addObject.js b/Source/jQuery.addObject.js index 0c1bdfb..a9fd597 100644 --- a/Source/jQuery.addObject.js +++ b/Source/jQuery.addObject.js @@ -21,7 +21,7 @@ jQuery.addObject = function(name, object){ return this; } if (instance) return instance; - this.data(name, new object(this.selector, arg)); + this.data(name, new object(this, arg)); return this; }; };