Skip to content

Commit

Permalink
Version 2.0.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
c0bra committed Apr 25, 2014
1 parent 955c672 commit c50e29d
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 17 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="2.0.10"></a>
## 2.0.10 *(2014-04-25)*

* Fix bug with $groupPanel $destroy handler (thanks @mikeromano38) (52de35530360d51).

<a name="2.0.9"></a>
## 2.0.9 *(2014-04-23)*

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Dependencies: jQuery & angular.js. (JqueryUi draggable for non-HTML5 compliant b
## About
__ng-grid__ Originally built on knockout we wanted to port it to angular.

version 2.0.9
version 2.0.10

[nuGet](https://nuget.org/packages/ng-grid)

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-grid",
"version": "2.0.9",
"version": "2.0.10",
"homepage": "https://github.com/angular-ui/ng-grid",
"description": "Angular data grid",
"keywords": [
Expand Down
15 changes: 11 additions & 4 deletions build/ng-grid.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 04/23/2014 09:12
* Compiled At: 04/25/2014 12:13
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -278,6 +278,9 @@ angular.module('ngGrid.services').factory('$domUtilityService',['$utilityService
return width;
};
domUtilityService.UpdateGridLayout = function($scope, grid) {
if (!grid.$root){
return;
}
//catch this so we can return the viewer to their original scroll after the resize!
var scrollTop = grid.$viewport.scrollTop();
grid.elementDims.rootMaxW = grid.$root.width();
Expand Down Expand Up @@ -995,7 +998,9 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
grid.$topPanel.on('mousedown', '.ngHeaderScroller', self.onHeaderMouseDown).on('dragover', '.ngHeaderScroller', self.dragOver);

grid.$groupPanel.on('$destroy', function() {
grid.$groupPanel.off('mousedown');
if (grid.$groupPanel){
grid.$groupPanel.off('mousedown');
}

grid.$groupPanel = null;
});
Expand All @@ -1005,9 +1010,11 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
}

grid.$topPanel.on('$destroy', function() {
grid.$topPanel.off('mousedown');
if (grid.$topPanel){
grid.$topPanel.off('mousedown');
}

if (grid.config.enableColumnReordering) {
if (grid.config.enableColumnReordering && grid.$topPanel) {
grid.$topPanel.off('drop');
}

Expand Down
15 changes: 11 additions & 4 deletions build/ng-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 04/23/2014 09:12
* Compiled At: 04/25/2014 12:13
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -258,6 +258,9 @@ angular.module('ngGrid.services').factory('$domUtilityService',['$utilityService
return width;
};
domUtilityService.UpdateGridLayout = function($scope, grid) {
if (!grid.$root){
return;
}
var scrollTop = grid.$viewport.scrollTop();
grid.elementDims.rootMaxW = grid.$root.width();
if (grid.$root.is(':hidden')) {
Expand Down Expand Up @@ -939,7 +942,9 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
grid.$topPanel.on('mousedown', '.ngHeaderScroller', self.onHeaderMouseDown).on('dragover', '.ngHeaderScroller', self.dragOver);

grid.$groupPanel.on('$destroy', function() {
grid.$groupPanel.off('mousedown');
if (grid.$groupPanel){
grid.$groupPanel.off('mousedown');
}

grid.$groupPanel = null;
});
Expand All @@ -949,9 +954,11 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
}

grid.$topPanel.on('$destroy', function() {
grid.$topPanel.off('mousedown');
if (grid.$topPanel){
grid.$topPanel.off('mousedown');
}

if (grid.config.enableColumnReordering) {
if (grid.config.enableColumnReordering && grid.$topPanel) {
grid.$topPanel.off('drop');
}

Expand Down
2 changes: 1 addition & 1 deletion build/ng-grid.min.js

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions ng-grid-2.0.9.debug.js → ng-grid-2.0.10.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ng-grid JavaScript Library
* Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
* Compiled At: 04/23/2014 09:12
* Compiled At: 04/25/2014 12:13
***********************************************/
(function(window, $) {
'use strict';
Expand Down Expand Up @@ -278,6 +278,9 @@ angular.module('ngGrid.services').factory('$domUtilityService',['$utilityService
return width;
};
domUtilityService.UpdateGridLayout = function($scope, grid) {
if (!grid.$root){
return;
}
//catch this so we can return the viewer to their original scroll after the resize!
var scrollTop = grid.$viewport.scrollTop();
grid.elementDims.rootMaxW = grid.$root.width();
Expand Down Expand Up @@ -995,7 +998,9 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
grid.$topPanel.on('mousedown', '.ngHeaderScroller', self.onHeaderMouseDown).on('dragover', '.ngHeaderScroller', self.dragOver);

grid.$groupPanel.on('$destroy', function() {
grid.$groupPanel.off('mousedown');
if (grid.$groupPanel){
grid.$groupPanel.off('mousedown');
}

grid.$groupPanel = null;
});
Expand All @@ -1005,9 +1010,11 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) {
}

grid.$topPanel.on('$destroy', function() {
grid.$topPanel.off('mousedown');
if (grid.$topPanel){
grid.$topPanel.off('mousedown');
}

if (grid.config.enableColumnReordering) {
if (grid.config.enableColumnReordering && grid.$topPanel) {
grid.$topPanel.off('drop');
}

Expand Down
2 changes: 1 addition & 1 deletion ng-grid-2.0.9.min.js → ng-grid-2.0.10.min.js

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-grid",
"version": "2.0.9",
"version": "2.0.10",
"main": "ng-grid.min.js",
"directories": {
"test": "test"
Expand Down

0 comments on commit c50e29d

Please sign in to comment.