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

Commit

Permalink
Merge pull request #60 from mdreizin/master
Browse files Browse the repository at this point in the history
fix(umd): fixes umd cases
  • Loading branch information
amcdnl committed Sep 24, 2015
2 parents b0f7c18 + e30872d commit dab14f8
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 dab14f8

Please sign in to comment.