Commit 92a580d0 by Иван Кубота

testing remove zero-wrapper

parent 198c70f9
......@@ -240,11 +240,18 @@ NS.apply = function(a,b) {
}
if( type !== 'object' ){
if( type === 'function' ){
var tmp = D.div( {cls: 'zero-wrapper'} );
el.appendChild( tmp );
//var tmp = D.Text();//( {cls: 'zero-wrapper'} );
//el.appendChild( tmp );
var list = [];
subEl( function(){
D.removeChildren( tmp );
D.appendChild( tmp, [].slice.call( arguments ) )
for( var i = 0, _i = list.length; i < _i; i++ ){
el.removeChild( list[ i ] );
}
var fragment = document.createDocumentFragment();
D.appendChild( fragment, [].slice.call( arguments ) );
list = [].slice.call(fragment.childNodes);
el.appendChild(fragment);
} )
}else if( subEl !== void 0 && subEl !== false && subEl !== null ){
el.appendChild( D.Text( subEl ) );
......
......@@ -7,6 +7,11 @@ const {AND, OR, IF} = Store;
export default D.declare('view.page.LoginCode', ({loginStore}) => {
const checkCode = function () {
loginStore.set('codeChecking', true);
try{
}catch(e){
}
setTimeout(function() {
loginStore.set('codeChecking', false);
loginStore.set('codeError', true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment