Skip to content

Commit 4edc54a

Browse files
author
Sven Flickinger
committed
add compatibility for angular#1.3.x
1 parent f91b0cb commit 4edc54a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindonce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
checkBindonce: function (value)
110110
{
111111
var that = this, promise = (value.$promise) ? value.$promise.then : value.then;
112-
// since Angular 1.2 promises are no longer
112+
// since Angular 1.2 promises are no longer
113113
// undefined until they don't get resolved
114114
if (typeof promise === 'function')
115115
{
@@ -214,7 +214,7 @@
214214
}
215215
};
216216

217-
return ctrl;
217+
angular.extend(this, ctrl);
218218
}],
219219

220220
link: function (scope, elm, attrs, bindonceController)

bindonce.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)