Fixed bug #2307

I fixed the [bug] (https://github.com/rogerwang/node-webkit/issues/2307). The method was actually never called.