Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

camelCase.js 545B

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 (#9572)
  13. function camelCase( string ) {
  14. return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
  15. }
  16. return camelCase;
  17. } );