Comparing version 0.1.3 to 0.1.4
@@ -17,9 +17,3 @@ module.exports = function(grunt) { | ||
test: /\.js$/, | ||
loader: "babel-loader", | ||
query: { | ||
stage: 1, | ||
optional: [ | ||
"es7.decorators" | ||
] | ||
} | ||
loader: "babel-loader" | ||
} | ||
@@ -26,0 +20,0 @@ ] |
{ | ||
"name": "decorative", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"repository": "https://github.com/kyr0/decorative", | ||
@@ -18,4 +18,12 @@ "description": "decorative.js is an ES7 micro-framework promoting @decorator pattern-driven app development.", | ||
"devDependencies": { | ||
"babel-core": "^6.1.4", | ||
"babel-loader": "^6.1.0", | ||
"babel-plugin-syntax-class-properties": "^6.1.4", | ||
"babel-preset-es2015": "^6.1.4", | ||
"babel-preset-stage-0": "^6.1.2", | ||
"eventemitter2": "^0.4.14", | ||
"grunt": "^0.4.5", | ||
"grunt-webpack": "^1.0.11", | ||
"install": "^0.2.6", | ||
"npm": "^3.3.12", | ||
"routes": "^2.1.0", | ||
@@ -22,0 +30,0 @@ "webpack": "^1.12.3", |
@@ -9,4 +9,8 @@ import Decorator from '../../Decorator'; | ||
selector:String = null; | ||
selector = null; | ||
constructor() { | ||
super(); | ||
} | ||
newInstance() { | ||
@@ -13,0 +17,0 @@ return new DOMBindDecorator(); |
@@ -10,5 +10,9 @@ import Decorator from '../Decorator'; | ||
value:Object = null; | ||
instantiate:Boolean = true; | ||
value = null; | ||
instantiate = true; | ||
constructor() { | ||
super(); | ||
} | ||
newInstance() { | ||
@@ -15,0 +19,0 @@ return new InjectDecorator(); |
@@ -30,5 +30,5 @@ import Decorator from '../Decorator'; | ||
descriptor.value = function(config:Object) { | ||
descriptor.value = function(config) { | ||
return new Promise(function(resolve:Function, reject:Function) { | ||
return new Promise(function(resolve, reject) { | ||
targetMethod(config, resolve, reject); | ||
@@ -35,0 +35,0 @@ }); |
@@ -11,5 +11,9 @@ import Decorator from '../Decorator'; | ||
route:String = null; | ||
authCb:Function = null; | ||
route = null; | ||
authCb = null; | ||
constructor(){ | ||
super(); | ||
} | ||
newInstance() { | ||
@@ -16,0 +20,0 @@ return new RouteDecorator(); |
@@ -9,5 +9,9 @@ import Decorator from '../Decorator'; | ||
translations:Object = null; | ||
locale:String = "en_GB"; | ||
translations = null; | ||
locale = "en_GB"; | ||
constructor() { | ||
super(); | ||
} | ||
newInstance() { | ||
@@ -14,0 +18,0 @@ return new TranslateDecorator(); |
@@ -15,7 +15,7 @@ if (!global.dec) { | ||
// DECORATORS | ||
import StartAppDecorator from './decorator/StartApp'; | ||
dec.StartAppDecorator = StartAppDecorator; | ||
var StartApp = new StartAppDecorator().getDecorator(); | ||
if (!dec.StartApp) { | ||
dec.StartApp = StartApp; | ||
import AppDecorator from './decorator/App'; | ||
dec.AppDecorator = AppDecorator; | ||
var App = new AppDecorator().getDecorator(); | ||
if (!dec.App) { | ||
dec.App = App; | ||
} | ||
@@ -22,0 +22,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21
167941
13
2037