Jump to content

Flag need another way more simple


espace
 Share

Recommended Posts

Hi, 

 

I'm boring to do this always like this with a lot of flag.

is it an another way more simple? Is it possible to do the same with another prototype or method please ?

Obj.prototype.set_param=function){
if (this.set_param_flag){
this.set_param_flag=false
this.param=false
}
}

Obj.prototype.update=function(){
if (this.flag){
this.set_param()
}

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...