Skip to content

Commit

Permalink
Merge pull request #4 from NextStepWebs/development
Browse files Browse the repository at this point in the history
Fix .includes() not a function
  • Loading branch information
WesCossick committed Jul 21, 2015
2 parents cf25fa2 + 1ee9032 commit 95285c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion source files/spell-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ CodeMirror.defineMode("spell-checker", function(config, parserConfig) {
);

return CodeMirror.overlayMode(mode, overlay, true);
});
});


// Because some browsers don't support this functionality yet
if(!String.prototype.includes) {
String.prototype.includes = function() {'use strict';
return String.prototype.indexOf.apply(this, arguments) !== -1;
};
}
2 changes: 1 addition & 1 deletion spell-checker.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* SimpleMDE v1.0.1 (https://github.com/NextStepWebs/codemirror-spell-checker)
* SimpleMDE v1.0.2 (https://github.com/NextStepWebs/codemirror-spell-checker)
* Copyright Next Step Webs, Inc.
* Licensed under the MIT license
*/
Expand Down
4 changes: 2 additions & 2 deletions spell-checker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 95285c9

Please sign in to comment.