From dde790e8817665bd0ba888ac4f397fad8de64e0b Mon Sep 17 00:00:00 2001 From: walysclw Date: Wed, 19 Jul 2017 10:41:41 +0800 Subject: [PATCH] Update data.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 把注释移到函数外面 --- data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data.js b/data.js index 00bb1457..e48c0262 100644 --- a/data.js +++ b/data.js @@ -87,8 +87,8 @@ define("data", ["lang"], function($) { var rparse = /^(?:null|false|true|NaN|\{.*\}|\[.*\])$/; $.mix({ + //判定是否关联了数据 hasData: function(owner) { - //判定是否关联了数据 return owners.indexOf(owner) > -1; }, @@ -167,4 +167,4 @@ define("data", ["lang"], function($) { 2012.9.29 对parseData的数据进行严格的验证后才转换 v2 2012.12.30 使用jquery2.0的新思路,通过存放目标的数组的索引值来关联目标与缓存体 v3 2013.1.2 升级到v4 -*/ \ No newline at end of file +*/