Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
fix(umd): fixes umd cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Dreizin committed Sep 24, 2015
1 parent f8ba5c5 commit e30872d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modelFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

(function(global, factory) {
if (typeof define === 'function' && define.amd) {
define(['angular', 'uri-templates'], factory);
define(['angular', 'uri-templates', 'deep-diff'], factory);
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = factory();
module.exports = factory(require('angular'), require('uri-templates'), require('deep-diff'));
} else {
global.ModelFactory = factory(angular, UriTemplate);
global.ModelFactory = factory(global.angular, global.UriTemplate, global.DeepDiff);
}
})(this, function(angular, UriTemplate) {
})(this, function(angular, UriTemplate, DeepDiff) {

var module = angular.module('modelFactory', []);

Expand Down

0 comments on commit e30872d

Please sign in to comment.