Skip to content

Commit

Permalink
v1.0.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
davej committed Jan 15, 2015
1 parent 26596d2 commit ebce06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular-classy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ angular.module('classy.bindMethods', ['classy.core']).classy.plugin.controller

init: (klass, deps, module) ->
if @options.enabled
# Adds controller functions (unless they have an `_` prefix) to the `$scope`
for key, fn of klass.constructor::[@options.keyName]
if angular.isFunction(fn) and !(key in @options.ignore)
boundFn = angular.bind(klass, fn)
if @options.addToClass
klass[key] = boundFn
if @options.addToScope and !@hasPrivatePrefix(key) and deps.$scope
# Adds controller functions (unless they have an `_` prefix) to the `$scope`
deps.$scope[key] = boundFn

return
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-classy",
"main": "angular-classy.js",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"homepage": "http://davej.github.io/angular-classy/",
"repository": {
"type": "git",
Expand Down

0 comments on commit ebce06b

Please sign in to comment.