aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2010-10-04 23:42:21 -0700
committerMisko Hevery2010-10-06 10:05:51 -0700
commita930e782a56eca047130e5a32f1ce97a0da05927 (patch)
tree0a00605413e7c99619a0699f837bd1b1daccbc04 /src
parent8e40e7070d44d11332adc1426b7076c2be570b2b (diff)
downloadangular.js-a930e782a56eca047130e5a32f1ce97a0da05927.tar.bz2
removing anchor spec and improving jqLite.trigger() method
- removing the last anchor spec because it can't run reliably in all browsers - improving jqLite.trigger() method
Diffstat (limited to 'src')
-rw-r--r--src/jqLite.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 7a1c2dc8..2f32b121 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -119,9 +119,10 @@ JQLite.prototype = {
},
trigger: function(type) {
- var evnt = document.createEvent('MouseEvent');
- evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, _null);
- this[0].dispatchEvent(evnt);
+ var evnt = document.createEvent('MouseEvents'),
+ element = this[0];
+ evnt.initMouseEvent(type, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, element);
+ element.dispatchEvent(evnt);
},
replaceWith: function(replaceNode) {