aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 26ca6dea..04682754 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -105,7 +105,9 @@ JQLite.prototype = {
if (!eventHandler) {
bind[type] = eventHandler = function(event) {
if (!event.preventDefault) {
- event.returnValue = false;
+ event.preventDefault = function(){
+ event.returnValue = false;
+ }
}
foreach(eventHandler.fns, function(fn){
fn.call(self, event);