dist/ember-testing.js in ember-source-2.9.0.beta.2 vs dist/ember-testing.js in ember-source-2.9.0.beta.3
- old
+ new
@@ -4,11 +4,11 @@
* @copyright Copyright 2011-2016 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
- * @version 2.9.0-beta.2
+ * @version 2.9.0-beta.3
*/
var enifed, requireModule, require, Ember;
var mainContext = this;
@@ -1774,10 +1774,11 @@
@private
@method testCheckboxClick
*/
function testCheckboxClick(handler) {
- $('<input type="checkbox">').css({ position: 'absolute', left: '-1000px', top: '-1000px' }).appendTo('body').on('click', handler).trigger('click').remove();
+ var input = document.createElement('input');
+ $(input).attr('type', 'checkbox').css({ position: 'absolute', left: '-1000px', top: '-1000px' }).appendTo('body').on('click', handler).trigger('click').remove();
}
if (_emberEnvironment.environment.hasDOM && typeof $ === 'function') {
$(function () {
/*