Fix #1184: Add missing argument to .apply()
Fix #1184: Add missing argument to .apply()

The Javascript .apply() method takes two arguments: A context argument and an array of values. In CPWebScriptObject callWebScriptMethod:withArguments, only an array of arguments was passed to the .apply() method.

This fix inserts `this` as the first argument, and the array of arguments as the second. This has been converted to a pull request from the original issue (#1184)

The original issue also suggested a fix for handling namespaces, which are not incorporated in this patch.

FrankReh/cappuccino,cacaodev/cappuccino,zittix/cappuccino,enquora/cappuccino,rgv151/cappuccino,cappuccino/cappuccino,daboe01/cappuccino,FrankReh/cappuccino,Dogild/cappuccino,kidaa/cappuccino,primalmotion/cappuccino,enquora/cappuccino,mrcarlberg/cappuccino,wangshijin/cappuccino,rgv151/cappuccino,daboe01/cappuccino,krodelin/cappuccino,cappuccino/cappuccino,AlexanderMazaletskiy/cappuccino,krodelin/cappuccino,kidaa/cappuccino,tancred/cappuccino,Rosch/cappuccino,cappuccino/cappuccino,AlexanderMazaletskiy/cappuccino,deltaprojects/cappuccino,Dogild/cappuccino,koamac/Cappuccino,zittix/cappuccino,deltaprojects/cappuccino,cappuccino/cappuccino,mrcarlberg/cappuccino,rgv151/cappuccino,zittix/cappuccino,Rosch/cappuccino,AlexanderMazaletskiy/cappuccino,deltaprojects/cappuccino,zittix/cappuccino,FrankReh/cappuccino,FrankReh/cappuccino,wangshijin/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,rgv151/cappuccino,Rosch/cappuccino,Dogild/cappuccino,tancred/cappuccino,cacaodev/cappuccino,Rosch/cappuccino,daboe01/cappuccino,wangshijin/cappuccino,rgv151/cappuccino,mrcarlberg/cappuccino,krodelin/cappuccino,deltaprojects/cappuccino,AlexanderMazaletskiy/cappuccino,deltaprojects/cappuccino,tancred/cappuccino,rgv151/cappuccino,krodelin/cappuccino,deltaprojects/cappuccino,cappuccino/cappuccino,FrankReh/cappuccino,Rosch/cappuccino,koamac/Cappuccino,kidaa/cappuccino,primalmotion/cappuccino,mrcarlberg/cappuccino,FrankReh/cappuccino,primalmotion/cappuccino,kidaa/cappuccino,wangshijin/cappuccino,tancred/cappuccino,krodelin/cappuccino,cacaodev/cappuccino,daboe01/cappuccino,daboe01/cappuccino,wangshijin/cappuccino,zittix/cappuccino,mrcarlberg/cappuccino,cappuccino/cappuccino,tancred/cappuccino,mrcarlberg/cappuccino,Dogild/cappuccino,kidaa/cappuccino,Dogild/cappuccino,primalmotion/cappuccino,Dogild/cappuccino,rgv151/cappuccino,primalmotion/cappuccino,enquora/cappuccino,Dogild/cappuccino,primalmotion/cappuccino,AlexanderMazaletskiy/cappuccino,daboe01/cappuccino,Rosch/cappuccino,koamac/Cappuccino,enquora/cappuccino,kidaa/cappuccino,krodelin/cappuccino,cacaodev/cappuccino,tancred/cappuccino,FrankReh/cappuccino,wangshijin/cappuccino,koamac/Cappuccino,enquora/cappuccino,mrcarlberg/cappuccino,deltaprojects/cappuccino,AlexanderMazaletskiy/cappuccino,cacaodev/cappuccino,enquora/cappuccino,FrankReh/cappuccino,zittix/cappuccino,koamac/Cappuccino,mrcarlberg/cappuccino,primalmotion/cappuccino,cacaodev/cappuccino,zittix/cappuccino,cacaodev/cappuccino,Rosch/cappuccino,enquora/cappuccino,krodelin/cappuccino,koamac/Cappuccino