mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-11 18:42:46 +08:00
fixed select with ng:format
select (one/multiple) could not chose from a list of objects, since DOM requires string ids. Solved by adding index formatter, which exposed incorrect handling of formatters in select widgets.
This commit is contained in:
@@ -33,7 +33,7 @@ function toJson(obj, pretty) {
|
||||
* @returns {Object|Array|Date|string|number} Deserialized thingy.
|
||||
*/
|
||||
function fromJson(json, useNative) {
|
||||
if (!json) return json;
|
||||
if (!isString(json)) return json;
|
||||
|
||||
var obj, p, expression;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user