Skip to content

Commit b13470a

Browse files
committed
1.4.5
1 parent 3e2d00c commit b13470a

File tree

12 files changed

+544
-582
lines changed

12 files changed

+544
-582
lines changed

build/dom/base-min.js

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dom/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Copyright 2014, KISSY v1.44
33
MIT Licensed
4-
build time: May 27 14:02
4+
build time: Jul 23 14:31
55
*/
66
/*
77
Combined processedModules by KISSY Module Compiler:
@@ -693,6 +693,7 @@ KISSY.add("dom/base/create", ["./api"], function(S, require) {
693693
creators.option = creators.optgroup = function(html, ownerDoc) {
694694
return create('<select multiple="multiple">' + html + "</select>", undefined, ownerDoc)
695695
};
696+
creatorsMap.option = creatorsMap.optgroup = 1;
696697
return Dom
697698
});
698699
KISSY.add("dom/base/data", ["./api"], function(S, require) {

build/io-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/io.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Copyright 2014, KISSY v1.44
33
MIT Licensed
4-
build time: May 27 14:25
4+
build time: Jul 23 14:31
55
*/
66
/*
77
Combined processedModules by KISSY Module Compiler:
@@ -48,11 +48,11 @@ KISSY.add("io/form-serializer", ["dom"], function(S, require) {
4848
val = normalizeCRLF(val)
4949
}
5050
vs = data[el.name];
51-
if(!vs) {
51+
if(vs === undefined) {
5252
data[el.name] = val;
5353
return
5454
}
55-
if(vs && !S.isArray(vs)) {
55+
if(!S.isArray(vs)) {
5656
vs = data[el.name] = [vs]
5757
}
5858
vs.push.apply(vs, S.makeArray(val))

build/swf-min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/swf.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Copyright 2014, KISSY v1.44
33
MIT Licensed
4-
build time: May 22 12:31
4+
build time: Jul 23 14:31
55
*/
66
/*
77
Combined processedModules by KISSY Module Compiler:
@@ -66,11 +66,8 @@ KISSY.add("swf", ["dom", "json", "attribute", "swf/ua"], function(S, require) {
6666
SWF = Attribute.extend({constructor:function(config) {
6767
var self = this;
6868
self.callSuper(config);
69-
var expressInstall = self.get("expressInstall"), swf, html, id, htmlMode = self.get("htmlMode"), flashVars, params = self.get("params"), attrs = self.get("attrs"), doc = self.get("document"), placeHolder = Dom.create("<span>", undefined, doc), elBefore = self.get("elBefore"), installedSrc = self.get("src"), hasNoId = !("id" in attrs), idRegExp, version = self.get("version");
69+
var expressInstall = self.get("expressInstall"), swf, html, id, htmlMode = self.get("htmlMode"), flashVars, params = self.get("params"), attrs = self.get("attrs"), doc = self.get("document"), placeHolder = Dom.create("<span>", undefined, doc), elBefore = self.get("elBefore"), installedSrc = self.get("src"), version = self.get("version");
7070
id = attrs.id = attrs.id || S.guid("ks-swf-");
71-
if(hasNoId) {
72-
idRegExp = new RegExp("\\s+id\\s*=\\s*['\"]?" + S.escapeRegExp(id) + "['\"]?", "i")
73-
}
7471
if(!fpv()) {
7572
self.set("status", SWF.Status.NOT_INSTALLED);
7673
return
@@ -94,7 +91,7 @@ KISSY.add("swf", ["dom", "json", "attribute", "swf/ua"], function(S, require) {
9491
}else {
9592
html = _stringSWFDefault(installedSrc, attrs, params)
9693
}
97-
self.set("html", idRegExp ? html.replace(idRegExp, "") : html);
94+
self.set("html", html);
9895
if(elBefore) {
9996
Dom.insertBefore(placeHolder, elBefore)
10097
}else {
@@ -115,9 +112,6 @@ KISSY.add("swf", ["dom", "json", "attribute", "swf/ua"], function(S, require) {
115112
}else {
116113
self.set("swfObject", swf)
117114
}
118-
if(hasNoId) {
119-
Dom.removeAttr(swf, "id")
120-
}
121115
self.set("el", swf);
122116
if(!self.get("status")) {
123117
self.set("status", SWF.Status.SUCCESS)

src/dom/sub-modules/base/coverage/src/base/create.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ if (! _$jscoverage['/base/create.js']) {
420420
_$jscoverage['/base/create.js'].lineData[524] = 0;
421421
_$jscoverage['/base/create.js'].lineData[532] = 0;
422422
_$jscoverage['/base/create.js'].lineData[533] = 0;
423+
_$jscoverage['/base/create.js'].lineData[535] = 0;
423424
_$jscoverage['/base/create.js'].lineData[536] = 0;
424425
}
425426
if (! _$jscoverage['/base/create.js'].functionData) {
@@ -1404,6 +1405,8 @@ KISSY.add(function(S, require) {
14041405
_$jscoverage['/base/create.js'].lineData[533]++;
14051406
return create('<select multiple="multiple">' + html + '</select>', undefined, ownerDoc);
14061407
};
1408+
_$jscoverage['/base/create.js'].lineData[535]++;
1409+
creatorsMap.option = creatorsMap.optgroup = 1;
14071410
_$jscoverage['/base/create.js'].lineData[536]++;
14081411
return Dom;
14091412
});

src/dom/sub-modules/base/src/base/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ KISSY.add(function (S, require) {
532532
creators.option = creators.optgroup = function (html, ownerDoc) {
533533
return create('<select multiple="multiple">' + html + '</select>', undefined, ownerDoc);
534534
};
535-
535+
creatorsMap.option = creatorsMap.optgroup = 1;
536536
return Dom;
537537
});
538538

src/io/coverage/src/io/form-serializer.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ if (! _$jscoverage['/io/form-serializer.js'].branchData) {
290290
_$jscoverage['/io/form-serializer.js'].branchData['79'] = [];
291291
_$jscoverage['/io/form-serializer.js'].branchData['79'][1] = new BranchData();
292292
}
293-
_$jscoverage['/io/form-serializer.js'].branchData['79'][1].init(586, 20, 'vs && !S.isArray(vs)');
293+
_$jscoverage['/io/form-serializer.js'].branchData['79'][1].init(599, 14, '!S.isArray(vs)');
294294
function visit35_79_1(result) {
295295
_$jscoverage['/io/form-serializer.js'].branchData['79'][1].ranCondition(result);
296296
return result;
297-
}_$jscoverage['/io/form-serializer.js'].branchData['75'][1].init(472, 3, '!vs');
297+
}_$jscoverage['/io/form-serializer.js'].branchData['75'][1].init(472, 16, 'vs === undefined');
298298
function visit34_75_1(result) {
299299
_$jscoverage['/io/form-serializer.js'].branchData['75'][1].ranCondition(result);
300300
return result;
@@ -306,23 +306,23 @@ function visit33_68_1(result) {
306306
function visit32_63_1(result) {
307307
_$jscoverage['/io/form-serializer.js'].branchData['63'][1].ranCondition(result);
308308
return result;
309-
}_$jscoverage['/io/form-serializer.js'].branchData['51'][1].init(91, 125, 'rselectTextarea.test(el.nodeName) || rinput.test(el.type)');
309+
}_$jscoverage['/io/form-serializer.js'].branchData['51'][1].init(83, 117, 'rselectTextarea.test(el.nodeName) || rinput.test(el.type)');
310310
function visit31_51_1(result) {
311311
_$jscoverage['/io/form-serializer.js'].branchData['51'][1].ranCondition(result);
312312
return result;
313-
}_$jscoverage['/io/form-serializer.js'].branchData['49'][1].init(-1, 217, 'el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type)');
313+
}_$jscoverage['/io/form-serializer.js'].branchData['49'][1].init(-1, 201, 'el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type)');
314314
function visit30_49_1(result) {
315315
_$jscoverage['/io/form-serializer.js'].branchData['49'][1].ranCondition(result);
316316
return result;
317-
}_$jscoverage['/io/form-serializer.js'].branchData['46'][1].init(58, 352, '!el.disabled && (el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type))');
317+
}_$jscoverage['/io/form-serializer.js'].branchData['46'][1].init(58, 336, '!el.disabled && (el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type))');
318318
function visit29_46_1(result) {
319319
_$jscoverage['/io/form-serializer.js'].branchData['46'][1].ranCondition(result);
320320
return result;
321-
}_$jscoverage['/io/form-serializer.js'].branchData['44'][1].init(47, 411, 'el.name && !el.disabled && (el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type))');
321+
}_$jscoverage['/io/form-serializer.js'].branchData['44'][1].init(47, 395, 'el.name && !el.disabled && (el.checked || rselectTextarea.test(el.nodeName) || rinput.test(el.type))');
322322
function visit28_44_1(result) {
323323
_$jscoverage['/io/form-serializer.js'].branchData['44'][1].ranCondition(result);
324324
return result;
325-
}_$jscoverage['/io/form-serializer.js'].branchData['30'][1].init(80, 23, 'serializeArray || false');
325+
}_$jscoverage['/io/form-serializer.js'].branchData['30'][1].init(84, 23, 'serializeArray || false');
326326
function visit27_30_1(result) {
327327
_$jscoverage['/io/form-serializer.js'].branchData['30'][1].ranCondition(result);
328328
return result;
@@ -385,14 +385,14 @@ KISSY.add(function(S, require) {
385385
_$jscoverage['/io/form-serializer.js'].lineData[74]++;
386386
vs = data[el.name];
387387
_$jscoverage['/io/form-serializer.js'].lineData[75]++;
388-
if (visit34_75_1(!vs)) {
388+
if (visit34_75_1(vs === undefined)) {
389389
_$jscoverage['/io/form-serializer.js'].lineData[76]++;
390390
data[el.name] = val;
391391
_$jscoverage['/io/form-serializer.js'].lineData[77]++;
392392
return;
393393
}
394394
_$jscoverage['/io/form-serializer.js'].lineData[79]++;
395-
if (visit35_79_1(vs && !S.isArray(vs))) {
395+
if (visit35_79_1(!S.isArray(vs))) {
396396
_$jscoverage['/io/form-serializer.js'].lineData[81]++;
397397
vs = data[el.name] = [vs];
398398
}

0 commit comments

Comments
 (0)