Browse Source

Added Browserify support for ng-sortable

pull/564/head
Joshua Ferdaszewski 9 years ago
parent
commit
555adc36fd
  1. 13
      ng-sortable.js

13
ng-sortable.js

@ -5,12 +5,17 @@
(function (factory) { (function (factory) {
'use strict'; 'use strict';
if (window.angular && window.Sortable) { if (typeof define === 'function' && define.amd) {
factory(angular, Sortable);
}
else if (typeof define === 'function' && define.amd) {
define(['angular', './Sortable'], factory); 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) { })(function (angular, Sortable) {
'use strict'; 'use strict';

Loading…
Cancel
Save