6ab617f2534aa651c8b4fc2b4a83fd2ca2cd5abf5d034ea320fd5788d2fa3957f3215074788613ab630f05bfc947db68dbde89b269941620454a73365b1fc9 550 B

1234567891011121314151617181920212223
  1. define( [], function() {
  2. "use strict";
  3. // Matches dashed string for camelizing
  4. var rmsPrefix = /^-ms-/,
  5. rdashAlpha = /-([a-z])/g;
  6. // Used by camelCase as callback to replace()
  7. function fcamelCase( _all, letter ) {
  8. return letter.toUpperCase();
  9. }
  10. // Convert dashed to camelCase; used by the css and data modules
  11. // Support: IE <=9 - 11, Edge 12 - 15
  12. // Microsoft forgot to hump their vendor prefix (trac-9572)
  13. function camelCase( string ) {
  14. return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
  15. }
  16. return camelCase;
  17. } );