Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed May 4, 2015
1 parent 6012ea8 commit fd156fc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions dist/angular-locker.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@
* @return {void}
*/
this._event = function (name, payload) {
if (! this._options.eventsEnabled) return;

$rootScope.$emit(name, angular.extend(payload, {
driver: this._options.driver,
namespace: this._namespace,
}));
if (this._options.eventsEnabled) {
$rootScope.$emit(name, angular.extend(payload, {
driver: this._options.driver,
namespace: this._namespace,
}));
}
};

/**
Expand Down Expand Up @@ -487,7 +487,7 @@

var self = this;
this._watchers[key + $scope.$id] = $scope.$watch(key, function (newVal) {
if (_defined(newVal)) self.put(key, newVal);
self.put(key, newVal);
}, angular.isObject($scope[key]));

return this;
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-locker.min.js

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

Loading

0 comments on commit fd156fc

Please sign in to comment.