aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorunknown2010-07-27 16:53:23 -0700
committerunknown2010-07-27 16:53:23 -0700
commit6bd8006edcbfe1dc1be8cb865fbcfe25157fe117 (patch)
tree72c421ab1e25ff62c24d8e8b8ca39fe823e57ec4 /src/jqLite.js
parent2a30a02f015dd54846bb62d1f05e82b3cf76ef9f (diff)
downloadangular.js-6bd8006edcbfe1dc1be8cb865fbcfe25157fe117.tar.bz2
fix IE native mothods are not functions, and preventDefault
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);