LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2012, 03:46 PM   #1
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Rep: Reputation: 15
javascript object prefixed with dot?


Is this javascript code valid?

return .objectName.methodName()

what does the '.' behind the objectName do?
 
Old 07-23-2012, 03:51 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by ShaqDiesel View Post
Is this javascript code valid?
Of course not. What prompted this strange question?

Last edited by dugan; 07-23-2012 at 03:52 PM.
 
Old 07-23-2012, 05:16 PM   #3
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
I saw this in some code. Thanks, this confirms my suspicions that this is a bug.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Build an Android Twitter app using XML and JavaScript Object Notation LXer Syndicated Linux News 0 07-21-2010 09:00 AM
can javascript control the loop attribute of an embed object? BrianK Programming 3 06-27-2008 10:09 AM
javascript object static method? gsbarry Programming 2 11-11-2006 06:36 AM
open website without prefixed hostname overlord73 Linux - Software 4 05-27-2005 01:15 AM
How can I tell one object to do a method in javascript? eantoranz Programming 1 10-29-2004 01:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration