Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit af14151

Browse files
author
Zirak
committed
define no longer errors out when no defnition was found
1 parent 85927c8 commit af14151

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

master.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4138,7 +4138,10 @@ var define = {
41384138
html = page.extract;
41394139

41404140
if ( pageid === '-1' ) {
4141-
cb( {}, -1 );
4141+
cb({
4142+
pageid : -1
4143+
});
4144+
41424145
return;
41434146
}
41444147

master.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/plugins/define.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ var define = {
5252
html = page.extract;
5353

5454
if ( pageid === '-1' ) {
55-
cb( {}, -1 );
55+
cb({
56+
pageid : -1
57+
});
58+
5659
return;
5760
}
5861

0 commit comments

Comments
 (0)