fix undefined tagName

master
Nicolás Pinzón 2016-06-09 07:02:46 -05:00
parent a7f1a26b6f
commit e2acee4741
3 changed files with 12 additions and 12 deletions

File diff suppressed because one or more lines are too long

6
dist/snap.svg.js vendored
View File

@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// build: 2015-04-13
// build: 2016-06-09
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
//
@ -809,7 +809,7 @@ var mina = (function (eve) {
// limitations under the License.
var Snap = (function(root) {
Snap.version = "0.4.0";
Snap.version = "0.4.1";
/*\
* Snap
[ method ]
@ -2288,7 +2288,7 @@ function Paper(w, h) {
desc,
defs,
proto = Paper.prototype;
if (w && w.tagName == "svg") {
if (w && w.tagName && w.tagName.toLowerCase() == "svg") {
if (w.snap in hub) {
return hub[w.snap];
}

View File

@ -1492,7 +1492,7 @@ function Paper(w, h) {
desc,
defs,
proto = Paper.prototype;
if (w && w.tagName.toLowerCase() == "svg") {
if (w && w.tagName && w.tagName.toLowerCase() == "svg") {
if (w.snap in hub) {
return hub[w.snap];
}