you are assigning a global variable in an if statement here i think what you want is to just do `if( that.options[ "_" +  val ]) {` then below do `that.options[ "_" +  val ].apply( null, args );`