e04188c85a
Now if the old `initSelection` method is used, a warning will be triggered in the console informing the user that it has now been changed to `DataAdapter.current`, and they should create a custom data adapter instead. We will still only call `initSelection` once, and then default back to the old data adapter for calls after that. This allows for mostly transparent support between versions. This adds tests to ensure that `initSelection` operates the same as it previously did, but now patches the `current` method of the default data adapter.
19 lines
681 B
HTML
19 lines
681 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="../vendor/qunit-1.14.0.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="qunit"></div>
|
|
<div id="qunit-fixture"></div>
|
|
|
|
<script src="../vendor/qunit-1.14.0.js" type="text/javascript"></script>
|
|
<script src="../../vendor/almond-0.2.9.js" type="text/javascript"></script>
|
|
<script src="../../vendor/jquery-2.1.0.js" type="text/javascript"></script>
|
|
<script src="../../dist/js/select2.amd.js" type="text/javascript"></script>
|
|
|
|
<script src="deprecated-tests.js" type="text/javascript"></script>
|
|
</body>
|
|
</html>
|