Prototype Javascript Framework

easing the pain of dynamic web applications

  • Prototype JS
  • Скачать
  • API документация
  • Обучающее руководство
  • Статьи
  • О проекте

Hash

  • clone
  • each
  • get
  • inspect
  • keys
  • merge
  • remove
  • set
  • toJSON
  • toObject
  • toQueryString
  • unset
  • update
  • values

API Документация

  • Полезные методы
  • Ajax
  • Array
  • Class
  • Date
  • Element
  • Element.Methods
  • Element.Methods.Simulated
  • Enumerable
  • Event
  • Form
  • Form.Element
  • Function
  • Hash
  • Insertion
  • Number
  • Object
  • ObjectRange
  • PeriodicalExecuter
  • Position
  • Prototype
  • String
  • Template
  • TimedObserver
  • document
  • document.viewport
  • Узнать больше о Prototype »

clone

clone() -> newHash

Returns a clone of hash.

Examples


var h = new Hash({ a: 'apple'});
var clone = h.clone();

h.unset('a');
h.inspect();
// -> #<Hash:{}>

clone.inspect();
// -> #<Hash:{'a': 'apple'}>
замена корпуса nokia . пиццерия Тамбов
© 2006-2008 Prototype Core Team
© 2009 перевод Иванов Егор