{"push_id":587641836,"size":1,"distinct_size":1,"ref":"refs/heads/select2-ng","head":"55f995ea2152caffb0344ede0eb4944af0caeb0f","before":"3630385cf736295b6fb32d4fe3afd5910aed1c2d","commits":[{"sha":"55f995ea2152caffb0344ede0eb4944af0caeb0f","author":{"email":"ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinbrown.in","name":"Kevin Brown"},"message":"Fixed `data-ajax-url` fallback\n\nThis fixes the fallback path for the `data-ajax-url` attribute on\nelements.  As this attribute was previously supported in Select2,\nthe attribute has been migrated to the new, nested format of the\nurl and triggers a deprecation warning when it is used.  Because\nof a fix to the `data-*` attribute parsing made in a9f6d64 that\nallowed for nested attributes to be parsed correctly in modern\nbrowsers under jQuery 1.x, the deprecation warning would be\ntriggered but the attribute would no longer actually be used.\n\nThis also fixes some of the `.data` calls to use the camel cased\nversion of the key instead of the dashed version, which is the\npreferred key and will be enforced in future versions of jQuery\nas the only way to access data attributes.\n\nNow in situations where the `dataset` attribute is used by Select2,\nit combines the results of both `$e.data()` and `e.dataset` when\ngenerating the object containing all of the options.  This will\nthe `dataset` fix to still be used, while also still relying on\njQuery to do additional parsing on any options that it can.\n\nThe `dataset` fix is now only used on jQuery 1.x, as that is the\nonly version of jQuery affected by the dash issue.  This is done\nusing version number parsing on the `$.fn.jquery` property that is\ndefined by jQuery.  As this property is not defined in Zepto and\nmany other jQuery compatible checks, we only include the fallback\nif the property is available.  This assumes that any jQuery\ncompatible libraries that are in use will not include the same dash\nissue, which we believe is a safe assumption given that it did not\nmatch the HTML `dataset` specification.\n\nThis also adds a few tests to ensure that the deprecated attributes\nstill continue to function.\n\nThis closes https://github.com/select2/select2/issues/3086.","distinct":true,"url":"https://api.github.com/repos/select2/select2/commits/55f995ea2152caffb0344ede0eb4944af0caeb0f"}]}