Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add custom event test

  • Loading branch information...
commit 5e2415bfe1d2663f954f4441bdfcedb1c5aba2f9 1 parent 8b5bed9
@yiminghe yiminghe authored
View
4 build/base-min.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:49
+build time: Nov 14 22:59
*/
KISSY.add("base/attribute",function(j,i){function k(a,b){return"string"==typeof b?a[b]:b}function m(a,b,c,d,e,g,f){f=f||c;return a.fire(b+j.ucfirst(c)+"Change",{attrName:f,subAttrName:g,prevVal:d,newVal:e})}function h(a,b,c){var d=a[b]||{};c&&(a[b]=d);return d}function f(a){return h(a,"__attrs",!0)}function n(a){return h(a,"__attrVals",!0)}function q(a,b){for(var c=0,d=b.length;a!=i&&c<d;c++)a=a[b[c]];return a}function r(a,b){var c;!a.hasAttr(b)&&-1!==b.indexOf(".")&&(c=b.split("."),b=c.shift());
return{path:c,name:b}}function s(a,b,c){var d=c;if(b){var a=d=a===i?{}:j.clone(a),e=b.length-1;if(0<=e){for(var g=0;g<e;g++)a=a[b[g]];a!=i&&(a[b[g]]=c)}}return d}function t(a,b,c,d,e){var d=d||{},g,f,l;l=r(a,b);var h=b,b=l.name;g=l.path;l=a.get(b);g&&(f=q(l,g));if(!g&&l===c||g&&f===c)return i;c=s(l,g,c);if(!d.silent&&!1===m(a,"before",b,l,c,h))return!1;c=a.setInternal(b,c,d);if(!1===c)return c;d.silent||(c=n(a)[b],m(a,"after",b,l,c,h),e?e.push({prevVal:l,newVal:c,attrName:b,subAttrName:h}):m(a,"",
@@ -9,4 +9,4 @@ return{path:c,name:b}}function s(a,b,c){var d=c;if(b){var a=d=a===i?{}:j.clone(a
return a},addAttr:function(a,b,c){var d=f(this),b=j.clone(b);d[a]?j.mix(d[a],b,c):d[a]=b;return this},addAttrs:function(a,b){var c=this;j.each(a,function(a,b){c.addAttr(b,a)});b&&c.set(b);return c},hasAttr:function(a){return f(this).hasOwnProperty(a)},removeAttr:function(a){this.hasAttr(a)&&(delete f(this)[a],delete n(this)[a]);return this},set:function(a,b,c){if(j.isPlainObject(a)){var c=b,b=Object(a),d=[],e,g=[];for(a in b)(e=u(this,a,b[a],b))!==i&&g.push(e);if(g.length)return c&&c.error&&c.error(g),
!1;for(a in b)t(this,a,b[a],c,d);var f=[],h=[],n=[],k=[];j.each(d,function(a){h.push(a.prevVal);n.push(a.newVal);f.push(a.attrName);k.push(a.subAttrName)});f.length&&m(this,"","*",h,n,k,f);return this}return t(this,a,b,c)},setInternal:function(a,b,c){var d,e,g=h(f(this),a,!0).setter;e=u(this,a,b);if(e!==i)return c.error&&c.error(e),!1;if(g&&(g=k(this,g)))d=g.call(this,b,a);if(d===v)return!1;d!==i&&(b=d);n(this)[a]=b},get:function(a){var b,c=this.hasAttr(a),d=n(this),e;!c&&-1!==a.indexOf(".")&&(b=
a.split("."),a=b.shift());c=h(f(this),a).getter;e=a in d?d[a]:p(this,a);if(c&&(c=k(this,c)))e=c.call(this,e,a);!(a in d)&&e!==i&&(d[a]=e);b&&(e=q(e,b));return e},reset:function(a,b){if("string"==typeof a)return this.hasAttr(a)?this.set(a,p(this,a),b):this;var b=a,c=f(this),d={};for(a in c)d[a]=p(this,a);this.set(d,b);return this}};return o});
-KISSY.add("base",function(j,i,k){function m(h){var f=this.constructor;for(this.userConfig=h;f;){var i=f.ATTRS;if(i){var j=void 0;for(j in i)this.addAttr(j,i[j],!1)}f=f.superclass?f.superclass.constructor:null}if(h)for(var k in h)this.setInternal(k,h[k])}j.augment(m,k.Target,i);m.Attribute=i;return j.Base=m},{requires:["base/attribute","event"]});
+KISSY.add("base",function(j,i,k){function m(h){var f=this.constructor;for(this.userConfig=h;f;){var i=f.ATTRS;if(i){var j=void 0;for(j in i)this.addAttr(j,i[j],!1)}f=f.superclass?f.superclass.constructor:null}if(h)for(var k in h)this.setInternal(k,h[k])}j.augment(m,k.Target,i);m.Attribute=i;return j.Base=m},{requires:["base/attribute","event/custom"]});
View
4 build/base.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:49
+build time: Nov 14 22:59
*/
/**
* @ignore
@@ -628,5 +628,5 @@ KISSY.add('base', function (S, Attribute, Event) {
return Base;
}, {
- requires: ['base/attribute', 'event']
+ requires: ['base/attribute', 'event/custom']
});
View
10 build/kissy-min.js
@@ -1,9 +1,9 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:01
*/
-var KISSY=function(a){var d=this,e,h=0;e={__BUILD_TIME:"20121114215458",Env:{host:d,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(c,d){var g,k,l=this,b,f=e.Config,j=f.fns;e.isObject(c)?e.each(c,function(a,m){(b=j[m])?b.call(l,a):f[m]=a}):(g=j[c],d===a?k=g?g.call(l):f[c]:g?k=g.call(l,d):f[c]=d);return k},log:function(c,i,g){if(e.Config.debug&&(g&&(c=g+": "+c),d.console!==a&&console.log))console[i&&console[i]?i:"log"](c)},
+var KISSY=function(a){var d=this,e,h=0;e={__BUILD_TIME:"20121114230053",Env:{host:d,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(c,d){var g,k,l=this,b,f=e.Config,j=f.fns;e.isObject(c)?e.each(c,function(a,m){(b=j[m])?b.call(l,a):f[m]=a}):(g=j[c],d===a?k=g?g.call(l):f[c]:g?k=g.call(l,d):f[c]=d);return k},log:function(c,i,g){if(e.Config.debug&&(g&&(c=g+": "+c),d.console!==a&&console.log))console[i&&console[i]?i:"log"](c)},
error:function(a){if(e.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+h++}};e.Env.nodejs&&(e.KISSY=e,module.exports=e);return e}();
(function(a,d){function e(b,f,a,n,m,e){if(!f||!b)return b;a===d&&(a=g);var i=0,s,q;f[c]=b;e.push(f);if(n&&(q=n.length))for(;i<q;i++)s=n[i],s in f&&h(s,b,f,a,n,m,e);else{for(s in f)s!=c&&h(s,b,f,a,n,m,e);if(k)for(;s=l[i++];)f.hasOwnProperty(s)&&h(s,b,f,a,n,m,e)}return b}function h(b,f,j,n,m,i,l){if(n||!(b in f)||i){var k=f[b],j=j[b];if(k!==j)if(i&&j&&(a.isArray(j)||a.isPlainObject(j)))j[c]?f[b]=j[c]:(i=k&&(a.isArray(k)||a.isPlainObject(k))?k:a.isArray(j)?[]:{},f[b]=i,e(i,j,n,m,g,l));else if(j!==d&&
(n||!(b in f)))f[b]=j}}var c="__MIX_CIRCULAR",i=this,g=!0,k=!{toString:1}.propertyIsEnumerable("toString"),l="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(b,f){for(var a in f)b[a]=f[a]})(a,{stamp:function(b,f,j){if(!b)return b;var j=j||"__~ks_stamped",n=b[j];if(!n&&!f)try{n=b[j]=a.guid(j)}catch(m){n=d}return n},keys:function(b){var f=[],j;for(j in b)f.push(j);k&&a.each(l,function(a){b.hasOwnProperty(a)&&f.push(a)});return f},mix:function(b,
@@ -76,12 +76,12 @@ var j={js:{},css:{}},h,k,i,b=g.comboPrefix,l=g.comboSep,C=g.comboMaxFileNum,A=g.
else if(E=E.slice(J.length).replace(/\?.*$/,""),h.push(E),h.length>C||F+h.join(l).length+B>A)h.pop(),K(),h=[],c--;h.length&&K()}return j}});f.Combo=e})(KISSY);
(function(a){function d(){var d=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,e=/(seed|kissy)(?:-min)?\.js/i,i,b,f=h.host.document.getElementsByTagName("script"),j=f[f.length-1],f=c.resolveByPage(j.src).toString(),j=(j=j.getAttribute("data-config"))?(new Function("return "+j))():{},f=f.replace(/%3f/gi,"?").replace(/%2c/gi,",");i=j.comboPrefix=j.comboPrefix||"??";b=j.comboSep=j.comboSep||",";var n,m=f.indexOf(i);-1==m?n=f.replace(d,"$1"):(n=f.substring(0,m),f=f.substring(m+i.length).split(b),a.each(f,function(b){if(b.match(e))return n+=
b.replace(d,"$1"),!1}));return a.mix({base:n},j)}a.mix(a,{add:function(a,c,d){this.getLoader().add(a,c,d)},use:function(a,c){this.getLoader().use(a,c)},getLoader:function(){var a=this.Env;return this.Config.combine&&!a.nodejs?a._comboLoader:a._loader},clearLoader:function(){var a=this.Env,c;(c=a._comboLoader)&&c.clear&&c.clear();(c=a._loader)&&c.clear&&c.clear();this.config({map:!1,mapCombo:!1,modules:!1,packages:!1})},require:function(a){return c.getModules(this,[a])[1]}});var e=a.Loader,h=a.Env,
-c=e.Utils,i=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114215458"},d()));h.mods={};h._loader=new e(a);i&&(h._comboLoader=new i(a));a.add("empty",a.noop)})(KISSY);
+c=e.Utils,i=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114230053"},d()));h.mods={};h._loader=new e(a);i&&(h._comboLoader=new i(a));a.add("empty",a.noop)})(KISSY);
(function(a,d){var e=a.Env.host,h=e.document,c=h&&h.documentElement,i=e.location,g=e.navigator,k=new a.Defer,l=k.promise,b=/^#?([\w-]+)$/,f=/\S/;a.mix(a,{isWindow:function(b){return null!=b&&b==b.window},parseXML:function(b){if(b.documentElement)return b;var a;try{e.DOMParser?a=(new DOMParser).parseFromString(b,"text/xml"):(a=new ActiveXObject("Microsoft.XMLDOM"),a.async="false",a.loadXML(b))}catch(f){a=d}!a||!a.documentElement||a.getElementsByTagName("parsererror");return a},globalEval:function(b){b&&
f.test(b)&&(e.execScript||function(b){e.eval.call(e,b)})(b)},ready:function(b){l.then(b);return this},available:function(f,c){if((f=(f+"").match(b)[1])&&a.isFunction(c))var d=1,g,e=a.later(function(){((g=h.getElementById(f))&&(c(g)||1)||500<++d)&&e.cancel()},40,!0)}});if(i&&-1!==(i.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){var b=c&&c.doScroll,f=b?"onreadystatechange":"DOMContentLoaded",d=function(){k.resolve(a)};if(!h||"complete"===h.readyState)return d();if(h.addEventListener){var g=
function(){h.removeEventListener(f,g,!1);d()};h.addEventListener(f,g,!1);e.addEventListener("load",d,!1)}else{var j=function(){"complete"===h.readyState&&(h.detachEvent(f,j),d())};h.attachEvent(f,j);e.attachEvent("onload",d);var i;try{i=null===e.frameElement}catch(l){i=!1}if(b&&i){var v=function(){try{b("left"),d()}catch(a){setTimeout(v,40)}};v()}}return 0})();if(g&&g.userAgent.match(/MSIE/))try{h.execCommand("BackgroundImageCache",!1,!0)}catch(j){}})(KISSY,void 0);
(function(a){a.config({packages:{gallery:{base:a.Config.baseUri.resolve("../").toString()}},modules:{core:{alias:"dom,event,ajax,anim,base,node,json".split(",")}}})})(KISSY);
-(function(a,d){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
+(function(a,d){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event/custom"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
"dom","node"]}});a({datalazyload:{requires:["dom","event","base"]}});a({dd:{alias:["dd/base","dd/droppable","dd/proxy","dd/scroll","dd/constrain"]}});a({"dd/base":{requires:["dom","node","event","ua","base"]}});a({"dd/constrain":{requires:["base","node","dd/base"]}});a({"dd/droppable":{requires:["dd/base","dom","node","base"]}});a({"dd/proxy":{requires:["node","base","dd/base"]}});a({"dd/scroll":{requires:["dd/base","base","node","dom"]}});a({dom:{requires:["ua"]}});a({editor:{requires:["htmlparser",
"component/base","core"]}});a({event:{alias:["event/base","event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",d.isMsPointerEnabled||d.isTouchSupported?"event/dom/touch":"empty"]}});a({"event/dom/base":{requires:["ua","dom","event/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({flash:{requires:["ua","dom","json"]}});a({grid:{requires:"component,overlay,template,button,node,toolbar".split(",")}});a({imagezoom:{requires:["node",
"overlay"]}});a({"input-selection":{requires:["dom"]}});a({json:{requires:[KISSY.Features.isNativeJSONSupported?"empty":"json/json2"]}});a({"json/json2":{requires:["ua"]}});a({kison:{requires:["base"]}});a({menu:{requires:["component/extension","ua","component/base","event","node"]}});a({menubutton:{requires:["node","menu","button","component/base"]}});a({mvc:{requires:["event","base","ajax","json","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:["node","component/base",
@@ -282,7 +282,7 @@ return{path:c,name:b}}function b(b,c,e){var f=e;if(c){var b=f=b===d?{}:a.clone(b
return a},addAttr:function(b,c,d){var e=i(this),c=a.clone(c);e[b]?a.mix(e[b],c,d):e[b]=c;return this},addAttrs:function(b,c){var d=this;a.each(b,function(a,b){d.addAttr(b,a)});c&&d.set(c);return d},hasAttr:function(a){return i(this).hasOwnProperty(a)},removeAttr:function(a){this.hasAttr(a)&&(delete i(this)[a],delete g(this)[a]);return this},set:function(b,c,e){if(a.isPlainObject(b)){var e=c,c=Object(b),g=[],i,j=[];for(b in c)(i=m(this,b,c[b],c))!==d&&j.push(i);if(j.length)return e&&e.error&&e.error(j),
!1;for(b in c)f(this,b,c[b],e,g);var k=[],l=[],n=[],o=[];a.each(g,function(a){l.push(a.prevVal);n.push(a.newVal);k.push(a.attrName);o.push(a.subAttrName)});k.length&&h(this,"","*",l,n,o,k);return this}return f(this,b,c,e)},setInternal:function(a,b,f){var h,j,k=c(i(this),a,!0).setter;j=m(this,a,b);if(j!==d)return f.error&&f.error(j),!1;if(k&&(k=e(this,k)))h=k.call(this,b,a);if(h===o)return!1;h!==d&&(b=h);g(this)[a]=b},get:function(a){var b,f=this.hasAttr(a),h=g(this),j;!f&&-1!==a.indexOf(".")&&(b=
a.split("."),a=b.shift());f=c(i(this),a).getter;j=a in h?h[a]:n(this,a);if(f&&(f=e(this,f)))j=f.call(this,j,a);!(a in h)&&j!==d&&(h[a]=j);b&&(j=k(j,b));return j},reset:function(a,b){if("string"==typeof a)return this.hasAttr(a)?this.set(a,n(this,a),b):this;var b=a,c=i(this),d={};for(a in c)d[a]=n(this,a);this.set(d,b);return this}};return j});
-KISSY.add("base",function(a,d,e){function h(a){var d=this.constructor;for(this.userConfig=a;d;){var e=d.ATTRS;if(e){var h=void 0;for(h in e)this.addAttr(h,e[h],!1)}d=d.superclass?d.superclass.constructor:null}if(a)for(var l in a)this.setInternal(l,a[l])}a.augment(h,e.Target,d);h.Attribute=d;return a.Base=h},{requires:["base/attribute","event"]});KISSY.add("anim",function(a,d,e){d.Easing=e;a.mix(a,{Anim:d,Easing:d.Easing});return d},{requires:["anim/base","anim/easing","anim/color","anim/background-position"]});
+KISSY.add("base",function(a,d,e){function h(a){var d=this.constructor;for(this.userConfig=a;d;){var e=d.ATTRS;if(e){var h=void 0;for(h in e)this.addAttr(h,e[h],!1)}d=d.superclass?d.superclass.constructor:null}if(a)for(var l in a)this.setInternal(l,a[l])}a.augment(h,e.Target,d);h.Attribute=d;return a.Base=h},{requires:["base/attribute","event/custom"]});KISSY.add("anim",function(a,d,e){d.Easing=e;a.mix(a,{Anim:d,Easing:d.Easing});return d},{requires:["anim/base","anim/easing","anim/color","anim/background-position"]});
KISSY.add("anim/background-position",function(a,d,e,h){function c(a){a=a.replace(/left|top/g,"0px").replace(/right|bottom/g,"100%").replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");a=a.match(/(-?[0-9\.]+)(px|%|em|pt)\s(-?[0-9\.]+)(px|%|em|pt)/);return[parseFloat(a[1]),a[2],parseFloat(a[3]),a[4]]}function i(){i.superclass.constructor.apply(this,arguments)}a.extend(i,h,{load:function(){i.superclass.load.apply(this,arguments);this.unit=["px","px"];if(this.from){var a=c(this.from);this.from=[a[0],a[2]]}else this.from=
[0,0];this.to?(a=c(this.to),this.to=[a[0],a[2]],this.unit=[a[1],a[3]]):this.to=[0,0]},interpolate:function(a,c,d){var b=this.unit,e=i.superclass.interpolate;return e(a[0],c[0],d)+b[0]+" "+e(a[1],c[1],d)+b[1]},cur:function(){return d.css(this.anim.config.el,"backgroundPosition")},update:function(){var a=this.prop,c=this.anim.config.el,e=this.interpolate(this.from,this.to,this.pos);d.css(c,a,e)}});return h.Factories.backgroundPosition=i},{requires:["dom","./base","./fx"]});
KISSY.add("anim/base",function(a,d,e,h,c,i,g,k){function l(c,e,f,g,h){if(c.el)return f=c.el,e=c.props,delete c.el,delete c.props,new l(f,e,c);if(c=d.get(c)){if(!(this instanceof l))return new l(c,e,f,g,h);e="string"==typeof e?a.unparam(""+e,";",":"):a.clone(e);a.each(e,function(b,c){var d=a.trim(p(c));d?c!=d&&(e[d]=e[c],delete e[c]):delete e[c]});f=a.isPlainObject(f)?a.clone(f):{duration:parseFloat(f)||void 0,easing:g,complete:h};f=a.merge(v,f);f.el=c;f.props=e;this.config=f;this._duration=1E3*f.duration;
View
8 build/kissy-nodejs-min.js
@@ -1,9 +1,9 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:00
*/
-var KISSY=function(a){var j=this,g,f=0;g={__BUILD_TIME:"20121114215458",Env:{host:j,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,h,m=this,l,n=g.Config,e=n.fns;g.isObject(b)?g.each(b,function(a,i){(l=e[i])?l.call(m,a):n[i]=a}):(d=e[b],c===a?h=d?d.call(m):n[b]:d?h=d.call(m,c):n[b]=c);return h},log:function(b,c,d){if(g.Config.debug&&(d&&(b=d+": "+b),j.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
+var KISSY=function(a){var j=this,g,f=0;g={__BUILD_TIME:"20121114230053",Env:{host:j,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,h,m=this,l,n=g.Config,e=n.fns;g.isObject(b)?g.each(b,function(a,i){(l=e[i])?l.call(m,a):n[i]=a}):(d=e[b],c===a?h=d?d.call(m):n[b]:d?h=d.call(m,c):n[b]=c);return h},log:function(b,c,d){if(g.Config.debug&&(d&&(b=d+": "+b),j.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
error:function(a){if(g.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+f++}};g.Env.nodejs&&(g.KISSY=g,module.exports=g);return g}();
(function(a,j){function g(a,c,e,k,i,q){if(!c||!a)return a;e===j&&(e=d);var p=0,o,r;c[b]=a;q.push(c);if(k&&(r=k.length))for(;p<r;p++)o=k[p],o in c&&f(o,a,c,e,k,i,q);else{for(o in c)o!=b&&f(o,a,c,e,k,i,q);if(h)for(;o=m[p++];)c.hasOwnProperty(o)&&f(o,a,c,e,k,i,q)}return a}function f(l,c,e,k,i,q,p){if(k||!(l in c)||q){var o=c[l],e=e[l];if(o!==e)if(q&&e&&(a.isArray(e)||a.isPlainObject(e)))e[b]?c[l]=e[b]:(q=o&&(a.isArray(o)||a.isPlainObject(o))?o:a.isArray(e)?[]:{},c[l]=q,g(q,e,k,i,d,p));else if(e!==j&&
(k||!(l in c)))c[l]=e}}var b="__MIX_CIRCULAR",c=this,d=!0,h=!{toString:1}.propertyIsEnumerable("toString"),m="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var e in b)a[e]=b[e]})(a,{stamp:function(l,b,e){if(!l)return l;var e=e||"__~ks_stamped",k=l[e];if(!k&&!b)try{k=l[e]=a.guid(e)}catch(i){k=j}return k},keys:function(l){var b=[],e;for(e in l)b.push(e);h&&a.each(m,function(a){l.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
@@ -67,11 +67,11 @@ a.Loader,d=c.STATUS,h=c.Utils,m=h.IE,l={},n=d.LOADING,e=d.LOADED,k=d.ERROR,i="__
b){var c,d=new j(function(){g(c,e,[]);b&&b.apply(e,h.getModules(e,a))}),e=this.runtime,a=h.getModNamesAsArray(a),a=h.normalizeModNamesWithAlias(e,a);c=h.unalias(e,a);f(this,c,d);d.check();return this},clear:function(){}})})(KISSY);
(function(a){function j(){var c=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,h=/(seed|kissy)(?:-min)?\.js/i,g,j,n=f.host.document.getElementsByTagName("script"),e=n[n.length-1],n=b.resolveByPage(e.src).toString(),e=(e=e.getAttribute("data-config"))?(new Function("return "+e))():{},n=n.replace(/%3f/gi,"?").replace(/%2c/gi,",");g=e.comboPrefix=e.comboPrefix||"??";j=e.comboSep=e.comboSep||",";var k,i=n.indexOf(g);-1==i?k=n.replace(c,"$1"):(k=n.substring(0,i),n=n.substring(i+g.length).split(j),a.each(n,function(a){if(a.match(h))return k+=
a.replace(c,"$1"),!1}));return a.mix({base:k},e)}a.mix(a,{add:function(a,b,c){this.getLoader().add(a,b,c)},use:function(a,b){this.getLoader().use(a,b)},getLoader:function(){var a=this.Env;return this.Config.combine&&!a.nodejs?a._comboLoader:a._loader},clearLoader:function(){var a=this.Env,b;(b=a._comboLoader)&&b.clear&&b.clear();(b=a._loader)&&b.clear&&b.clear();this.config({map:!1,mapCombo:!1,modules:!1,packages:!1})},require:function(a){return b.getModules(this,[a])[1]}});var g=a.Loader,f=a.Env,
-b=g.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114215458"},j()));f.mods={};f._loader=new g(a);c&&(f._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
+b=g.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114230053"},j()));f.mods={};f._loader=new g(a);c&&(f._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
(function(a,j){var g=a.Env.host,f=g.document,b=f&&f.documentElement,c=g.location,d=g.navigator,h=new a.Defer,m=h.promise,l=/^#?([\w-]+)$/,n=/\S/;a.mix(a,{isWindow:function(a){return null!=a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;var b;try{g.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(c){b=j}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&
n.test(a)&&(g.execScript||function(a){g.eval.call(g,a)})(a)},ready:function(a){m.then(a);return this},available:function(b,c){if((b=(b+"").match(l)[1])&&a.isFunction(c))var d=1,e,g=a.later(function(){((e=f.getElementById(b))&&(c(e)||1)||500<++d)&&g.cancel()},40,!0)}});if(c&&-1!==(c.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){var c=b&&b.doScroll,d=c?"onreadystatechange":"DOMContentLoaded",e=function(){h.resolve(a)};if(!f||"complete"===f.readyState)return e();if(f.addEventListener){var j=
function(){f.removeEventListener(d,j,!1);e()};f.addEventListener(d,j,!1);g.addEventListener("load",e,!1)}else{var l=function(){"complete"===f.readyState&&(f.detachEvent(d,l),e())};f.attachEvent(d,l);g.attachEvent("onload",e);var m;try{m=null===g.frameElement}catch(n){m=!1}if(c&&m){var u=function(){try{c("left"),e()}catch(a){setTimeout(u,40)}};u()}}return 0})();if(d&&d.userAgent.match(/MSIE/))try{f.execCommand("BackgroundImageCache",!1,!0)}catch(e){}})(KISSY,void 0);
-(function(a,j){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
+(function(a,j){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event/custom"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
"dom","node"]}});a({datalazyload:{requires:["dom","event","base"]}});a({dd:{alias:["dd/base","dd/droppable","dd/proxy","dd/scroll","dd/constrain"]}});a({"dd/base":{requires:["dom","node","event","ua","base"]}});a({"dd/constrain":{requires:["base","node","dd/base"]}});a({"dd/droppable":{requires:["dd/base","dom","node","base"]}});a({"dd/proxy":{requires:["node","base","dd/base"]}});a({"dd/scroll":{requires:["dd/base","base","node","dom"]}});a({dom:{requires:["ua"]}});a({editor:{requires:["htmlparser",
"component/base","core"]}});a({event:{alias:["event/base","event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",j.isMsPointerEnabled||j.isTouchSupported?"event/dom/touch":"empty"]}});a({"event/dom/base":{requires:["ua","dom","event/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({flash:{requires:["ua","dom","json"]}});a({grid:{requires:"component,overlay,template,button,node,toolbar".split(",")}});a({imagezoom:{requires:["node",
"overlay"]}});a({"input-selection":{requires:["dom"]}});a({json:{requires:[KISSY.Features.isNativeJSONSupported?"empty":"json/json2"]}});a({"json/json2":{requires:["ua"]}});a({kison:{requires:["base"]}});a({menu:{requires:["component/extension","ua","component/base","event","node"]}});a({menubutton:{requires:["node","menu","button","component/base"]}});a({mvc:{requires:["event","base","ajax","json","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:["node","component/base",
View
10 build/kissy-nodejs.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:00
*/
/**
* @ignore
@@ -39,11 +39,11 @@ var KISSY = (function (undefined) {
/**
* The build time of the library.
- * NOTICE: '20121114215458' will replace with current timestamp when compressing.
+ * NOTICE: '20121114230053' will replace with current timestamp when compressing.
* @private
* @type {String}
*/
- __BUILD_TIME: '20121114215458',
+ __BUILD_TIME: '20121114230053',
/**
* KISSY Environment.
* @private
@@ -4734,7 +4734,7 @@ var KISSY = (function (undefined) {
// file limit number for a single combo url
comboMaxFileNum: 40,
charset: 'utf-8',
- tag: '20121114215458'
+ tag: '20121114230053'
}, getBaseInfo()));
}
@@ -4990,7 +4990,7 @@ config({
});
/*Generated by KISSY Module Compiler*/
config({
-'base': {requires: ['event']}
+'base': {requires: ['event/custom']}
});
/*Generated by KISSY Module Compiler*/
config({
View
14 build/kissy.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:00
*/
/**
* @ignore
@@ -39,11 +39,11 @@ var KISSY = (function (undefined) {
/**
* The build time of the library.
- * NOTICE: '20121114215458' will replace with current timestamp when compressing.
+ * NOTICE: '20121114230053' will replace with current timestamp when compressing.
* @private
* @type {String}
*/
- __BUILD_TIME: '20121114215458',
+ __BUILD_TIME: '20121114230053',
/**
* KISSY Environment.
* @private
@@ -5430,7 +5430,7 @@ var KISSY = (function (undefined) {
// file limit number for a single combo url
comboMaxFileNum: 40,
charset: 'utf-8',
- tag: '20121114215458'
+ tag: '20121114230053'
}, getBaseInfo()));
}
@@ -5705,7 +5705,7 @@ config({
});
/*Generated by KISSY Module Compiler*/
config({
-'base': {requires: ['event']}
+'base': {requires: ['event/custom']}
});
/*Generated by KISSY Module Compiler*/
config({
@@ -17946,7 +17946,7 @@ KISSY.add('cookie', function (S) {
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:49
+build time: Nov 14 22:59
*/
/**
* @ignore
@@ -18573,7 +18573,7 @@ KISSY.add('base', function (S, Attribute, Event) {
return Base;
}, {
- requires: ['base/attribute', 'event']
+ requires: ['base/attribute', 'event/custom']
});
/*
Copyright 2012, KISSY UI Library v1.40dev
View
8 build/seed-min.js
@@ -1,9 +1,9 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:00
*/
-var KISSY=function(a){var l=this,h,f=0;h={__BUILD_TIME:"20121114215458",Env:{host:l,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,m,n=this,e,o=h.Config,g=o.fns;h.isObject(b)?h.each(b,function(a,i){(e=g[i])?e.call(n,a):o[i]=a}):(d=g[b],c===a?m=d?d.call(n):o[b]:d?m=d.call(n,c):o[b]=c);return m},log:function(b,c,d){if(h.Config.debug&&(d&&(b=d+": "+b),l.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
+var KISSY=function(a){var l=this,h,f=0;h={__BUILD_TIME:"20121114230053",Env:{host:l,nodejs:"function"==typeof require&&"object"==typeof exports},Config:{debug:"",fns:{}},version:"1.40dev",config:function(b,c){var d,m,n=this,e,o=h.Config,g=o.fns;h.isObject(b)?h.each(b,function(a,i){(e=g[i])?e.call(n,a):o[i]=a}):(d=g[b],c===a?m=d?d.call(n):o[b]:d?m=d.call(n,c):o[b]=c);return m},log:function(b,c,d){if(h.Config.debug&&(d&&(b=d+": "+b),l.console!==a&&console.log))console[c&&console[c]?c:"log"](b)},
error:function(a){if(h.Config.debug)throw a instanceof Error?a:Error(a);},guid:function(a){return(a||"")+f++}};h.Env.nodejs&&(h.KISSY=h,module.exports=h);return h}();
(function(a,l){function h(a,c,g,j,i,k){if(!c||!a)return a;g===l&&(g=d);var q=0,p,r;c[b]=a;k.push(c);if(j&&(r=j.length))for(;q<r;q++)p=j[q],p in c&&f(p,a,c,g,j,i,k);else{for(p in c)p!=b&&f(p,a,c,g,j,i,k);if(m)for(;p=n[q++];)c.hasOwnProperty(p)&&f(p,a,c,g,j,i,k)}return a}function f(e,c,g,j,i,k,q){if(j||!(e in c)||k){var p=c[e],g=g[e];if(p!==g)if(k&&g&&(a.isArray(g)||a.isPlainObject(g)))g[b]?c[e]=g[b]:(k=p&&(a.isArray(p)||a.isPlainObject(p))?p:a.isArray(g)?[]:{},c[e]=k,h(k,g,j,i,d,q));else if(g!==l&&
(j||!(e in c)))c[e]=g}}var b="__MIX_CIRCULAR",c=this,d=!0,m=!{toString:1}.propertyIsEnumerable("toString"),n="hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,b){for(var g in b)a[g]=b[g]})(a,{stamp:function(e,b,g){if(!e)return e;var g=g||"__~ks_stamped",j=e[g];if(!j&&!b)try{j=e[g]=a.guid(g)}catch(i){j=l}return j},keys:function(e){var b=[],g;for(g in e)b.push(g);m&&a.each(n,function(a){e.hasOwnProperty(a)&&b.push(a)});return b},mix:function(a,
@@ -76,12 +76,12 @@ var h={js:{},css:{}},m,l,n,b=f.comboPrefix,o=f.comboSep,z=f.comboMaxFileNum,s=f.
else if(w=w.slice(B.length).replace(/\?.*$/,""),m.push(w),m.length>z||E+m.join(o).length+G>s)m.pop(),F(),m=[],d--;m.length&&F()}return h}});o.Combo=h})(KISSY);
(function(a){function l(){var c=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,h=/(seed|kissy)(?:-min)?\.js/i,l,e,o=f.host.document.getElementsByTagName("script"),g=o[o.length-1],o=b.resolveByPage(g.src).toString(),g=(g=g.getAttribute("data-config"))?(new Function("return "+g))():{},o=o.replace(/%3f/gi,"?").replace(/%2c/gi,",");l=g.comboPrefix=g.comboPrefix||"??";e=g.comboSep=g.comboSep||",";var j,i=o.indexOf(l);-1==i?j=o.replace(c,"$1"):(j=o.substring(0,i),o=o.substring(i+l.length).split(e),a.each(o,function(a){if(a.match(h))return j+=
a.replace(c,"$1"),!1}));return a.mix({base:j},g)}a.mix(a,{add:function(a,b,c){this.getLoader().add(a,b,c)},use:function(a,b){this.getLoader().use(a,b)},getLoader:function(){var a=this.Env;return this.Config.combine&&!a.nodejs?a._comboLoader:a._loader},clearLoader:function(){var a=this.Env,b;(b=a._comboLoader)&&b.clear&&b.clear();(b=a._loader)&&b.clear&&b.clear();this.config({map:!1,mapCombo:!1,modules:!1,packages:!1})},require:function(a){return b.getModules(this,[a])[1]}});var h=a.Loader,f=a.Env,
-b=h.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114215458"},l()));f.mods={};f._loader=new h(a);c&&(f._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
+b=h.Utils,c=a.Loader.Combo;a.Env.nodejs?a.config("base",__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20121114230053"},l()));f.mods={};f._loader=new h(a);c&&(f._comboLoader=new c(a));a.add("empty",a.noop)})(KISSY);
(function(a,l){var h=a.Env.host,f=h.document,b=f&&f.documentElement,c=h.location,d=h.navigator,m=new a.Defer,n=m.promise,e=/^#?([\w-]+)$/,o=/\S/;a.mix(a,{isWindow:function(a){return null!=a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;var b;try{h.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(c){b=l}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&
o.test(a)&&(h.execScript||function(a){h.eval.call(h,a)})(a)},ready:function(a){n.then(a);return this},available:function(b,c){if((b=(b+"").match(e)[1])&&a.isFunction(c))var d=1,g,h=a.later(function(){((g=f.getElementById(b))&&(c(g)||1)||500<++d)&&h.cancel()},40,!0)}});if(c&&-1!==(c.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){var c=b&&b.doScroll,d=c?"onreadystatechange":"DOMContentLoaded",e=function(){m.resolve(a)};if(!f||"complete"===f.readyState)return e();if(f.addEventListener){var g=
function(){f.removeEventListener(d,g,!1);e()};f.addEventListener(d,g,!1);h.addEventListener("load",e,!1)}else{var l=function(){"complete"===f.readyState&&(f.detachEvent(d,l),e())};f.attachEvent(d,l);h.attachEvent("onload",e);var n;try{n=null===h.frameElement}catch(o){n=!1}if(c&&n){var C=function(){try{c("left"),e()}catch(a){setTimeout(C,40)}};C()}}return 0})();if(d&&d.userAgent.match(/MSIE/))try{f.execCommand("BackgroundImageCache",!1,!0)}catch(g){}})(KISSY,void 0);
(function(a){a.config({packages:{gallery:{base:a.Config.baseUri.resolve("../").toString()}},modules:{core:{alias:"dom,event,ajax,anim,base,node,json".split(",")}}})})(KISSY);
-(function(a,l){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
+(function(a,l){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event","ua"]}});a({base:{requires:["event/custom"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event","ua"]}});a({color:{requires:["base"]}});a({combobox:{requires:["component/base","node","input-selection","menu","ajax"]}});a({component:{requires:["node","event","rich-base","dom","ua"]}});a({"component/base":{requires:["rich-base","node","ua","event"]}});a({"component/extension":{requires:["ua",
"dom","node"]}});a({datalazyload:{requires:["dom","event","base"]}});a({dd:{alias:["dd/base","dd/droppable","dd/proxy","dd/scroll","dd/constrain"]}});a({"dd/base":{requires:["dom","node","event","ua","base"]}});a({"dd/constrain":{requires:["base","node","dd/base"]}});a({"dd/droppable":{requires:["dd/base","dom","node","base"]}});a({"dd/proxy":{requires:["node","base","dd/base"]}});a({"dd/scroll":{requires:["dd/base","base","node","dom"]}});a({dom:{requires:["ua"]}});a({editor:{requires:["htmlparser",
"component/base","core"]}});a({event:{alias:["event/base","event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",l.isMsPointerEnabled||l.isTouchSupported?"event/dom/touch":"empty"]}});a({"event/dom/base":{requires:["ua","dom","event/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({flash:{requires:["ua","dom","json"]}});a({grid:{requires:"component,overlay,template,button,node,toolbar".split(",")}});a({imagezoom:{requires:["node",
"overlay"]}});a({"input-selection":{requires:["dom"]}});a({json:{requires:[KISSY.Features.isNativeJSONSupported?"empty":"json/json2"]}});a({"json/json2":{requires:["ua"]}});a({kison:{requires:["base"]}});a({menu:{requires:["component/extension","ua","component/base","event","node"]}});a({menubutton:{requires:["node","menu","button","component/base"]}});a({mvc:{requires:["event","base","ajax","json","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:["node","component/base",
View
10 build/seed.js
@@ -1,7 +1,7 @@
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
-build time: Nov 14 21:55
+build time: Nov 14 23:00
*/
/**
* @ignore
@@ -39,11 +39,11 @@ var KISSY = (function (undefined) {
/**
* The build time of the library.
- * NOTICE: '20121114215458' will replace with current timestamp when compressing.
+ * NOTICE: '20121114230053' will replace with current timestamp when compressing.
* @private
* @type {String}
*/
- __BUILD_TIME: '20121114215458',
+ __BUILD_TIME: '20121114230053',
/**
* KISSY Environment.
* @private
@@ -5430,7 +5430,7 @@ var KISSY = (function (undefined) {
// file limit number for a single combo url
comboMaxFileNum: 40,
charset: 'utf-8',
- tag: '20121114215458'
+ tag: '20121114230053'
}, getBaseInfo()));
}
@@ -5705,7 +5705,7 @@ config({
});
/*Generated by KISSY Module Compiler*/
config({
-'base': {requires: ['event']}
+'base': {requires: ['event/custom']}
});
/*Generated by KISSY Module Compiler*/
config({
View
10 reports/TEST-base.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="base" errors="0" tests="5" failures="0" time="0.019" timestamp="2012-11-13T16:08:49">
- <testcase classname="base" name="拥有 S.EventTarget 上的方法" time="0.002"></testcase>
- <testcase classname="base" name="拥有 S.Attribute 上的方法" time="0.002"></testcase>
+<testsuite name="base" errors="0" tests="5" failures="0" time="0.006" timestamp="2012-11-14T23:02:10">
+ <testcase classname="base" name="拥有 S.EventTarget 上的方法" time="0.004"></testcase>
+ <testcase classname="base" name="拥有 S.Attribute 上的方法" time="0.001"></testcase>
<testcase classname="base" name="能解析 ATTRS 和 config" time="0"></testcase>
- <testcase classname="base" name="能正确触发 S.Attribute 的事件" time="0.004"></testcase>
- <testcase classname="base" name="transfer default value to value" time="0.001"></testcase>
+ <testcase classname="base" name="能正确触发 S.Attribute 的事件" time="0.001"></testcase>
+ <testcase classname="base" name="transfer default value to value" time="0"></testcase>
</testsuite>
</testsuites>
View
6 reports/TEST-base_complex.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="base_complex" errors="0" tests="8" failures="0" time="0.005" timestamp="2012-11-13T16:08:49">
- <testcase classname="base_complex" name="can merge property value object from parent class" time="0"></testcase>
+<testsuite name="base_complex" errors="0" tests="8" failures="0" time="0.007" timestamp="2012-11-14T23:02:10">
+ <testcase classname="base_complex" name="can merge property value object from parent class" time="0.001"></testcase>
<testcase classname="base_complex" name="support validator" time="0"></testcase>
<testcase classname="base_complex" name="support validators" time="0.001"></testcase>
<testcase classname="base_complex" name="support sub attribute name" time="0.001"></testcase>
<testcase classname="base_complex" name="set sub attr even if not exist attr" time="0"></testcase>
- <testcase classname="base_complex" name="set sub attr differently if declared previously" time="0"></testcase>
+ <testcase classname="base_complex" name="set sub attr differently if declared previously" time="0.001"></testcase>
<testcase classname="base_complex" name="validator works for subAttrs" time="0.001"></testcase>
<testcase classname="base_complex" name="should fire *Change once for set({})" time="0.002"></testcase>
</testsuite>
View
16 reports/TEST-htmlparser_for_editor.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="htmlparser_for_editor" errors="0" tests="7" failures="0" time="0.024" timestamp="2012-11-13T16:08:49">
- <testcase classname="htmlparser_for_editor" name="can filter elementNames" time="0.001"></testcase>
- <testcase classname="htmlparser_for_editor" name="can filter imagedata in vml@ie" time="0.012"></testcase>
- <testcase classname="htmlparser_for_editor" name="can filter attribute" time="0.005"></testcase>
- <testcase classname="htmlparser_for_editor" name="can modify html structure on fly" time="0.001"></testcase>
- <testcase classname="htmlparser_for_editor" name="filter children works while modify html" time="0"></testcase>
- <testcase classname="htmlparser_for_editor" name="filter will run only once" time="0.003"></testcase>
- <testcase classname="htmlparser_for_editor" name="can filter attributeNames" time="0.002"></testcase>
+<testsuite name="htmlparser_for_editor" errors="0" tests="7" failures="1" time="0.022" timestamp="2012-11-14T23:01:05">
+ <testcase classname="htmlparser_for_editor" name="can filter elementNames" time="0.002"></testcase>
+ <testcase classname="htmlparser_for_editor" name="can filter imagedata in vml@ie" time="0.014"></testcase>
+ <testcase classname="htmlparser_for_editor" name="can filter attribute" time="0.001"></testcase>
+ <testcase classname="htmlparser_for_editor" name="can modify html structure on fly" time="0.003"><failure>1: TypeError: Cannot read property &apos;ie&apos; of undefined</failure></testcase>
+ <testcase classname="htmlparser_for_editor" name="filter children works while modify html" time="0.001"></testcase>
+ <testcase classname="htmlparser_for_editor" name="filter will run only once" time="0.001"></testcase>
+ <testcase classname="htmlparser_for_editor" name="can filter attributeNames" time="0"></testcase>
</testsuite>
</testsuites>
View
6 reports/TEST-htmlparser_lexer.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="htmlparser_lexer" errors="0" tests="4" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
- <testcase classname="htmlparser_lexer" name="works" time="0"></testcase>
- <testcase classname="htmlparser_lexer" name="works for isSelfClosed" time="0.001"></testcase>
+<testsuite name="htmlparser_lexer" errors="0" tests="4" failures="0" time="0.003" timestamp="2012-11-14T23:02:10">
+ <testcase classname="htmlparser_lexer" name="works" time="0.003"></testcase>
+ <testcase classname="htmlparser_lexer" name="works for isSelfClosed" time="0"></testcase>
<testcase classname="htmlparser_lexer" name="works for &lt;br/&gt;" time="0"></testcase>
<testcase classname="htmlparser_lexer" name="works when encounter invalid attribute value" time="0"></testcase>
</testsuite>
View
16 reports/TEST-htmlparser_parser.xml
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="htmlparser_parser" errors="0" tests="10" failures="0" time="0.006" timestamp="2012-11-13T16:08:49">
- <testcase classname="htmlparser_parser" name="works for valid html" time="0"></testcase>
+<testsuite name="htmlparser_parser" errors="0" tests="10" failures="0" time="0.014" timestamp="2012-11-14T23:02:10">
+ <testcase classname="htmlparser_parser" name="works for valid html" time="0.002"></testcase>
<testcase classname="htmlparser_parser" name="works for none-valid html" time="0.001"></testcase>
- <testcase classname="htmlparser_parser" name="works for valid script" time="0.001"></testcase>
+ <testcase classname="htmlparser_parser" name="works for valid script" time="0"></testcase>
<testcase classname="htmlparser_parser" name="works for none-valid script" time="0"></testcase>
- <testcase classname="htmlparser_parser" name="works for non-valid nest tag soup" time="0"></testcase>
+ <testcase classname="htmlparser_parser" name="works for non-valid nest tag soup" time="0.001"></testcase>
<testcase classname="htmlparser_parser" name="adjust non-valid nest tag soup by dtd" time="0.001"></testcase>
<testcase classname="htmlparser_parser" name="adjust non-valid nest tag soup by dtd and auto paragraph" time="0"></testcase>
- <testcase classname="htmlparser_parser" name="filterChildren should works" time="0.001"></testcase>
+ <testcase classname="htmlparser_parser" name="filterChildren should works" time="0.002"></testcase>
<testcase classname="htmlparser_parser" name="can replace text" time="0"></testcase>
- <testcase classname="htmlparser_parser" name="should parse nested li" time="0.002"></testcase>
+ <testcase classname="htmlparser_parser" name="should parse nested li" time="0.001"></testcase>
</testsuite>
-<testsuite name="htmlparser_parser.writer" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
- <testcase classname="htmlparser_parser.writer" name="works for empty attribute" time="0"></testcase>
+<testsuite name="htmlparser_parser.writer" errors="0" tests="1" failures="0" time="0.005" timestamp="2012-11-14T23:02:10">
+ <testcase classname="htmlparser_parser.writer" name="works for empty attribute" time="0.005"></testcase>
</testsuite>
</testsuites>
View
6 reports/TEST-json.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="json" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="json" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-14T23:02:10">
</testsuite>
-<testsuite name="json.stringify" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="json.stringify" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-14T23:02:10">
<testcase classname="json.stringify" name="should convert an arbitrary value to a JSON string representation" time="0"></testcase>
</testsuite>
-<testsuite name="json.parse" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
+<testsuite name="json.parse" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
<testcase classname="json.parse" name="should parse a JSON string to the native JavaScript representation" time="0.001"></testcase>
</testsuite>
</testsuites>
View
22 reports/TEST-kison.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="kison" errors="0" tests="7" failures="0" time="0.186" timestamp="2012-11-13T16:08:48">
+<testsuite name="kison" errors="0" tests="7" failures="0" time="0.243" timestamp="2012-11-14T23:02:10">
<testcase classname="kison" name="escape correctly" time="0.001"></testcase>
- <testcase classname="kison" name="generate goto map ok" time="0.038"></testcase>
- <testcase classname="kison" name="generate table ok" time="0.021"></testcase>
- <testcase classname="kison" name="parse ok" time="0.02"></testcase>
- <testcase classname="kison" name="can not parse invalid input" time="0.029"></testcase>
- <testcase classname="kison" name="can not parse invalid input in compress mode" time="0.03"></testcase>
- <testcase classname="kison" name="parse ok with action" time="0.022"></testcase>
+ <testcase classname="kison" name="generate goto map ok" time="0.061"></testcase>
+ <testcase classname="kison" name="generate table ok" time="0.025"></testcase>
+ <testcase classname="kison" name="parse ok" time="0.048"></testcase>
+ <testcase classname="kison" name="can not parse invalid input" time="0.016"></testcase>
+ <testcase classname="kison" name="can not parse invalid input in compress mode" time="0.037"></testcase>
+ <testcase classname="kison" name="parse ok with action" time="0.03"></testcase>
</testsuite>
-<testsuite name="kison.state" errors="0" tests="3" failures="0" time="0.025" timestamp="2012-11-13T16:08:49">
- <testcase classname="kison.state" name="can parse" time="0.006"></testcase>
- <testcase classname="kison.state" name="can not parse" time="0.007"></testcase>
- <testcase classname="kison.state" name="can not parse when compress" time="0.012"></testcase>
+<testsuite name="kison.state" errors="0" tests="3" failures="0" time="0.025" timestamp="2012-11-14T23:02:10">
+ <testcase classname="kison.state" name="can parse" time="0.008"></testcase>
+ <testcase classname="kison.state" name="can not parse" time="0.01"></testcase>
+ <testcase classname="kison.state" name="can not parse when compress" time="0.006"></testcase>
</testsuite>
</testsuites>
View
34 reports/TEST-template.xml
@@ -1,43 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="template" errors="0" tests="4" failures="0" time="0.008" timestamp="2012-11-13T16:08:49">
+<testsuite name="template" errors="0" tests="4" failures="0" time="0.01" timestamp="2012-11-14T23:02:10">
<testcase classname="template" name="slash and quote should be escaped" time="0"></testcase>
<testcase classname="template" name="should also support @" time="0.001"></testcase>
- <testcase classname="template" name="should ignore undefined variable" time="0"></testcase>
- <testcase classname="template" name="should support undefined variable in object" time="0.001"></testcase>
+ <testcase classname="template" name="should ignore undefined variable" time="0.001"></testcase>
+ <testcase classname="template" name="should support undefined variable in object" time="0"></testcase>
</testsuite>
-<testsuite name="template.variable" errors="0" tests="2" failures="0" time="0" timestamp="2012-11-13T16:08:49">
- <testcase classname="template.variable" name="should render a normal string" time="0"></testcase>
+<testsuite name="template.variable" errors="0" tests="2" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
+ <testcase classname="template.variable" name="should render a normal string" time="0.001"></testcase>
<testcase classname="template.variable" name="should render a normal variable" time="0"></testcase>
</testsuite>
-<testsuite name="template.statement" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.statement" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-14T23:02:10">
</testsuite>
-<testsuite name="template.statement.if" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.statement.if" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
<testcase classname="template.statement.if" name="support if statement" time="0.001"></testcase>
</testsuite>
-<testsuite name="template.statement.else" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
- <testcase classname="template.statement.else" name="support else statement" time="0.001"></testcase>
+<testsuite name="template.statement.else" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-14T23:02:10">
+ <testcase classname="template.statement.else" name="support else statement" time="0"></testcase>
</testsuite>
-<testsuite name="template.statement.elseif" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
- <testcase classname="template.statement.elseif" name="support elseif statement" time="0"></testcase>
+<testsuite name="template.statement.elseif" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
+ <testcase classname="template.statement.elseif" name="support elseif statement" time="0.001"></testcase>
</testsuite>
-<testsuite name="template.statement.each" errors="0" tests="2" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.statement.each" errors="0" tests="2" failures="0" time="0.002" timestamp="2012-11-14T23:02:10">
<testcase classname="template.statement.each" name="support each function" time="0.001"></testcase>
<testcase classname="template.statement.each" name="support custom value, index" time="0"></testcase>
</testsuite>
-<testsuite name="template.cache" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.cache" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-14T23:02:10">
<testcase classname="template.cache" name="have template cache" time="0"></testcase>
</testsuite>
-<testsuite name="template.error" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.error" errors="0" tests="1" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
<testcase classname="template.error" name="can handle syntax template error" time="0.001"></testcase>
</testsuite>
-<testsuite name="template.log" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.log" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-14T23:02:10">
<testcase classname="template.log" name="can log all compiled template code" time="0"></testcase>
</testsuite>
-<testsuite name="template.comments" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.comments" errors="0" tests="1" failures="0" time="0" timestamp="2012-11-14T23:02:10">
<testcase classname="template.comments" name="supports comments" time="0"></testcase>
</testsuite>
-<testsuite name="template.nested" errors="0" tests="2" failures="0" time="0.001" timestamp="2012-11-13T16:08:49">
+<testsuite name="template.nested" errors="0" tests="2" failures="0" time="0.002" timestamp="2012-11-14T23:02:10">
<testcase classname="template.nested" name="supports nested" time="0.001"></testcase>
<testcase classname="template.nested" name="supports nested with different each variable name" time="0"></testcase>
</testsuite>
View
56 reports/TEST-xtemplate.xml
@@ -1,56 +1,56 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
-<testsuite name="xtemplate" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate" errors="0" tests="0" failures="0" time="0" timestamp="2012-11-14T23:02:10">
</testsuite>
-<testsuite name="xtemplate.feature" errors="0" tests="6" failures="0" time="0.054" timestamp="2012-11-13T16:08:48">
- <testcase classname="xtemplate.feature" name="support {{variable}}" time="0.004"></testcase>
- <testcase classname="xtemplate.feature" name="support function as template" time="0.001"></testcase>
+<testsuite name="xtemplate.feature" errors="0" tests="6" failures="0" time="0.037" timestamp="2012-11-14T23:02:10">
+ <testcase classname="xtemplate.feature" name="support {{variable}}" time="0.003"></testcase>
+ <testcase classname="xtemplate.feature" name="support function as template" time="0"></testcase>
<testcase classname="xtemplate.feature" name="support cache" time="0"></testcase>
- <testcase classname="xtemplate.feature" name="support {{#if}}" time="0.005"></testcase>
+ <testcase classname="xtemplate.feature" name="support {{#if}}" time="0.002"></testcase>
<testcase classname="xtemplate.feature" name="support comment" time="0.001"></testcase>
<testcase classname="xtemplate.feature" name="support set" time="0.001"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.each" errors="0" tests="3" failures="0" time="0.01" timestamp="2012-11-13T16:08:48">
- <testcase classname="xtemplate.feature.each" name="support object" time="0.007"></testcase>
+<testsuite name="xtemplate.feature.each" errors="0" tests="3" failures="0" time="0.007" timestamp="2012-11-14T23:02:10">
+ <testcase classname="xtemplate.feature.each" name="support object" time="0.004"></testcase>
<testcase classname="xtemplate.feature.each" name="support simple array" time="0.002"></testcase>
- <testcase classname="xtemplate.feature.each" name="support parent scope" time="0.001"></testcase>
+ <testcase classname="xtemplate.feature.each" name="support parent scope" time="0"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.with" errors="0" tests="2" failures="0" time="0.004" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate.feature.with" errors="0" tests="2" failures="0" time="0.004" timestamp="2012-11-14T23:02:10">
<testcase classname="xtemplate.feature.with" name="support object" time="0.001"></testcase>
<testcase classname="xtemplate.feature.with" name="support parent scope" time="0.003"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.escape" errors="0" tests="4" failures="0" time="0.001" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate.feature.escape" errors="0" tests="4" failures="0" time="0.001" timestamp="2012-11-14T23:02:10">
<testcase classname="xtemplate.feature.escape" name="support escape {{" time="0"></testcase>
- <testcase classname="xtemplate.feature.escape" name="support escape {{ more" time="0"></testcase>
- <testcase classname="xtemplate.feature.escape" name="support escapeHTML" time="0.001"></testcase>
+ <testcase classname="xtemplate.feature.escape" name="support escape {{ more" time="0.001"></testcase>
+ <testcase classname="xtemplate.feature.escape" name="support escapeHTML" time="0"></testcase>
<testcase classname="xtemplate.feature.escape" name="support escape &quot;" time="0"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.command" errors="0" tests="4" failures="0" time="0.003" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate.feature.command" errors="0" tests="4" failures="0" time="0.003" timestamp="2012-11-14T23:02:10">
<testcase classname="xtemplate.feature.command" name="support global command for variable" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.command" name="support global command for block" time="0"></testcase>
+ <testcase classname="xtemplate.feature.command" name="support global command for block" time="0.001"></testcase>
<testcase classname="xtemplate.feature.command" name="support local command for variable" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.command" name="support local command for block" time="0.001"></testcase>
+ <testcase classname="xtemplate.feature.command" name="support local command for block" time="0"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.sub template" errors="0" tests="4" failures="0" time="0.002" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate.feature.sub template" errors="0" tests="4" failures="0" time="0.004" timestamp="2012-11-14T23:02:10">
<testcase classname="xtemplate.feature.sub template" name="support global sub template as string" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.sub template" name="support global sub template as function" time="0"></testcase>
+ <testcase classname="xtemplate.feature.sub template" name="support global sub template as function" time="0.002"></testcase>
<testcase classname="xtemplate.feature.sub template" name="support local sub template as string" time="0.001"></testcase>
<testcase classname="xtemplate.feature.sub template" name="support local sub template as function" time="0"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.expression" errors="0" tests="5" failures="0" time="0.019" timestamp="2012-11-13T16:08:48">
+<testsuite name="xtemplate.feature.expression" errors="0" tests="5" failures="0" time="0.009" timestamp="2012-11-14T23:02:10">
<testcase classname="xtemplate.feature.expression" name="support expression for variable" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.expression" name="support expression for variable in string" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.expression" name="support relational expression" time="0.014"></testcase>
- <testcase classname="xtemplate.feature.expression" name="support relational expression in each" time="0.001"></testcase>
- <testcase classname="xtemplate.feature.expression" name="support relational expression in with" time="0.002"></testcase>
+ <testcase classname="xtemplate.feature.expression" name="support expression for variable in string" time="0"></testcase>
+ <testcase classname="xtemplate.feature.expression" name="support relational expression" time="0.005"></testcase>
+ <testcase classname="xtemplate.feature.expression" name="support relational expression in each" time="0.002"></testcase>
+ <testcase classname="xtemplate.feature.expression" name="support relational expression in with" time="0.001"></testcase>
</testsuite>
-<testsuite name="xtemplate.feature.support mustache" errors="0" tests="2" failures="0" time="0.003" timestamp="2012-11-13T16:08:48">
- <testcase classname="xtemplate.feature.support mustache" name="support object" time="0.002"></testcase>
+<testsuite name="xtemplate.feature.support mustache" errors="0" tests="2" failures="0" time="0.002" timestamp="2012-11-14T23:02:10">
+ <testcase classname="xtemplate.feature.support mustache" name="support object" time="0.001"></testcase>
<testcase classname="xtemplate.feature.support mustache" name="support array" time="0.001"></testcase>
</testsuite>
-<testsuite name="xtemplate.error detection" errors="0" tests="3" failures="0" time="0.002" timestamp="2012-11-13T16:08:48">
- <testcase classname="xtemplate.error detection" name="detect un-closed block tag" time="0.001"></testcase>
- <testcase classname="xtemplate.error detection" name="warn about missing property" time="0"></testcase>
- <testcase classname="xtemplate.error detection" name="detect unmatched" time="0.001"></testcase>
+<testsuite name="xtemplate.error detection" errors="0" tests="3" failures="0" time="0.002" timestamp="2012-11-14T23:02:10">
+ <testcase classname="xtemplate.error detection" name="detect un-closed block tag" time="0"></testcase>
+ <testcase classname="xtemplate.error detection" name="warn about missing property" time="0.001"></testcase>
+ <testcase classname="xtemplate.error detection" name="detect unmatched" time="0"></testcase>
</testsuite>
</testsuites>
View
2  src/base/meta/modules.js
@@ -1,4 +1,4 @@
/*Generated by KISSY Module Compiler*/
config({
-'base': {requires: ['event']}
+'base': {requires: ['event/custom']}
});
View
2  src/base/src/base.js
@@ -87,5 +87,5 @@ KISSY.add('base', function (S, Attribute, Event) {
return Base;
}, {
- requires: ['base/attribute', 'event']
+ requires: ['base/attribute', 'event/custom']
});
View
1  src/base/tests/runner/test.html
@@ -21,7 +21,6 @@
<script src="../../src/attribute.js"></script>
<script src="../../src/base.js"></script>
-<script src="../../src/base.js"></script>
<script src="../specs/base-spec.js"></script>
<script src="../specs/complex-spec.js"></script>
</head>
View
4 src/htmlparser/tests/specs/editor-spec.js
@@ -1,6 +1,4 @@
-KISSY.use("htmlparser", function (S, HtmlParser) {
- var UA = S.UA;
-
+KISSY.use("htmlparser,ua", function (S, HtmlParser,UA) {
function getTextSync(path, callback) {
if (S.Env.nodejs) {
View
4 src/jasmine-node.js
@@ -38,7 +38,8 @@ var mods = [
'json',
'base',
'htmlparser',
- 'template'
+ 'template',
+ 'event/custom'
];
// ------------ configs end
@@ -59,6 +60,7 @@ for (var key in jasmine) {
}
S.each(mods, function (m) {
+ m = m.replace(/\//g, '/sub-modules/');
specFolders.push(m + '/tests/specs/');
});
View
2  src/seed/src/modules.js
@@ -10,7 +10,7 @@ config({
});
/*Generated by KISSY Module Compiler*/
config({
-'base': {requires: ['event']}
+'base': {requires: ['event/custom']}
});
/*Generated by KISSY Module Compiler*/
config({
View
2  src/template/tests/specs/template-spec.js
@@ -1,4 +1,4 @@
-KISSY.use("template,dom", function (S, T, DOM) {
+KISSY.use("template", function (S, T) {
describe('template', function () {
View
2  tools/jasmine/jasmine.js
@@ -2075,7 +2075,7 @@ jasmine.Runner.prototype.execute = function (onComplete) {
}
self.queue.start(function () {
self.finishCallback();
- onComplete.call(self);
+ onComplete && onComplete.call(self);
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.