Skip to content

Commit

Permalink
add warning for ae memory out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed Jun 20, 2017
1 parent df6d120 commit ca681c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/Sp_memory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6002,6 +6002,10 @@ try {

var observeSingleton = __webpack_require__(11);
observeSingleton(sp);

app.onError && app.onError(function (err) {
alert('\u8B66\u544A, Sp_memory\u68C0\u6D4B\u5230AE\u62A5\u9519, \u5185\u5BB9\u5982\u4E0B:\n' + err.toString() + '\n\n\u8BF7\u5C3D\u91CF\u5C06\u5C42\u5206\u6563\u5B58\u50A8\u5728\u4E0D\u540C\u7EC4\u5185');
});
})(memoryGlobal);
} catch (err) {
alert('Line #' + err.line.toString() + '\r\n' + err.toString());
Expand Down
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,12 @@ try {

var observeSingleton = require('src/mvvm/index')
observeSingleton(sp)

app.onError && app.onError(function(err) {
alert(`警告, Sp_memory检测到AE报错, 内容如下:
${err.toString()}
请尽量将层分散存储在不同组内`)
})
})(memoryGlobal)
} catch (err) { alert('Line #' + err.line.toString() + '\r\n' + err.toString()) }

0 comments on commit ca681c4

Please sign in to comment.