blob: 921c5336f5b193166e96b85cd7b3252e0d413853 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
window['new-script-object-in-frame'] = function() {
return FactoryFunction();
};
// A simple script object with a member function that takes
// an NPObject as an argument
FactoryFunction = function() {
var TestObject = function() {
};
TestObject.prototype.createObject = function(plugin) {
var newObject = plugin.testCloneObject();
return newObject;
};
var instance = new TestObject();
return instance;
};
</script>
</head>
<body>
</body>
</html>