Browse Source

Accepting String Id value

```erlang
nitro:f("~w",['atom-3']).
"'atom-3'" #wrong

nitro:f("~w",["temp-id"]).
"[116,101,109,112,45,105,100]" # wrong
```
Andy 9 years ago
parent
commit
725df34ebf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/actions/action_bind.erl

+ 1 - 1
src/actions/action_bind.erl

@@ -4,4 +4,4 @@
 -compile(export_all).
 -compile(export_all).
 
 
 render_action(#bind{postback=Code,target=Control,type=Type}) ->
 render_action(#bind{postback=Code,target=Control,type=Type}) ->
-    [list_to_binary(nitro:f("{ var x=qi('~w'); if(x)x.addEventListener('~w', function(e) { ~s }); }",[Control,Type,Code]))].
+    [list_to_binary(nitro:f("{ var x=qi('~s'); if(x)x.addEventListener('~s', function(e) { ~s }); }",[Control,Type,Code]))].