Skip to content

Commit 5d300cc

Browse files
committed
Merge pull request #21 from sandwich99/master
Fixed #20: bind $rootScope.$apply context;
2 parents 2617083 + 77e6f89 commit 5d300cc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/counter/devTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ angular.module('counter')
1010
);
1111
//Hack to reflect state changes when disabling/enabling actions via the monitor
1212
$ngRedux.subscribe(_ => {
13-
setTimeout($rootScope.$apply, 100);
13+
setTimeout($rootScope.$apply.bind($rootScope), 100);
1414
});
1515
});
1616

examples/counter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"angular": "^1.4.4",
3030
"ng-redux": "^2.0.0",
3131
"redux": "^2.0.0",
32+
"redux-devtools": "^2.1.0",
3233
"redux-thunk": "^0.1.0"
3334
}
3435
}

src/components/connector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Connector(store) {
3333

3434
invariant(
3535
_.isFunction(target) || _.isObject(target),
36-
'The target parameter passed to connect must be a Function or a plain object.'
36+
'The target parameter passed to connect must be a Function or a object.'
3737
);
3838

3939
//Initial update

0 commit comments

Comments
 (0)