Skip to content

Commit 7dec9b5

Browse files
committed
Build js and minified versions of Classy
1 parent 6b6aec0 commit 7dec9b5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

angular-classy.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,15 @@ License: MIT
100100
if (!angular.isFunction(fn)) {
101101
continue;
102102
}
103-
if ((key === 'constructor' || key === 'init' || key === 'watch') || key[0] === '_') {
103+
if (key === 'constructor' || key === 'init' || key === 'watch') {
104104
continue;
105105
}
106-
_results.push($scope[key] = angular.bind(parent, fn));
106+
parent[key] = angular.bind(parent, fn);
107+
if (key[0] !== '_') {
108+
_results.push($scope[key] = parent[key]);
109+
} else {
110+
_results.push(void 0);
111+
}
107112
}
108113
return _results;
109114
},

angular-classy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)