explicitly pass the global scope to the SVG iffe

Conflicts:
	src/svg.js
master
Sam Breed 2014-01-12 19:44:30 -07:00 committed by Mark Riedesel
parent bc7b84b162
commit ae835b9f63
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
var Snap = (function() {
var Snap = (function(root) {
Snap.version = "0.3.0";
/*\
* Snap
@ -55,8 +55,8 @@ Snap.toString = function () {
};
Snap._ = {};
var glob = {
win: window,
doc: window.document
win: root.window,
doc: root.window.document
};
Snap._.glob = glob;
var has = "hasOwnProperty",
@ -1612,4 +1612,4 @@ Snap.plugin = function (f) {
};
glob.win.Snap = Snap;
return Snap;
}());
}(window || this));