Skip to content

Commit

Permalink
Fixed bug in gyro plugin disable() method
Browse files Browse the repository at this point in the history
Fixed string.js reported it was the gyro plugin
Updated README.md to include the gyro plugin
  • Loading branch information
fieldOfView committed Apr 4, 2011
1 parent acfb1cb commit f894e53
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ A series of krpano plugins by [Aldo Hoeben / fieldOfView](http://fieldofview.com
* **dblclick**
A plugin that adds a doubleclick event to krpano.

* **vectormath**
A plugin that adds vector-math calculations to krpano.

* **gyro**
A plugin that uses the gyroscope in devices such as the iPhone 4
and iPad2 to control the view.

* **string**
A plugin that adds string manipulation functions to krpano.

* **vectormath**
A plugin that adds vector-math calculations to krpano.

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion gyro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gyro/source/gyro.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var krpanoplugin = function()

function disable()
{
if (isDeviceEnabled && isEnabled)
if (isDeviceAvailable && isEnabled)
{
window.removeEventListener("deviceorientation", handleDeviceOrientation);
krpano.control.layer.removeEventListener("touchstart", handleTouchStart);
Expand Down
2 changes: 1 addition & 1 deletion string.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ This software can be used free of charge and the source code is available under
http://creativecommons.org/licenses/by/3.0/
*/

var krpanoplugin=function(){var c=this,f=null,d=null;c.registerplugin=function(i,h,j){f=i;d=j;if(f.version<"1.0.8.14"||f.build<"2011-03-30"){f.trace(3,"gyro plugin - too old krpano version (min. 1.0.8.14)");return}d.txtlength=a;d.txtchunk=g;d.txtfind=b;d.txtreplace=e};c.unloadplugin=function(){d=null;f=null};function a(i,h){f.set(i,h.length)}function g(k,h,j,i){f.set(k,h.substr(j,i))}function b(j,h,i){f.set(j,h.indexOf(i))}function e(m,j,l,i,h){var k=new RegExp(l,h);f.set(m,j.replace(k,i))}};
var krpanoplugin=function(){var c=this,f=null,d=null;c.registerplugin=function(i,h,j){f=i;d=j;if(f.version<"1.0.8.14"||f.build<"2011-03-30"){f.trace(3,"string plugin - too old krpano version (min. 1.0.8.14)");return}d.txtlength=a;d.txtchunk=g;d.txtfind=b;d.txtreplace=e};c.unloadplugin=function(){d=null;f=null};function a(i,h){f.set(i,h.length)}function g(k,h,j,i){f.set(k,h.substr(j,i))}function b(j,h,i){f.set(j,h.indexOf(i))}function e(m,j,l,i,h){var k=new RegExp(l,h);f.set(m,j.replace(k,i))}};
2 changes: 1 addition & 1 deletion string/source/string.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var krpanoplugin = function()

if (krpano.version < "1.0.8.14" || krpano.build < "2011-03-30")
{
krpano.trace(3,"gyro plugin - too old krpano version (min. 1.0.8.14)");
krpano.trace(3,"string plugin - too old krpano version (min. 1.0.8.14)");
return;
}

Expand Down

0 comments on commit f894e53

Please sign in to comment.