diff options
| author | Matias Niemelä | 2014-02-14 00:25:10 -0500 | 
|---|---|---|
| committer | Igor Minar | 2014-02-14 15:49:08 -0800 | 
| commit | b7e4e92014a5fe7a2d8c896703498090d88793ce (patch) | |
| tree | 2ad08d537bf349aa6d59cf72e2b85bdcabffb159 /src | |
| parent | 31c450bcee53d0a3827b7e0a611e9013b2496506 (diff) | |
| download | angular.js-b7e4e92014a5fe7a2d8c896703498090d88793ce.tar.bz2 | |
chore(jqLite): expose the _data lookup function to angular.element
Diffstat (limited to 'src')
| -rw-r--r-- | src/jqLite.js | 8 | 
1 files changed, 8 insertions, 0 deletions
| 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; } | 
