Skip to content

Commit

Permalink
chore(all): update build
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 27, 2016
1 parent 2fa8dbc commit 7a4c17c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(['exports', './aurelia-validation'], function (exports, _aureliaValidatio
value: true
});
Object.keys(_aureliaValidation).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
var _aureliaValidation = require('./aurelia-validation');

Object.keys(_aureliaValidation).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
Expand Down
14 changes: 7 additions & 7 deletions dist/system/aurelia-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
System.register(['./validate-binding-behavior', './validate-trigger', './validation-controller', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validation-renderer', './validator'], function (_export, _context) {
"use strict";

function configure(config) {
config.globalResources('./validate-binding-behavior', './validation-errors-custom-attribute', './validation-renderer-custom-attribute');
}

_export('configure', configure);

return {
setters: [function (_validateBindingBehavior) {
var _exportObj = {};
Expand Down Expand Up @@ -45,12 +51,6 @@ System.register(['./validate-binding-behavior', './validate-trigger', './validat

_export(_exportObj8);
}],
execute: function () {
function configure(config) {
config.globalResources('./validate-binding-behavior', './validation-errors-custom-attribute', './validation-renderer-custom-attribute');
}

_export('configure', configure);
}
execute: function () {}
};
});
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-validation'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaValidation) {
if (_key !== "default") _exportObj[_key] = _aureliaValidation[_key];
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaValidation[_key];
}

_export(_exportObj);
Expand Down
51 changes: 26 additions & 25 deletions dist/system/property-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,32 @@ System.register(['aurelia-binding'], function (_export, _context) {
throw new Error('The \'' + objectExpression + '\' part of \'' + expression + '\' evaluates to ' + value + ' instead of an object.');
}

function getPropertyInfo(expression, source) {
var originalExpression = expression;
while (expression instanceof BindingBehavior || expression instanceof ValueConverter) {
expression = expression.expression;
}

var object = void 0;
var property = void 0;
if (expression instanceof AccessScope) {
object = source.bindingContext;
property = expression.name;
} else if (expression instanceof AccessMember) {
object = getObject(originalExpression, expression.object, source);
property = expression.name;
} else if (expression instanceof AccessKeyed) {
object = getObject(originalExpression, expression.object, source);
property = expression.key.evaluate(source);
} else {
throw new Error('Expression \'' + originalExpression + '\' is not compatible with the validate binding-behavior.');
}

return { object: object, property: property };
}

_export('getPropertyInfo', getPropertyInfo);

return {
setters: [function (_aureliaBinding) {
AccessMember = _aureliaBinding.AccessMember;
Expand All @@ -32,31 +58,6 @@ System.register(['aurelia-binding'], function (_export, _context) {
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
function getPropertyInfo(expression, source) {
var originalExpression = expression;
while (expression instanceof BindingBehavior || expression instanceof ValueConverter) {
expression = expression.expression;
}

var object = void 0;
var property = void 0;
if (expression instanceof AccessScope) {
object = source.bindingContext;
property = expression.name;
} else if (expression instanceof AccessMember) {
object = getObject(originalExpression, expression.object, source);
property = expression.name;
} else if (expression instanceof AccessKeyed) {
object = getObject(originalExpression, expression.object, source);
property = expression.key.evaluate(source);
} else {
throw new Error('Expression \'' + originalExpression + '\' is not compatible with the validate binding-behavior.');
}

return { object: object, property: property };
}

_export('getPropertyInfo', getPropertyInfo);
}
};
});
Loading

0 comments on commit 7a4c17c

Please sign in to comment.