Ref 2263134b: Better identify potential JSON. Close gh-1401.

(cherry picked from commit 083edd60a6)

Conflicts:

	src/data.js
This commit is contained in:
Ronny Springer
2013-10-11 10:09:54 +02:00
committed by Richard Gibson
parent 08b6271b6d
commit aa70819598
2 changed files with 46 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ define([
"./data/accepts"
], function( jQuery, deletedIds, support ) {
var rbrace = /(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
rmultiDash = /([A-Z])/g;
function dataAttr( elem, key, data ) {