chore(jqLite): expose the _data lookup function to angular.element

This commit is contained in:
Matias Niemelä
2014-02-14 00:25:10 -05:00
committed by Igor Minar
parent 31c450bcee
commit b7e4e92014
2 changed files with 25 additions and 0 deletions

View File

@@ -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; }