mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-22 10:49:24 +08:00
chore(jqLite): expose the _data lookup function to angular.element
This commit is contained in:
committed by
Igor Minar
parent
31c450bcee
commit
b7e4e92014
@@ -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; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user