Permalink
Browse files

Make compatable with browser or AMD

  • Loading branch information...
ryanramage committed Jul 29, 2012
1 parent 0645ceb commit d3f33c0c8df7ba0ad0e1386dfddc1ebcd688d882
Showing with 10 additions and 2 deletions.
  1. +1 −0 .jamignore
  2. +9 −2 jquery.jplayer/jquery.jplayer.js
View
@@ -0,0 +1 @@
+actionscript
@@ -15,8 +15,15 @@
/* Code verified using http://www.jshint.com/ */
/*jshint asi:false, bitwise:false, boss:false, browser:true, curly:true, debug:false, eqeqeq:true, eqnull:false, evil:false, forin:false, immed:false, jquery:true, laxbreak:false, newcap:true, noarg:true, noempty:true, nonew:true, nomem:false, onevar:false, passfail:false, plusplus:false, regexp:false, undef:true, sub:false, strict:false, white:false smarttabs:true */
/*global jQuery:false, ActiveXObject:false, alert:false */
-
-(function($, undefined) {
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['jquery'], factory);
+ } else {
+ // Browser globals
+ factory(root.jQuery);
+ }
+}(this, function ($, undefined) {
// Adapted from jquery.ui.widget.js (1.8.7): $.widget.bridge
$.fn.jPlayer = function( options ) {

0 comments on commit d3f33c0

Please sign in to comment.