Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Add check for global property for engines that need it (I'm looking…

… at you flusspferd).
  • Loading branch information...
commit dc7789e53fc8a2df1501cc0b9376fe2b0d3d7890 1 parent 0fe1ad2
@keeto authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Source/meso.js
View
1  Source/meso.js
@@ -26,6 +26,7 @@ exports.setup = function(global, engine){
var Engine;
try {
Engine = require('./engines/' + name + '/' + adapter.find(version, require('./engines/'+ name + '/versions').versions) + '/engine.js').engine;
+ if (!Engine.global) Engine.global = global;
} catch(e){
Engine = null;
throw new Error('meso: No adapter found for "' + name + '" version ' + version + '.');
Please sign in to comment.
Something went wrong with that request. Please try again.