Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
fix ie11 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jul 3, 2014
1 parent 44a169c commit 7cb8065
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/html5/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ define([
dataTransfer = e.dataTransfer;

// 如果是页面内拖拽,还不能处理,不阻止事件。
data = dataTransfer.getData('text/html');
// 此处 ie11 下会报参数错误,
try {
data = dataTransfer.getData('text/html');
} catch( err ) {
}

if ( data ) {
return;
}
Expand Down

0 comments on commit 7cb8065

Please sign in to comment.