Permalink
Browse files

[fix] bslClient: accept empty string on prompt

  • Loading branch information...
1 parent 77205c0 commit 27c639e83d77220d2c1e99598f6ea9c9c63b7196 @Aqua-Ye Aqua-Ye committed Mar 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 opabsl/jsbsl/bslClient.js
@@ -57,8 +57,8 @@
##args(str, dft)
{
var res = window.prompt(str, dft);
- if (res == null || res === "") return js_none
- return js_some(res)
+ if (res == null) return js_none // cancel
+ return js_some(res) // ok
}
##register goto : string -> void

0 comments on commit 27c639e

Please sign in to comment.