fixes requirejs optimization
fixes requirejs optimization

Hi,

I've been trying to bundle ol3 with my app using requirejs optimizer.
I ran into a runtime error :

>Mismatched anonymous define() modules ...

After some research, I found that in my ol.js file, the rbush dependency was defined without name:

    // export as AMD/CommonJS module or global variable 
    if (typeof define === 'function' && define.amd) define(function() { return rbush; }); 

Or that generate an issue in requireJS:

>If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. 

I modified the source likewise in order to avoid that error:

    // export as AMD/CommonJS module or global variable 
     if (typeof define === 'function' && define.amd) define("rbush", function() { return rbush; });
opentable/rbush,MazeMap/rbush,MazeMap/rbush,landonb/rbush,josl/rbush,landonb/rbush,mourner/rbush,korczis/rbush,korczis/rbush,josl/rbush,opentable/rbush,mourner/rbush