Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b678f31

Browse files
committed
refactor(jqLite): don't look up the entry needlessly
1 parent 550965f commit b678f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function jqLiteRemoveData(element, name) {
320320

321321
function jqLiteExpandoStore(element, key, value) {
322322
var expandoId = element.ng339,
323-
expandoStore = jqCache[expandoId || -1];
323+
expandoStore = expandoId && jqCache[expandoId];
324324

325325
if (isDefined(value)) {
326326
if (!expandoStore) {

0 commit comments

Comments
 (0)