2011-11-10 33 views

回答

0

與模型的工作完成後,摧毀它。 示例

keys: { 
      esc: function() { 
        var r=confirm("Are you sure, you want to do this?"); 
          if (r==true){ 
           this.close(); 
           this.destroy();//this you need to do 
           $('overlay').setStyle('display', 'none'); 
          }else{} 
         }