Home
Help
Search
3
Calendar
Login
Register
Please
login
or
register
.
Welcome to the Studio, guest!
Quick Links:
Studio Zero
...
Open Source
[JS] Prototype for Individual Objects
Intel
Notices
Dev Blog
Feedback and Suggestions
Articles
Intro!
General
Convention Center
Video Games
Entertainment
Forum Games
Contests
Personal Showcase
Coding
ProBoards v5 Resources
Plugins
Template Modifications
Requests and Support
Submissions
General Resources
Coding Tutorials
Non-PB Codes
Open Source
Coders' Hangout
Graphics
Premade Database
Premade Submissions
Design Tutorials
FX Exchange
Archive
Archive Board
Coding Boards
PBv4 Code Storage
GM Scripts
Submit a Code
Rejected Code Submissions
PBv4 Code Requests and Support
Completed
PBv4 Generators
Graphics Boards
Broken Premades
SotW
Other Boards
The Cave
Old Awards
Starbucks Dev Board
Share Thread
Facebook
Twitter
Tumblr
LinkedIn
MySpace
Email
Go to
Previous Thread
Next Thread
Please make a selection first
new
« Prev
1
Next »
Aaron
Bad Wolf
Dedicated Studio Member
859
0
November 2006
[JS] Prototype for Individual Objects
Jul 28, 2010 7:40:59 GMT
Quote
Select Post
Deselect Post
Link to Post
Member
Give Gift
Back to Top
Description
:
Object
inherits all of
reference Object
's properties and methods.
Syntax
: assign(
Object
,
reference Object
)
function assign(a, b) {
for(var x in b)
if(!a[x] || b[x].constructor != Object)
a[x] = b[x];
else
assign(a[x], b[x]);
return a;
}
Share Thread
Facebook
Twitter
Tumblr
LinkedIn
MySpace
Email
Go to
Previous Thread
Next Thread
Please make a selection first
new
« Prev
1
Next »