define(['jquery'],function($){
    function Window() {
        this.cfg = {
            title:"Alert",
            msg:"",
            handle: null,
            width:500,
            height:300
        };
    }

    Window.prototype = {
        alert: function(cfg){
            var CFG = $.extend(this.cfg,cfg);
            var $alertBox = $('<div class="window-alert"></div>');
            $alertBox.appendTo('body');

            var $alertHd = $('<div class="alert-hd"></div>'),
                $alertHdTitle = $('<div class="title"></div>'),
                $alertHdClose = $('<a  href="#" class="close">X</a>');

            $alertHdTitle.html(CFG.title);

            $alertHdTitle.appendTo($alertHd);
            $alertHdClose.appendTo($alertHd);
            $alertHd.appendTo($alertBox);


            var $confirmBtn = $('<input type="button" value="OK" class="confirm-btn">');
            $confirmBtn.appendTo($alertBox);

            // if(handle) {
            //     $confirmBtn.on('click',function(event) {
            //         event.preventDefault();
            //         /* Act on the event */
            //         handle();
            //         $alertBox.remove();
            //     });
            // }

            $confirmBtn.on('click', function(event) {
                event.preventDefault();
                /* Act on the event */
                CFG.handle && CFG.handle();
                $alertBox.remove();
            });

            $alertBox.css({
                height: CFG.height + "px",
                width: CFG.width + "px",
                top: (CFG.y || (window.innerHeight - CFG.height)/2) + "px",
                left: (CFG.x || (window.innerWidth - CFG.width)/2) + "px"
            });

        },
        comfirm: function(){},
        prompt: function(){}
    }
    return {
        Window: Window
    }
});
@@ -932,306 +932,8 @@
 );%0A%0A
-            // if(handle) %7B%0A            //     $confirmBtn.on('click',function(event) %7B%0A            //         event.preventDefault();%0A            //         /* Act on the event */%0A            //         handle();%0A            //         $alertBox.remove();%0A            //     %7D);%0A            // %7D%0A%0A
     

remove original code