Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind once #9

Open
weepy opened this issue May 15, 2011 · 9 comments
Open

bind once #9

weepy opened this issue May 15, 2011 · 9 comments

Comments

@weepy
Copy link

weepy commented May 15, 2011

hi - great lib, I added a function that I've been finding useful :

.....
    bind_once : function(event, fct) {
      var fn = function() {
        fct.call(this)
        this.unbind(event, fn)
      }
      this.bind(event, fn)
    },

perhaps you'd like to merge it in ?

@jeromeetienne
Copy link
Owner

hehe good to hear from you. i like you doing it, after brequire stuff ;)

yep i have to make some work on this lib... your suggestion is nice. i have
been refraining other modif in the past in the "this is no more 20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which trigger with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful :

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

@weepy
Copy link
Author

weepy commented May 15, 2011

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire stuff ;)

yep i have to make some work on this lib... your suggestion is nice. i have
been refraining other modif in the past in the "this is no more 20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which trigger with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful :

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:
#9 (comment)

@jeromeetienne
Copy link
Owner

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire stuff ;)

yep i have to make some work on this lib... your suggestion is nice. i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful :

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@weepy
Copy link
Author

weepy commented May 15, 2011

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire stuff
;)

yep i have to make some work on this lib... your suggestion is nice. i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful :

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@jeromeetienne
Copy link
Owner

currently im focused on gamedev.

im doing 2 webgl games, http://pacmaze.com which is a pacman in 3D. it start
to look not too bad, but still streamlining it. i would like to have users
on it.

another one is http://buddymaze.com is a fps with strong social network
links... not yet completed. but interesting due to all the low latency real
time games.

and im just starting another game, with a lot less techs but with an higher
potential to pay my bills :)

On Sun, May 15, 2011 at 8:35 PM, weepy <
[email protected]>wrote:

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire stuff
;)

yep i have to make some work on this lib... your suggestion is nice.
i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful :

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@weepy
Copy link
Author

weepy commented May 15, 2011

interesting ! i'm getting into javascript gaming too - i've potentially
could some interesting contacts who might be able to help with traffic and
funding.

perhaps we can help each other.

On Sun, May 15, 2011 at 7:59 PM, jeromeetienne <
[email protected]>wrote:

currently im focused on gamedev.

im doing 2 webgl games, http://pacmaze.com which is a pacman in 3D. it
start
to look not too bad, but still streamlining it. i would like to have users
on it.

another one is http://buddymaze.com is a fps with strong social network
links... not yet completed. but interesting due to all the low latency real
time games.

and im just starting another game, with a lot less techs but with an higher
potential to pay my bills :)

On Sun, May 15, 2011 at 8:35 PM, weepy <
[email protected]>wrote:

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire
stuff
;)

yep i have to make some work on this lib... your suggestion is
nice.
i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which
trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful
:

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@weepy
Copy link
Author

weepy commented May 15, 2011

oh btw - i made this -> http://64sq.com

On Sun, May 15, 2011 at 10:19 PM, Jonah Fox [email protected] wrote:

interesting ! i'm getting into javascript gaming too - i've potentially
could some interesting contacts who might be able to help with traffic and
funding.

perhaps we can help each other.

On Sun, May 15, 2011 at 7:59 PM, jeromeetienne <
[email protected]>wrote:

currently im focused on gamedev.

im doing 2 webgl games, http://pacmaze.com which is a pacman in 3D. it
start
to look not too bad, but still streamlining it. i would like to have users
on it.

another one is http://buddymaze.com is a fps with strong social network
links... not yet completed. but interesting due to all the low latency
real
time games.

and im just starting another game, with a lot less techs but with an
higher
potential to pay my bills :)

On Sun, May 15, 2011 at 8:35 PM, weepy <
[email protected]>wrote:

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire
stuff
;)

yep i have to make some work on this lib... your suggestion is
nice.
i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which
trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding useful
:

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@jeromeetienne
Copy link
Owner

sure lets talk, im or irc ?

On Sun, May 15, 2011 at 11:19 PM, weepy <
[email protected]>wrote:

interesting ! i'm getting into javascript gaming too - i've potentially
could some interesting contacts who might be able to help with traffic and
funding.

perhaps we can help each other.

On Sun, May 15, 2011 at 7:59 PM, jeromeetienne <
[email protected]>wrote:

currently im focused on gamedev.

im doing 2 webgl games, http://pacmaze.com which is a pacman in 3D. it
start
to look not too bad, but still streamlining it. i would like to have
users
on it.

another one is http://buddymaze.com is a fps with strong social network
links... not yet completed. but interesting due to all the low latency
real
time games.

and im just starting another game, with a lot less techs but with an
higher
potential to pay my bills :)

On Sun, May 15, 2011 at 8:35 PM, weepy <
[email protected]>wrote:

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire
stuff
;)

yep i have to make some work on this lib... your suggestion is
nice.
i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which
trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy :)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding
useful
:

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

@weepy
Copy link
Author

weepy commented May 16, 2011

[email protected]

On Mon, May 16, 2011 at 7:34 AM, jeromeetienne <
[email protected]>wrote:

sure lets talk, im or irc ?

On Sun, May 15, 2011 at 11:19 PM, weepy <
[email protected]>wrote:

interesting ! i'm getting into javascript gaming too - i've potentially
could some interesting contacts who might be able to help with traffic
and
funding.

perhaps we can help each other.

On Sun, May 15, 2011 at 7:59 PM, jeromeetienne <
[email protected]>wrote:

currently im focused on gamedev.

im doing 2 webgl games, http://pacmaze.com which is a pacman in 3D. it
start
to look not too bad, but still streamlining it. i would like to have
users
on it.

another one is http://buddymaze.com is a fps with strong social
network
links... not yet completed. but interesting due to all the low latency
real
time games.

and im just starting another game, with a lot less techs but with an
higher
potential to pay my bills :)

On Sun, May 15, 2011 at 8:35 PM, weepy <
[email protected]>wrote:

ah gotcha !

what are you working on at the mo ?

On Sun, May 15, 2011 at 7:25 PM, jeromeetienne <
[email protected]>wrote:

a event trigger but on a settimeout(function(){}, 0);

like nextTick on node.js

sync event may be funky if not properly understood

On Sun, May 15, 2011 at 8:04 PM, weepy <
[email protected]>wrote:

... what's does delayedTrigger do ?

On Sun, May 15, 2011 at 7:02 PM, jeromeetienne <
[email protected]>wrote:

hehe good to hear from you. i like you doing it, after brequire
stuff
;)

yep i have to make some work on this lib... your suggestion is
nice.
i
have
been refraining other modif in the past in the "this is no more
20lines"...
thinking of it now, i think it is me being silly.

i will likely include this and the delayedTrigger() one which
trigger
with
timer 0.

if im being lazy, just ping me. im not a bad guy, im just busy
:)

On Sun, May 15, 2011 at 7:56 PM, weepy <
[email protected]>wrote:

hi - great lib, I added a function that I've been finding
useful
:

.....
       bind_once : function(event, fct) {
         var fn = function() {
           fct.call(this)
           this.unbind(event, fn)
         }
         this.bind(event, fn)
       },

perhaps you'd like to merge it in ?

Reply to this email directly or view it on GitHub:
#9

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:

#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Reply to this email directly or view it on GitHub:
#9 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants