From 7aeb7e6949c692e6447ad06e82efda8a821842f5 Mon Sep 17 00:00:00 2001 From: eavichay Date: Tue, 10 Oct 2017 15:24:09 +0300 Subject: [PATCH] fixing scope --- Decorators.js | 4 +--- bower.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Decorators.js b/Decorators.js index 822ec82..a4411b4 100644 --- a/Decorators.js +++ b/Decorators.js @@ -1,5 +1,3 @@ -import {Slim} from "./Slim" - module.exports = { tag: function(selector) { return function(target) { @@ -23,7 +21,7 @@ module.exports = { attribute: function(target, key, descriptor) { target.constructor.observedAttributes = target.constructor.observedAttributes || []; - target.constructor.observedAttributes.push(Slim.__camelToDash(key)); + target.constructor.observedAttributes.push(window.Slim.__camelToDash(key)); descriptor.configurable = true; descriptor.writable = true; return descriptor; diff --git a/bower.json b/bower.json index ba01118..ee5ae92 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "slimjs", "main": "Slim.js", - "version": "2.9.13", + "version": "2.9.14", "ignore": [ "example", "components",