smartxml: fix invalid context setting
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 8 Apr 2014 11:12:41 +0000 (13:12 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 8 Apr 2014 11:12:41 +0000 (13:12 +0200)
src/smartxml/smartxml.js

index 7d3f332..628163a 100644 (file)
@@ -479,7 +479,7 @@ $.extend(Document.prototype, Backbone.Events, {
         if(!this._currentTransaction) {
             return this.transaction(function() {
                 return this.transform(Transformation, args);
-            }, this);
+            }, {context: this});
         }
 
         if(typeof Transformation === 'function') {