JSLint extensions
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2695 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/*globals svgEditor, svgCanvas*/
|
||||
/*jslint eqeq: true*/
|
||||
/*
|
||||
* ext-panning.js
|
||||
*
|
||||
@@ -11,7 +13,7 @@
|
||||
This is a very basic SVG-Edit extension to let tablet/mobile devices panning without problem
|
||||
*/
|
||||
|
||||
svgEditor.addExtension('ext-panning', function() {
|
||||
svgEditor.addExtension('ext-panning', function() {'use strict';
|
||||
return {
|
||||
name: 'Extension Panning',
|
||||
svgicons: svgEditor.curConfig.extPath + 'ext-panning.xml',
|
||||
@@ -26,13 +28,13 @@ svgEditor.addExtension('ext-panning', function() {
|
||||
}
|
||||
}],
|
||||
mouseDown: function() {
|
||||
if(svgCanvas.getMode() == 'ext-panning') {
|
||||
if (svgCanvas.getMode() == 'ext-panning') {
|
||||
svgEditor.setPanning(true);
|
||||
return {started: true};
|
||||
}
|
||||
},
|
||||
mouseUp: function() {
|
||||
if(svgCanvas.getMode() == 'ext-panning') {
|
||||
if (svgCanvas.getMode() == 'ext-panning') {
|
||||
svgEditor.setPanning(false);
|
||||
return {
|
||||
keep: false,
|
||||
|
||||
Reference in New Issue
Block a user