Skip to content

Commit

Permalink
Merge pull request #12793 from rwjblue/remove-jquery-assertion
Browse files Browse the repository at this point in the history
[BUGFIX release-1-13] Remove jQuery version assertion.
  • Loading branch information
stefanpenner committed Jan 9, 2016
2 parents 10ab23d + a9ac424 commit f34af07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions packages/ember-views/lib/system/jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Ember from 'ember-metal/core';
import { assert } from 'ember-metal/debug';

// ES6TODO: the functions on EnumerableUtils need their own exports
import environment from 'ember-metal/environment';
Expand All @@ -13,11 +12,6 @@ if (environment.hasDOM) {
jQuery = require('jquery');
}

assert(
'Ember Views require jQuery between 1.7 and 2.1',
jQuery && (jQuery().jquery.match(/^((1\.(7|8|9|10|11))|(2\.(0|1)))(\.\d+)?(pre|rc\d?)?/) || Ember.ENV.FORCE_JQUERY)
);

if (jQuery) {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents
var dragEvents = [
Expand Down
3 changes: 0 additions & 3 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
// Handle testing feature flags
ENV['ENABLE_OPTIONAL_FEATURES'] = !!QUnit.urlParams.enableoptionalfeatures;

// Don't worry about jQuery version
ENV['FORCE_JQUERY'] = true;

ENV['RAISE_ON_DEPRECATION'] = true;
})();
</script>
Expand Down

0 comments on commit f34af07

Please sign in to comment.