Permalink
Browse files

Add Gecko 16 nsITransferable.init() support.

  • Loading branch information...
1 parent 35f1a68 commit 578d4e52ba22da01af0ef44b7619dee09177bfc7 @arantius arantius committed Oct 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/util/newUserScript.js
@@ -14,6 +14,7 @@ function newUserScript(aWin) {
try {
var transferable = Components.classes["@mozilla.org/widget/transferable;1"]
.createInstance(Components.interfaces.nsITransferable);
+ if ('init' in transferable) transferable.init(null);
transferable.addDataFlavor('text/unicode');
gClipboard.getData(transferable, gClipboard.kGlobalClipboard);
var str = new Object(), strLen = new Object();

0 comments on commit 578d4e5

Please sign in to comment.