Skip to content

Commit

Permalink
Merge pull request #84 from lichgo/master
Browse files Browse the repository at this point in the history
pen.js line64 change document to doc to reduce variable searching time
  • Loading branch information
sofish committed Apr 3, 2014
2 parents ffd967f + 902f2aa commit 0aa9bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
if(config.nodeType === 1) {
defaults.editor = config;
} else if(config.match && config.match(/^#[\S]+$/)) {
defaults.editor = document.getElementById(config.slice(1));
defaults.editor = doc.getElementById(config.slice(1));
} else {
defaults = utils.copy(defaults, config);
}
Expand Down

0 comments on commit 0aa9bb4

Please sign in to comment.