lucasgabmoreno
lucasgabmoreno

Reputation: 1031

Uncaught TypeError: Cannot read property 'split' of undefined in Yepnope 2.0.0

I've tried this in Yepnope 2.0.0

var something = true;

yepnope({
    test: something,
    yep: 'library1.js',
    nope: 'library2.js' 
    });

But doesn't works and returns me in console:

Uncaught TypeError: Cannot read property 'split' of undefined

I used Modernizr.load and ever works! But is deprecated in Modernizr 3.0 ...

Fixed it using previous version (v1.5.4) https://github.com/SlexAxton/yepnope.js/releases but any ideas using 2.0.0?


Example using YepNope 1.x https://dl.dropboxusercontent.com/u/76885657/stackoverflow/yepnope/yepnope1.html

Same code, using YepNope 2.x https://dl.dropboxusercontent.com/u/76885657/stackoverflow/yepnope/yepnope2.html

Upvotes: 3

Views: 2186

Answers (0)

Related Questions