Skip to content

Commit

Permalink
chore(release): 0.7.1 distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrowhurstram committed Jul 20, 2015
1 parent e9333f9 commit 64e2616
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="0.7.1"></a>
# 0.7.1 (2015-07-20)


## Features

- **ngTableController:** add function to parse the expression used to initialise ngTableDynamic
([e9333f98](https://github.com/esvit/ng-table/commit/e9333f980764e48685477b93bb5031575b0963cf))


<a name="0.7.0"></a>
# 0.7.0 (2015-07-13)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-table",
"version": "0.7.0",
"version": "0.7.1",
"main": [
"./dist/ng-table.min.js",
"./dist/ng-table.min.css"
Expand Down
26 changes: 13 additions & 13 deletions dist/ng-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,18 @@ function($scope, NgTableParams, $timeout, $parse, $compile, $attrs, $element, ng
})
};

this.parseNgTableDynamicExpr = function (attr) {
if (!attr || attr.indexOf(" with ") > -1) {
var parts = attr.split(/\s+with\s+/);
return {
tableParams: parts[0],
columns: parts[1]
};
} else {
throw new Error('Parse error (expected example: ng-table-dynamic=\'tableParams with cols\')');
}
};

this.setupBindingsToInternalScope = function(tableParamsExpr){

// note: this we're setting up watches to simulate angular's isolated scope bindings
Expand Down Expand Up @@ -851,18 +863,6 @@ app.directive('ngTable', ['$q', '$parse',
*/
app.directive('ngTableDynamic', ['$parse', function ($parse){

function parseDirectiveExpression(attr) {
if (!attr || attr.indexOf(" with ") > -1) {
var parts = attr.split(/\s+with\s+/);
return {
tableParams: parts[0],
columns: parts[1]
};
} else {
throw new Error('Parse error (expected example: ng-table-dynamic=\'tableParams with cols\')');
}
}

return {
restrict: 'A',
priority: 1001,
Expand Down Expand Up @@ -899,7 +899,7 @@ app.directive('ngTableDynamic', ['$parse', function ($parse){
}
});
return function (scope, element, attrs, controller) {
var expr = parseDirectiveExpression(attrs.ngTableDynamic);
var expr = controller.parseNgTableDynamicExpr(attrs.ngTableDynamic);

controller.setupBindingsToInternalScope(expr.tableParams);
controller.compileDirectiveTemplates();
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-table.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/ng-table.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ng-table.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-table",
"version": "0.7.0",
"version": "0.7.1",
"author": "Vitalii Savchuk <[email protected]>",
"license": "BSD",
"repository": {
Expand Down

0 comments on commit 64e2616

Please sign in to comment.