Skip to content

Commit 11ea738

Browse files
committed
Update README.md
clarify the arguments returned in the 'gridster-resized' callback, and make it easier for users to copy/paste example code and have it work out of the box.
1 parent de29285 commit 11ea738

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ $scope.$broadcast('gridster-resized', [width, height]);
165165
It can be handled like this:
166166

167167
```JavaScript
168-
$scope.$on('gridster-resized', function(newSizes){
169-
var newWidth = sizes[0];
170-
var newHeight = sizes[1];
168+
$scope.$on('gridster-resized', function(event, newSizes){
169+
var newWidth = newSizes[0];
170+
var newHeight = newSizes[1];
171171
});
172172
```
173173

0 commit comments

Comments
 (0)