From b7e4e92014a5fe7a2d8c896703498090d88793ce Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Fri, 14 Feb 2014 00:25:10 -0500 Subject: chore(jqLite): expose the _data lookup function to angular.element --- src/jqLite.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/jqLite.js b/src/jqLite.js index 6749b26e..6056730a 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -107,6 +107,14 @@ var jqCache = JQLite.cache = {}, ? function(element, type, fn) {element.removeEventListener(type, fn, false); } : function(element, type, fn) {element.detachEvent('on' + type, fn); }); +/* + * !!! This is an undocumented "private" function !!! + */ +var jqData = JQLite._data = function(node) { + //jQuery always returns an object on cache miss + return this.cache[node[this.expando]] || {}; +}; + function jqNextId() { return ++jqId; } -- cgit v1.2.3