Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
lanxiazhi
lanxiazhi's Profile
4
Posts
27
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
jQuery("does not exist ").data() throws exception
[3Replies]
14-Apr-2010 03:49 AM
Forum:
Developing jQuery Core
the following code from jQuery(1.4.2).fn.extend( { data : function {.........} } ):
if ( typeof key === "undefined" && this.length ) {
.....
} else if ( typeof key === "object" ) {
......
}
does not handle the situation when: key is undefined,and this.length===0,
next line of code:
var parts = key.split(".");
cause the exception because key is undefined.
I think jQuery("does not exist ").data() should return undefined , instead of throwing an exception.
about jQuery.parseJSON
[3Replies]
10-Apr-2010 10:23 AM
Forum:
Developing jQuery Core
when I see the codes below:
return window.JSON && window.JSON.parse ?
window.JSON.parse( data ) :
(new Function("return " + data))();
I think the the
(new Function("return " + data))();
is slower than use eval directly, it may be improved this way:
( eval( "["+data+"]" ) ) [0]
about jQuery.makeArray
[1Reply]
10-Apr-2010 08:53 AM
Forum:
Developing jQuery Core
makeArray: function( array, results ) {
var ret = results || [];
if ( array != null ) {
// The window, strings (and functions) also have 'length'
// The extra typeof function check is to prevent crashes
// in Safari 2 (See: #3039)
if ( array.length == null || typeof array === "string" ||
jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
push.call( ret, array );
} else {
jQuery.merge( ret, array );
}
}
return ret;
},
when the argument arr is actually an array, it can be faster :
// results is for internal usage only
makeArray: function( array, results ) {
var ret = results || [];
if ( array != null ) {
if ( jQuery.isArray(array) )
{
return slice.call(array,0);
}
// The window, strings (and functions) also have 'length'
// The extra typeof function check is to prevent crashes
// in Safari 2 (See: #3039)
if ( array.length == null || typeof array === "string" ||
jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
push.call( ret, array );
} else {
jQuery.merge( ret, array );
}
}
return ret;
},
[jQuery] jquery not work when firebug in on
[0Replies]
01-Aug-2009 03:43 PM
Forum:
Using jQuery
windows xp
firefox 3.0.6
jquery:1.3.2(latest release)
script:
$(document).ready(
function()
{
$("a").click(
function(event)
{
alert("Click");
}
);
}
);
when i turn the firebuf off,it works well.
Please help.
thanks.
«Prev
Next »
Moderate user : lanxiazhi
Forum