Skip to content

Added Spine MVC detection #39

Merged
merged 1 commit into from Mar 13, 2012
View
5 apps.js
@@ -448,6 +448,11 @@ var appinfo = {
url: 'http://RightJS.org/',
priority: 2
},
+ 'Spine': {
+ icon: 'spine.ico',
+ url: 'http://spinejs.com',
+ priority: 2
+ },
// ==== js tools ====
'Raphael': {
View
BIN apps/spine.ico
Binary file not shown.
View
7 detector.js
@@ -291,6 +291,9 @@
'Underscore.js': function() {
return window._ && typeof(window._.identity) === 'function'
&& window._.identity('abc') === 'abc';
+ },
+ 'Spine': function() {
+ return window.Spine != null;
}
};
@@ -358,6 +361,10 @@
'Underscore.js': function() {
if (window._ && window._.VERSION)
return window._.VERSION;
+ },
+ 'Spine': function() {
+ if(window.Spine && window.Spine.version)
+ return window.Spine.version;
}
};
Something went wrong with that request. Please try again.