dist/tao.js in tao_on_rails-0.4.3 vs dist/tao.js in tao_on_rails-0.4.4
- old
+ new
@@ -27744,12 +27744,10 @@
ref.call(this);
}
return this;
};
- TaoModule.prototype._properties = {};
-
TaoModule.get = function(propertyName, getMethod) {
return Object.defineProperty(this.prototype, propertyName, {
get: getMethod,
configurable: true
});
@@ -27793,13 +27791,16 @@
function TaoModule(options) {
var key, val;
if (options == null) {
options = {};
}
- for (key in options) {
- val = options[key];
- this[key] = val;
+ this._properties = {};
+ if (typeof options === 'object') {
+ for (key in options) {
+ val = options[key];
+ this[key] = val;
+ }
}
this._init();
}
TaoModule.prototype._init = function() {};
@@ -30998,9 +30999,13 @@
}
return customElements.define(componentClass.tag, componentClass);
};
_Class.observedAttributes = [];
+
+ _Class.get('jq', function() {
+ return $(this);
+ });
_Class.prototype.connectedCallback = function() {
if (!this.initialized) {
this.classList.add('tao-component');
this._init();