git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a fix for triggered events not being cancellable. (You couldn't return false...
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
9db0f9d
..
6d1fb2f
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-925,7
+925,7
@@
jQuery.fn = jQuery.prototype = {
jQuery.grep(this,function(a){
if ( t.constructor == Array || t.jquery )
jQuery.grep(this,function(a){
if ( t.constructor == Array || t.jquery )
- return !jQuery.inArray( t, a );
+ return jQuery.inArray( t, a ) < 0;
else
return a != t;
}) );
else
return a != t;
}) );
@@
-1254,7
+1254,7
@@
jQuery.extend({
prop: function(elem, value, type){
// Handle executable functions
if ( value.constructor == Function )
prop: function(elem, value, type){
// Handle executable functions
if ( value.constructor == Function )
- return value.call( elem )
+ return value.call( elem );
// Handle passing in a number to a CSS property
if ( value.constructor == Number && type == "css" )
// Handle passing in a number to a CSS property
if ( value.constructor == Number && type == "css" )
@@
-1386,6
+1386,11
@@
jQuery.extend({
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
+
+ if ( !arg ) continue;
+
+ if ( arg.constructor == Number )
+ arg = arg.toString();
// Convert html string into DOM nodes
if ( typeof arg == "string" ) {
// Convert html string into DOM nodes
if ( typeof arg == "string" ) {
@@
-1699,7
+1704,7
@@
jQuery.extend({
*/
/*
*/
/*
- * Wheather the W3C compliant box model is being used.
+ * Whether the W3C compliant box model is being used.
*
* @property
* @name $.boxModel
*
* @property
* @name $.boxModel