| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 window['new-script-object-in-frame'] = function() { | 5 window['new-script-object-in-frame'] = function() { |
| 6 return FactoryFunction(); | 6 return FactoryFunction(); |
| 7 }; | 7 }; |
| 8 // A simple script object with a member function that takes | 8 // A simple script object with a member function that takes |
| 9 // an NPObject as an argument | 9 // an NPObject as an argument |
| 10 FactoryFunction = function() { | 10 FactoryFunction = function() { |
| 11 var TestObject = function() { | 11 var TestObject = function() { |
| 12 }; | 12 }; |
| 13 TestObject.prototype.createObject = function(plugin) { | 13 TestObject.prototype.createObject = function(plugin) { |
| 14 var newObject = plugin.testCloneObject(); | 14 var newObject = plugin.testCloneObject(); |
| 15 return newObject; | 15 return newObject; |
| 16 }; | 16 }; |
| 17 var instance = new TestObject(); | 17 var instance = new TestObject(); |
| 18 return instance; | 18 return instance; |
| 19 }; | 19 }; |
| 20 </script> | 20 </script> |
| 21 </head> | 21 </head> |
| 22 <body> | 22 <body> |
| 23 </body> | 23 </body> |
| 24 </html> | 24 </html> |
| OLD | NEW |