audiojs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Audiojs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -4,18 +4,20 @@
4
4
  // Remember that some systems (e.g. ruby on rails) append strings like '?1301478336' to asset paths
5
5
  var path = (function() {
6
6
  var re = new RegExp('([a-zA-Z0-9\-_]+)(\.min)?\.js.*'),
7
- scripts = document.getElementsByTagName('script');
7
+ scripts = document.getElementsByTagName('script')
8
+ px = '/assets/';
8
9
 
9
10
  for (var i = 0, ii = scripts.length; i < ii; i++) {
10
11
  var path = scripts[i].getAttribute('src');
11
12
  if(re.test(path)) {
12
- _th = path.substring(0,path.lastIndexOf("/")+1);
13
- if ((typeof _th === 'undefined') || (_th == '')) {
14
- return '/assets/';
13
+ var _th = path.substring(0,path.lastIndexOf("/")+1);
14
+ if (!(typeof _th === 'undefined') || (_th == '')) {
15
+ return _th;
15
16
  }
16
- return _th;
17
17
  }
18
18
  }
19
+
20
+ return px;
19
21
  })();
20
22
 
21
23
  // ##The audiojs interface
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audiojs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  segments:
45
45
  - 0
46
- hash: -4268160289386271288
46
+ hash: 2509283403028303442
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  none: false
49
49
  requirements:
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  segments:
54
54
  - 0
55
- hash: -4268160289386271288
55
+ hash: 2509283403028303442
56
56
  requirements: []
57
57
  rubyforge_project:
58
58
  rubygems_version: 1.8.11