Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bindonce.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@

checkBindonce: function (value)
{
var that = this, promise = (value.$promise) ? value.$promise.then : value.then;
var that = this,
promise = null;
if (value == null) {
that.runBinders();
return;
}
promise = (value.$promise) ? value.$promise.then : value.then;
// since Angular 1.2 promises are no longer
// undefined until they don't get resolved
if (typeof promise === 'function')
Expand Down
2 changes: 1 addition & 1 deletion bindonce.min.js

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