diff --git a/jquery.simulate.js b/jquery.simulate.js index 75d9b67..676751a 100644 --- a/jquery.simulate.js +++ b/jquery.simulate.js @@ -14,13 +14,13 @@ var rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/; -$.fn.simulate = function( type, options ) { +$.fn.vssimulate = function( type, options ) { return this.each(function() { - new $.simulate( this, type, options ); + new $.vssimulate( this, type, options ); }); }; -$.simulate = function( elem, type, options ) { +$.vssimulate = function( elem, type, options ) { var method = $.camelCase( "simulate-" + type ); this.target = elem; @@ -33,7 +33,7 @@ $.simulate = function( elem, type, options ) { } }; -$.extend( $.simulate, { +$.extend( $.vssimulate, { keyCode: { BACKSPACE: 8, @@ -67,7 +67,7 @@ $.extend( $.simulate, { } }); -$.extend( $.simulate.prototype, { +$.extend( $.vssimulate.prototype, { simulateEvent: function( elem, type, options ) { var event = this.createEvent( type, options ); @@ -291,7 +291,7 @@ function findCorner( elem ) { }; } -$.extend( $.simulate.prototype, { +$.extend( $.vssimulate.prototype, { simulateDrag: function() { var i = 0, target = this.target,