Skip to content

Commit

Permalink
build check
Browse files Browse the repository at this point in the history
  • Loading branch information
pocesar committed Aug 12, 2015
1 parent affcb17 commit 9438ada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions angular-errorlookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,22 @@ var Services;
var fromModel = function (model, key) {
if (key) {
var ngModel = model;
if (ngModel.controller && typeof ngModel.controller[key] !== 'undefined') {
if (ngModel && ngModel.controller && typeof ngModel.controller[key] !== 'undefined') {
return ngModel.controller[key];
}
if (typeof ngModel[key] !== 'undefined') {
return ngModel[key];
}
}
else {
else if (model) {
if (model.controller) {
return model.controller;
}
else {
return model;
}
}
return '';
};
var findName = function (e, retName) {
if (retName === void 0) { retName = true; }
Expand Down
2 changes: 2 additions & 0 deletions angular-errorlookup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="typings/tsd.d.ts" />

'use strict';

export interface IFilterFunction {
Expand Down

0 comments on commit 9438ada

Please sign in to comment.