Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Flotype/now
Browse files Browse the repository at this point in the history
  • Loading branch information
sridatta committed Sep 12, 2011
2 parents 9f62700 + f3830da commit 5db90c0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 39 deletions.
2 changes: 1 addition & 1 deletion doc/public/best_practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ We try to make remote functions and variables as natural to use as local ones. B

Further Reading
----------------------
Now that you've read the Best Practices guide, try the NowJS [User Manual](http://nowjs.com/doc) and [Quick Start](http://nowjs.com/guide)
Now that you've read the Best Practices guide, try the NowJS [User Manual](http://nowjs.org/doc) and [Quick Start](http://nowjs.org/guide)

Have more questions? You can reach us in #nowjs on freenode
2 changes: 1 addition & 1 deletion doc/public/company.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Based in Berkeley, California, Flotype Inc. was founded by three UC Berkeley com

Led by a top-notch engineering and sales team, Flotype sells an enterprise-level, production ready version of NowJS that operates across a cluster of NowJS servers, scaling to hundreds of thousands of concurrent users.

For more information, email team@nowjs.com
For more information, email team@nowjs.org
2 changes: 1 addition & 1 deletion doc/public/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ That's all there is to building things in NowJS. Armed with this knowledge, you

Further Reading
----------------------
Now that you've read the Getting Started guide, try the NowJS [User Manual](http://nowjs.com/doc) and [Best Practices](http://nowjs.com/bestpractices)
Now that you've read the Getting Started guide, try the NowJS [User Manual](http://nowjs.org/doc) and [Best Practices](http://nowjs.org/bestpractices)

Have more questions? You can reach us in #nowjs on freenode
4 changes: 2 additions & 2 deletions doc/public/user_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ Further Reading
----------------------

Now that you've read the User Manual guide, try the NowJS
[Quick Start](http://nowjs.com/guide) and
[Best Practices](http://nowjs.com/bestpractices)
[Quick Start](http://nowjs.org/guide) and
[Best Practices](http://nowjs.org/bestpractices)

Have more questions? You can reach us in #nowjs on freenode.
29 changes: 0 additions & 29 deletions examples/helloworld_example/helloworld_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,13 @@ var everyone = nowjs.initialize(server);


nowjs.on("connect", function(){
group.addUser(this.user.clientId);
console.log("Joined: " + this.now.name);
});

nowjs.on("disconnect", function(){
console.log("Left: " + this.now.name);
});

everyone.on('join', function(){
console.log("joined " + this.now.name);
});


everyone.on('leave', function(){
console.log("left " + this.now.name);
});




var group = nowjs.getGroup('x');


everyone.now.add = function(){

group.now.x = {};
group.now.x.a = 1;
group.now.x.b = function(){console.log('hello'); everyone.now.receiveMessage('hi', 'hi')}
}

everyone.now.test = function(){group.now.x.b();};

everyone.now.exclude = function(){
group = group.exclude(this.user.clientId);
}


everyone.now.distributeMessage = function(message){
everyone.now.receiveMessage(this.now.name, message);
Expand Down
4 changes: 2 additions & 2 deletions lib/scopeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ScopeTable.prototype.deleteVar = function (fqn) {
var lastIndex = fqn.lastIndexOf('.');
var parent = fqn.substring(0, lastIndex);

if (nowUtil.hasProperty(this.data, fqn)) {
if (nowUtil.hasProperty(this.data, parent)) {
// Remove from its parent.
var index = this.data[parent].indexOf(fqn.substring(lastIndex + 1));
if (index > -1) {
Expand All @@ -61,4 +61,4 @@ ScopeTable.prototype.flagAsArray = function (fqn, len) {
return (this.arrays[fqn] = len);
};

exports.ScopeTable = ScopeTable;
exports.ScopeTable = ScopeTable;
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Get NowJS http://www.nowjs.com/
Get NowJS http://www.nowjs.org/
=========

###NowJS makes realtime web apps really easy.
Expand Down Expand Up @@ -75,10 +75,10 @@ You do not need to host the file /nowjs/now.js. It is automatically hosted by th
Further Reading
---------------

Now that you have NowJS, try the NowJS [User Manual](http://nowjs.com/doc) and [Quick Chat Example](http://nowjs.com/guide)
Now that you have NowJS, try the NowJS [User Manual](http://nowjs.org/doc) and [Quick Chat Example](http://nowjs.org/guide)

Have more questions? Please contact us:
Email: team@nowjs.com
Email: team@nowjs.org

IRC: [#nowjs on freenode](http://webchat.freenode.net/?nick=nowjs.&channels=nowjs)

Expand Down

0 comments on commit 5db90c0

Please sign in to comment.