git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another $ bites the dust. Should be all of them now.
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
287cd64
..
76f0f0e
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-2299,12
+2299,6
@@
jQuery.extend({
if(jQuery.browser.msie) {
// get real event from window.event
event = window.event;
if(jQuery.browser.msie) {
// get real event from window.event
event = window.event;
- event.preventDefault = function() {
- this.returnValue = false;
- };
- event.stopPropagation = function() {
- this.cancelBubble = true;
- };
// fix target property
event.target = event.srcElement;
// check safari and if target is a textnode
// fix target property
event.target = event.srcElement;
// check safari and if target is a textnode
@@
-2314,6
+2308,13
@@
jQuery.extend({
// get parentnode from textnode
event.target = event.target.parentNode;
}
// get parentnode from textnode
event.target = event.target.parentNode;
}
+ // fix preventDefault and stopPropagation
+ event.preventDefault = function() {
+ this.returnValue = false;
+ };
+ event.stopPropagation = function() {
+ this.cancelBubble = true;
+ };
return event;
}
return event;
}
@@
-3095,7
+3096,7
@@
jQuery.macros = {
*
* It only returns the immediately previous sibling, not all previous siblings.
*
*
* It only returns the immediately previous sibling, not all previous siblings.
*
- * @example $("p").previous(".selected")
+ * @example $("p").prev(".selected")
* @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>
* @result [ <div><span>Hello</span></div> ]
*
* @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>
* @result [ <div><span>Hello</span></div> ]
*