From 07457ae513c9540a715dd25b3d97c9d99f624886 Mon Sep 17 00:00:00 2001 From: Andy Leon Date: Wed, 9 Nov 2011 14:18:52 +0000 Subject: [PATCH] Fixed NOT_FOUND_ERR: DOM Exception 8 To fix an error that occurs when the counter is added. See here for more information: http://getsatisfaction.com/galleria/topics/dom_error_with_galleria_plugi n Single change made was to alter the use of the append() function, passing a text node rather than a string literal. New call is in-line with the example from the jQuery documentation: http://api.jquery.com/append/#example-1 --- src/galleria.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/galleria.js b/src/galleria.js index ef452cdf..72e1109b 100644 --- a/src/galleria.js +++ b/src/galleria.js @@ -2295,7 +2295,7 @@ Galleria.prototype = { Utils.hide( this.$( 'counter' ).append( this.get( 'current' ), - ' / ', + document.createTextNode(' / '), this.get( 'total' ) ) ); @@ -5058,4 +5058,4 @@ $.fn.galleria = function( options ) { // phew -}( jQuery ) ); \ No newline at end of file +}( jQuery ) );