dist/ember.js in ember-source-2.10.1 vs dist/ember.js in ember-source-2.10.2
- 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.10.1
+ * @version 2.10.2
*/
var enifed, requireModule, Ember;
var mainContext = this;
@@ -40399,11 +40399,13 @@
get: function () {
return this.renderer.getElement(this);
}
}), _Mixin$create.$ = function (sel) {
_emberMetal.assert('You cannot access this.$() on a component with `tagName: \'\'` specified.', this.tagName !== '');
- return this._currentState.$(this, sel);
+ if (this.element) {
+ return sel ? _emberViewsSystemJquery.default(sel, this.element) : _emberViewsSystemJquery.default(this.element);
+ }
}, _Mixin$create.appendTo = function (selector) {
var env = this._environment || _emberEnvironment.environment;
var target = undefined;
if (env.hasDOM) {
@@ -41525,14 +41527,10 @@
// appendChild is only legal while rendering the buffer.
appendChild: function () {
throw new _emberMetal.Error('You can\'t use appendChild outside of the rendering process');
},
- $: function () {
- return undefined;
- },
-
// Handle events from `Ember.EventDispatcher`
handleEvent: function () {
return true; // continue event propagation
},
@@ -41560,20 +41558,16 @@
}
});
exports.default = destroying;
});
-enifed('ember-views/views/states/has_element', ['exports', 'ember-utils', 'ember-views/views/states/default', 'ember-metal', 'ember-views/system/jquery'], function (exports, _emberUtils, _emberViewsViewsStatesDefault, _emberMetal, _emberViewsSystemJquery) {
+enifed('ember-views/views/states/has_element', ['exports', 'ember-utils', 'ember-views/views/states/default', 'ember-metal'], function (exports, _emberUtils, _emberViewsViewsStatesDefault, _emberMetal) {
'use strict';
var hasElement = Object.create(_emberViewsViewsStatesDefault.default);
_emberUtils.assign(hasElement, {
- $: function (view, sel) {
- var elem = view.element;
- return sel ? _emberViewsSystemJquery.default(sel, elem) : _emberViewsSystemJquery.default(elem);
- },
rerender: function (view) {
view.renderer.rerender(view);
},
@@ -42667,10 +42661,10 @@
// reduced computed macros
enifed("ember/version", ["exports"], function (exports) {
"use strict";
- exports.default = "2.10.1";
+ exports.default = "2.10.2";
});
enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
'use strict';
exports.default = applyMixins;