diff --git a/scripts/camera.js b/scripts/camera.js index daddaaa..b5ed2ca 100644 --- a/scripts/camera.js +++ b/scripts/camera.js @@ -2,6 +2,10 @@ // Copyright (c) 2012 by Manuel Masia - www.pixedelic.com // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ;(function($){$.fn.camera = function(opts, callback) { + + if(!$(this).length) { + return false; + } var defaults = { alignment : 'center', //topLeft, topCenter, topRight, centerLeft, center, centerRight, bottomLeft, bottomCenter, bottomRight