「Editor.OpenFile()のポリフィル」の版間の差分

MSY-07 (トーク | 投稿記録)
<source>タグを<syntaxhighlight>タグに置き換える
MSY-07 (トーク | 投稿記録)
SyntaxHighlightにcopyの追加
 
1行目: 1行目:
Editor.OpenFile()は開いたDocumentオブジェクトを返さないので、Documentオブジェクトを返すようにするポリフィルです。Editor.OpenFile()が開いたDocumentオブジェクトを返すようになるまでは使えます。
Editor.OpenFile()は開いたDocumentオブジェクトを返さないので、Documentオブジェクトを返すようにするポリフィルです。Editor.OpenFile()が開いたDocumentオブジェクトを返すようになるまでは使えます。


<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript" copy>
function OpenFile(file, encoding, flags){
function OpenFile(file, encoding, flags){
     var i, j, e, d;
     var i, j, e, d;
スポンサーリンク