
//port for using

jQuery.fn.extend({
    getStyle : function (prop) {
        return this.css(prop);
    },
    setStyle : function(prop, value){
        return this.css(prop, value);
    },
    getStyles : function(props){
        return this.css(props);
    },
    setStyles : function(css){
        return this.css(css);
    }
});


jQuery.fn.extend({

    addEvent: function(type, fn){
        this.on(type, fn);
    },

    removeEvent: function(type, fn){
        this.off(type, fn);
    },

    addEvents: function(events){
        this.on(events);
    },

    removeEvents: function(events){
        this.off(events);
    },

    fireEvent: function(type, args, delay){
        this.trigger(type);
    },

    // cloneEvents: function(from, type){
    //     from = document.id(from);
    //     var events = from.retrieve('events');
    //     if (!events) return this;
    //     if (!type){
    //         for (var eventType in events) this.cloneEvents(from, eventType);
    //     } else if (events[type]){
    //         events[type].keys.each(function(fn){
    //             this.addEvent(type, fn);
    //         }, this);
    //     }
    //     return this;
    // }

});
@@ -709,483 +709,8 @@
    %7D
-,%0A%0A    // cloneEvents: function(from, type)%7B%0A    //     from = document.id(from);%0A    //     var events = from.retrieve('events');%0A    //     if (!events) return this;%0A    //     if (!type)%7B%0A    //         for (var eventType in events) this.cloneEvents(from, eventType);%0A    //     %7D else if (events%5Btype%5D)%7B%0A    //         events%5Btype%5D.keys.each(function(fn)%7B%0A    //             this.addEvent(type, fn);%0A    //         %7D, this);%0A    //     %7D%0A    //     return this;%0A    // %7D%0A
 %0A%7D);

remove a wrong ',' end of a object