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

testing remove zero-wrapper

parent 198c70f9
...@@ -240,11 +240,18 @@ NS.apply = function(a,b) { ...@@ -240,11 +240,18 @@ NS.apply = function(a,b) {
} }
if( type !== 'object' ){ if( type !== 'object' ){
if( type === 'function' ){ if( type === 'function' ){
var tmp = D.div( {cls: 'zero-wrapper'} ); //var tmp = D.Text();//( {cls: 'zero-wrapper'} );
el.appendChild( tmp ); //el.appendChild( tmp );
var list = [];
subEl( function(){ 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 ){ }else if( subEl !== void 0 && subEl !== false && subEl !== null ){
el.appendChild( D.Text( subEl ) ); el.appendChild( D.Text( subEl ) );
......
...@@ -7,6 +7,11 @@ const {AND, OR, IF} = Store; ...@@ -7,6 +7,11 @@ const {AND, OR, IF} = Store;
export default D.declare('view.page.LoginCode', ({loginStore}) => { export default D.declare('view.page.LoginCode', ({loginStore}) => {
const checkCode = function () { const checkCode = function () {
loginStore.set('codeChecking', true); loginStore.set('codeChecking', true);
try{
}catch(e){
}
setTimeout(function() { setTimeout(function() {
loginStore.set('codeChecking', false); loginStore.set('codeChecking', false);
loginStore.set('codeError', true); 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