Skip to content

Commit

Permalink
easyData.data方法修复多个命名空间的BUG
Browse files Browse the repository at this point in the history
1. 【缓存模块】easyData.data方法修复多个命名空间的BUG

easyData.data方法修复了DOM元素如果有多个命名空间的缓存时,会出现添加空缓存的BUG。
  • Loading branch information
chenmnkken committed Feb 16, 2013
1 parent 0b96c0c commit 676e719
Show file tree
Hide file tree
Showing 8 changed files with 230 additions and 222 deletions.
10 changes: 7 additions & 3 deletions build/easy-0.8.3.js → build/easy-0.8.4.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* easy.js v0.8.3
* easy.js v0.8.4
*
* Copyright (c) 2012 Yiguo Chen
* Released under the MIT and GPL Licenses
*
* Mail : chenmnkken@gmail.com
* Date : 2013-1-30 18:2:33
* Date : 2013-2-16 13:38:28
*/

// ---------------------------------------------
Expand Down Expand Up @@ -238,7 +238,7 @@ easyJS.mix = function( target, source, override, whitelist ){

easyJS.mix( easyJS, {

version : '0.8.3',
version : '0.8.4',

__uuid__ : 2,

Expand Down Expand Up @@ -1556,6 +1556,10 @@ var easyData = {

if( isNamespace ){
if( !(type in cache) ){
if( isUndefined ){
return;
}

cache[ type ] = {};
}

Expand Down
8 changes: 4 additions & 4 deletions build/easy-0.8.3.min.js → build/easy-0.8.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ var easyData = {

if( isNamespace ){
if( !(type in cache) ){
if( isUndefined ){
return;
}

cache[ type ] = {};
}

Expand Down
Loading

0 comments on commit 676e719

Please sign in to comment.