Browse Source

Merge pull request #564 from Ferdaszewski/dev

Added Browserify support for ng-sortable
pull/571/head
Lebedev Konstantin 9 years ago
parent
commit
3b9b8c9c80
  1. 13
      ng-sortable.js

13
ng-sortable.js

@ -5,12 +5,17 @@
(function (factory) {
'use strict';
if (window.angular && window.Sortable) {
factory(angular, Sortable);
}
else if (typeof define === 'function' && define.amd) {
if (typeof define === 'function' && define.amd) {
define(['angular', './Sortable'], factory);
}
else if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
require('angular');
factory(angular, require('./Sortable'));
module.exports = 'ng-sortable';
}
else if (window.angular && window.Sortable) {
factory(angular, Sortable);
}
})(function (angular, Sortable) {
'use strict';

Loading…
Cancel
Save