ded / script.js

Asyncronous JavaScript loader and dependency manager
MIT License
2.95k stars 341 forks source link

The $scipt.path('/modules/') was not working for .js files #85

Closed MikeSpock closed 9 years ago

MikeSpock commented 9 years ago

You only applied scriptpath if the file didn't include '.js'. I think it should work for .js files as well. In the change I removed the condition of indexOf('.js')===-1, and added a part where I add '.js' if the file doesn't end with .js.

ded commented 9 years ago

thanks for the work. tests are still passing :+1: